mirror of
https://github.com/RPCS3/llvm.git
synced 2024-12-28 23:43:50 +00:00
81db61a2e6
and generalize it so that it can be used by IndVarSimplify. Implement the base IndVarSimplify transformation code using IVUsers. This removes TestOrigIVForWrap and associated code, as ScalarEvolution now has enough builtin overflow detection and folding logic to handle all the same cases, and more. Run "opt -iv-users -analyze -disable-output" on your favorite loop for an example of what IVUsers does. This lets IndVarSimplify eliminate IV casts and compute trip counts in more cases. Also, this happens to finally fix the remaining testcases in PR1301. Now that IndVarSimplify is being more aggressive, it occasionally runs into the problem where ScalarEvolutionExpander's code for avoiding duplicate expansions makes it difficult to ensure that all expanded instructions dominate all the instructions that will use them. As a temporary measure, IndVarSimplify now uses a FixUsesBeforeDefs function to fix up instructions inserted by SCEVExpander. Fortunately, this code is contained, and can be easily removed once a more comprehensive solution is available. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@71535 91177308-0d34-0410-b5e6-96231b3b80d8 |
||
---|---|---|
.. | ||
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 | ||
2009-04-15-shorten-iv-vars-2.ll | ||
2009-04-22-IndvarCrash.ll | ||
2009-04-27-Floating.ll | ||
ada-loops.ll | ||
avoid-i0.ll | ||
casted-argument.ll | ||
complex-scev.ll | ||
dg.exp | ||
exit_value_tests.ll | ||
iterationCount_zext_or_trunc.ll | ||
iv-zext.ll | ||
lftr_simple.ll | ||
loop_evaluate_1.ll | ||
loop_evaluate_2.ll | ||
loop_evaluate_3.ll | ||
loop_evaluate_4.ll | ||
loop_evaluate_5.ll | ||
loop_evaluate_6.ll | ||
pointer-indvars.ll | ||
preserve-signed-wrap.ll | ||
promote-iv-to-eliminate-casts.ll | ||
signed-trip-count.ll | ||
subtract.ll | ||
tripcount_compute.ll | ||
tripcount_infinite.ll | ||
variable-stride-ivs.ll |