llvm-6502/test/Transforms/IndVarSimplify
Dan Gohman aabb04f527 SCEVExpander's InsertCastOfTo knows how to move existing cast
instructions in order to avoid inserting new ones. However, if
the cast instruction is the SCEVExpander's InsertPt, this
causes subsequently emitted instructions to be inserted near
the cast, and not at the location of the original insert point.
Fix this by adjusting the insert point in such cases.
This fixes PR4009.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@69808 91177308-0d34-0410-b5e6-96231b3b80d8
2009-04-22 16:11:16 +00:00
..
2002-09-09-PointerIndVar.ll
2003-04-16-ExprAnalysis.ll
2003-09-12-MultiplePred.ll
2003-09-23-NotAtTop.ll
2003-12-10-IndVarDeadCode.ll
2003-12-10-RemoveInstrCrash.ll
2003-12-15-Crash.ll
2003-12-21-IndVarSize.ll
2004-03-10-PHIInsertionBug.ll
2004-04-05-InvokeCastCrash.ll
2004-04-07-ScalarEvolutionCrash.ll
2005-02-11-InvokeCrash.ll
2005-02-17-TruncateExprCrash.ll
2005-02-26-ExitValueCompute.ll
2005-06-15-InstMoveCrash.ll
2005-11-18-Crash.ll
2006-03-31-NegativeStride.ll
2006-06-16-Indvar-LCSSA-Crash.ll
2006-09-20-LFTR-Crash.ll
2006-12-10-BitCast.ll
2007-01-06-TripCount.ll
2007-01-08-X86-64-Pointer.ll
2007-06-06-DeleteDanglesPtr.ll
2007-11-23-BitcastCrash.ll
2008-06-15-SCEVExpanderBug.ll
2008-09-02-IVType.ll
2008-10-03-CouldNotCompute.ll
2008-11-03-Floating.ll
2008-11-17-Floating.ll
2008-11-25-APFloatAssert.ll
2009-04-14-shorten_iv_vars.ll Enhance induction variable code to remove the 2009-04-15 01:10:12 +00:00
2009-04-15-shorten-iv-vars-2.ll Another testcase for IV shortening. 2009-04-16 00:45:21 +00:00
casted-argument.ll SCEVExpander's InsertCastOfTo knows how to move existing cast 2009-04-22 16:11:16 +00:00
complex-scev.ll
dg.exp
exit_value_tests.ll
iterationCount_zext_or_trunc.ll
lftr_simple.ll
loop_evaluate_1.ll
loop_evaluate_2.ll
loop_evaluate_3.ll
loop_evaluate_4.ll
pointer-indvars.ll
preserve-signed-wrap.ll Back out the change in 64918 that used sign-extensions when promoting 2009-02-23 23:20:35 +00:00
promote-iv-to-eliminate-casts.ll Back out the change in 64918 that used sign-extensions when promoting 2009-02-23 23:20:35 +00:00
signed-trip-count.ll Back out the change in 64918 that used sign-extensions when promoting 2009-02-23 23:20:35 +00:00
subtract.ll
tripcount_compute.ll
tripcount_infinite.ll
variable-stride-ivs.ll