llvm-project/llvm/test/Transforms/IndVarSimplify
David Stenberg e6f332ef1e [IndVarSimplify] Fix Modified status for removal of overflow intrinsics
When removing an overflow intrinsic the Changed status in SimplifyIndvar
was not set, leading to the IndVarSimplify pass returning an incorrect
status.

This was caught using the check introduced by D80916.

As pointed out in the code review, a similar bug may exist for
eliminateTrunc().

Reviewed By: reames

Differential Revision: https://reviews.llvm.org/D85971
2020-09-29 13:20:59 +02:00
..
AMDGPU
ARM [SCEV] Constant expansion cost at minsize 2020-09-10 08:21:11 +01:00
NVPTX
X86 [IndVarSimplify] Don't replace IV user with unsafe loop-invariant (PR45360) 2020-06-23 13:53:15 +03:00
2002-09-09-PointerIndVar.ll
2003-04-16-ExprAnalysis.ll
2003-09-23-NotAtTop.ll
2003-12-10-RemoveInstrCrash.ll
2003-12-15-Crash.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-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-25-APFloatAssert.ll
2009-04-22-IndvarCrash.ll
2009-04-27-Floating.ll
2009-05-24-useafterfree.ll
2011-09-10-widen-nsw.ll
2011-09-19-vectoriv.ll
2011-09-27-hoistsext.ll
2011-10-27-lftrnull.ll
2011-11-01-lftrptr.ll
2011-11-17-selfphi.ll
2012-10-19-congruent-constant.ll
2014-06-21-congruent-constant.ll [NewPM][LoopUnswitch] Pin loop-unswitch to legacy PM or use simple-loop-unswitch 2020-08-06 10:56:00 -07:00
ada-loops.ll
ashr-tripcount.ll
avoid-i0.ll
backedge-on-min-max.ll
bec-cmp.ll
canonicalize-cmp.ll [Test] Auto-generated checks for some IndVarSimplify tests 2020-09-08 11:15:40 +07:00
casted-argument.ll
checks_against_min_value.ll [Test] Missing range check removal opportunity 2020-09-18 17:55:23 +07:00
const_phi.ll
constant-fold.ll
constant_result.ll
crash.ll
dangling-use.ll
divide-pointer.ll
dont-recompute.ll
drop-exact.ll
elim-extend.ll [IndVars] Regenerate test checks (NFC) 2020-06-29 20:33:50 +02:00
eliminate-comparison.ll [IndVars] Remove exiting conditions that are trivially true/false 2020-09-29 11:35:32 +07:00
eliminate-exit-no-dl.ll
eliminate-exit.ll
eliminate-max.ll
eliminate-overflow-modified.ll [IndVarSimplify] Fix Modified status for removal of overflow intrinsics 2020-09-29 13:20:59 +02:00
eliminate-rem.ll
eliminate-sat.ll
exit_value_test2.ll
exit_value_test3.ll
exit_value_tests.ll
floating-point-iv.ll
full_widening.ll
indirectbr.ll
infer-poison-flags.ll
interesting-invoke-use.ll
iterationCount_zext_or_trunc.ll
iv-fold.ll
iv-sext.ll
iv-widen-elim-ext.ll
iv-zext.ll
lcssa-preservation.ll
lftr-address-space-pointers.ll
lftr-dead-ivs.ll
lftr-multi-exit.ll [Test] Auto-generated checks for some IndVarSimplify tests 2020-09-08 11:15:40 +07:00
lftr-pr20680.ll
lftr-pr31181.ll
lftr-pr41998.ll
lftr-promote.ll
lftr-reuse.ll
lftr.ll
lftr_disabled.ll
loop-predication.ll
loop_evaluate7.ll
loop_evaluate8.ll
loop_evaluate9.ll
loop_evaluate11.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
lrev-existing-umin.ll
masked-iv.ll
monotonic_checks.ll [Test] More tests where IndVars fails to eliminate a range check 2020-09-08 14:43:29 +07:00
no-iv-rewrite.ll [NFC] Run update script on test 2020-08-17 12:53:14 +01:00
phi-uses-value-multiple-times.ll
post-inc-range.ll
pr18223.ll [Test] Auto-generated checks for some IndVarSimplify tests 2020-09-08 11:15:40 +07:00
pr22222.ll
pr24783.ll
pr24952.ll
pr25060.ll
pr25578.ll
pr26974.ll
pr28705.ll
pr32045.ll
pr38674.ll
pr38855.ll [FunctionAttrs] Rename functionattrs -> function-attrs 2020-07-28 09:09:13 -07:00
pr39673.ll
pr40454.ll
pr45835.ll
predicated_ranges.ll [Test] Add tests where we can replace condition with invariants 2020-09-28 12:04:20 +07:00
preserve-memoryssa.ll
preserve-signed-wrap.ll
promote-iv-to-eliminate-casts.ll
replace-loop-exit-folds.ll
replace-sdiv-by-udiv.ll
replace-srem-by-urem.ll
rewrite-loop-exit-value.ll
rlev-add-me.ll
scev-expander-preserve-lcssa.ll [SCEV] Add additional tests. 2020-07-28 16:15:57 +01:00
scevexpander-phi-base-case.ll
sentinel.ll [Test] Add one more test on IndVars that was failing on one of older builds 2020-08-07 14:23:55 +07:00
sharpen-range.ll
shrunk-constant.ll
signed-trip-count.ll
single-element-range.ll
sink-alloca.ll
sink-from-preheader.ll
sink-trapping.ll
strengthen-overflow.ll
tripcount_compute.ll
tripcount_infinite.ll
trivial-checks.ll [Test] Add tests showing that IndVars cannot prove (X + 1 > X) 2020-09-17 22:37:43 +07:00
udiv-invariant-but-traps.ll
udiv.ll
ult-sub-to-eq.ll
use-range-metadata.ll
variable-stride-ivs-0.ll
widen-i32-i8ptr.ll [SCEV][IndVarSimplify] insert point should not be block front. 2020-07-17 22:25:10 -04:00
widen-loop-comp.ll
zext-nuw.ll