llvm-6502/include/llvm/Transforms/Utils
Dan Gohman 4b35f83b91 Teach LoopSimplify how to merge multiple loop exits into a single exit,
when one of them can be converted to a trivial icmp and conditional
branch.

This addresses what is essentially a phase ordering problem.
SimplifyCFG knows how to do this transformation, but it doesn't do so
if the primary block has any instructions in it other than an icmp and
a branch. In the given testcase, the block contains other instructions,
however they are loop-invariant and can be hoisted. SimplifyCFG doesn't
have LoopInfo though, so it can't hoist them. And, it's important that
the blocks be merged before LoopRotation, as it doesn't support
multiple-exit loops.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@74396 91177308-0d34-0410-b5e6-96231b3b80d8
2009-06-27 21:30:38 +00:00
..
AddrModeMatcher.h Factor address mode matcher out of codegen prepare to make it available to other passes, e.g. loop strength reduction. 2009-02-20 18:24:38 +00:00
BasicBlockUtils.h Re-apply 70645, converting ScalarEvolution to use 2009-05-04 22:30:44 +00:00
BasicInliner.h Add explicit keywords. 2008-07-07 18:00:37 +00:00
Cloning.h Revert 51775. 2008-05-30 22:47:19 +00:00
FunctionUtils.h Prune and tidy #includes. 2008-05-29 19:52:31 +00:00
InlineCost.h These bitfields were being miscompiled on some 2009-04-20 16:03:21 +00:00
Local.h Teach LoopSimplify how to merge multiple loop exits into a single exit, 2009-06-27 21:30:38 +00:00
PromoteMemToReg.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00
UnifyFunctionExitNodes.h Tidy up several unbeseeming casts from pointer to intptr_t. 2008-09-04 17:05:41 +00:00
UnrollLoop.h Commit the header I accidentally left out of 51083. 2008-05-14 04:39:40 +00:00
ValueMapper.h Don't attribute in file headers anymore. See llvmdev for the 2007-12-29 19:59:42 +00:00