Evan Cheng
|
ce6bae7667
|
Ifcvt triangle: don't ifcvt 'true' BB if it has other predecessors; don't merge 'false' BB if it has other predecessors.
llvm-svn: 37382
|
2007-06-01 07:41:07 +00:00 |
|
Evan Cheng
|
8e188afada
|
Remove a bogus check. Even terminators in a ifcvt need to be predicated. Unconditional branches can usually be converted to conditional ones.
llvm-svn: 37380
|
2007-06-01 00:55:26 +00:00 |
|
Evan Cheng
|
7c081d0d02
|
Allow multiple ifcvt candidates to share children blocks; add some debugging code.
llvm-svn: 37379
|
2007-06-01 00:12:12 +00:00 |
|
Evan Cheng
|
7a6edf8eab
|
Fix a typo.
llvm-svn: 37374
|
2007-05-31 20:53:33 +00:00 |
|
Evan Cheng
|
c9c6bbd273
|
Change traversal order to bottom up in preparation for more aggressive if-conversion.
llvm-svn: 37365
|
2007-05-30 19:49:19 +00:00 |
|
Evan Cheng
|
a1300649ba
|
Don't merge in tail block of a diamond if it has more than one predecessors after if-conversion.
llvm-svn: 37353
|
2007-05-29 23:37:20 +00:00 |
|
Evan Cheng
|
b1ba206831
|
If there is an empty block between a source and its successor block, it still requires a unconditional branch.
llvm-svn: 37344
|
2007-05-29 22:31:16 +00:00 |
|
Evan Cheng
|
36164f93fd
|
Silly boog.
llvm-svn: 37328
|
2007-05-25 00:59:01 +00:00 |
|
Evan Cheng
|
3f44824179
|
Preliminary iterative if-conversion support.
llvm-svn: 37309
|
2007-05-23 07:23:16 +00:00 |
|
Evan Cheng
|
d395b14837
|
If-convert early exit blocks (returns, etc.); bug fixes, etc.
llvm-svn: 37270
|
2007-05-21 22:22:58 +00:00 |
|
Evan Cheng
|
ca7bc898aa
|
Clean up.
llvm-svn: 37237
|
2007-05-18 19:32:08 +00:00 |
|
Evan Cheng
|
ad9ce3c5b2
|
Change to depth-first traversal.
llvm-svn: 37236
|
2007-05-18 19:26:33 +00:00 |
|
Evan Cheng
|
1ed1741260
|
Some restructuring in preparation for most aggressive if-conversion.
llvm-svn: 37231
|
2007-05-18 18:14:37 +00:00 |
|
Evan Cheng
|
234f07808b
|
Watch out for blocks that end with a return.
llvm-svn: 37227
|
2007-05-18 17:06:53 +00:00 |
|
Evan Cheng
|
40eecb3d06
|
If true / false blocks fallthrough before ifcvt, add unconditional branches to ifcvt'd block.
llvm-svn: 37200
|
2007-05-18 01:55:58 +00:00 |
|
Evan Cheng
|
c6aa69557a
|
Make use of target specific block size limits; bug fixes.
llvm-svn: 37195
|
2007-05-18 00:20:58 +00:00 |
|
Evan Cheng
|
ab88e91c81
|
isBlockPredicable() always ignore terminal instructions; add comments.
llvm-svn: 37126
|
2007-05-16 21:54:37 +00:00 |
|
Evan Cheng
|
6f761adecb
|
Rename M_PREDICATED to M_PREDICABLE; Moved isPredicable() to MachineInstr.
llvm-svn: 37121
|
2007-05-16 20:56:08 +00:00 |
|
Evan Cheng
|
3fb34a4fdd
|
Devang points out that we need an assertion here.
llvm-svn: 37097
|
2007-05-16 05:11:10 +00:00 |
|
Evan Cheng
|
aafca4d4a2
|
Initial commit of (very basic) if converter.
llvm-svn: 37092
|
2007-05-16 02:00:57 +00:00 |
|