llvm-project/llvm/test/Transforms/SCCP
Davide Italiano 6c2c3e07bf [SCCP] Teach the pass how to handle `div` with overdefined operands.
This can prove that:

extern int f;
int g() {
    int x = 0;
    for (int i = 0; i < 365; ++i) {
        x /= f;
    }
    return x;
}

always returns zero. Thanks to Sanjoy for confirming this
transformation actually made sense (bugs are mine).

llvm-svn: 292531
2017-01-19 23:07:51 +00:00
..
2002-05-02-MissSecondInst.ll
2002-05-20-MissedIncomingValue.ll
2002-05-21-InvalidSimplify.ll
2002-08-30-GetElementPtrTest.ll
2003-06-24-OverdefinedPHIValue.ll
2003-08-26-InvokeHandling.ll
2004-11-16-DeadInvoke.ll
2004-12-10-UndefBranchBug.ll
2006-10-23-IPSCCP-Crash.ll
2006-12-04-PackedType.ll
2006-12-19-UndefBug.ll
2007-05-16-InvokeCrash.ll
2008-01-27-UndefCorrelate.ll
2008-04-22-multiple-ret-sccp.ll
2008-05-23-UndefCallFold.ll
2009-01-14-IPSCCP-Invoke.ll
2009-05-27-VectorOperandZero.ll
apint-array.ll
apint-basictest.ll
apint-basictest2.ll
apint-basictest3.ll
apint-basictest4.ll
apint-bigarray.ll
apint-bigint.ll
apint-bigint2.ll
apint-ipsccp1.ll
apint-ipsccp2.ll
apint-ipsccp3.ll
apint-ipsccp4.ll
apint-load.ll
apint-phi.ll
apint-select.ll
atomic-load-store.ll
atomic.ll
bitcast.ll
calltest.ll [SCCP] Don't delete side-effecting instructions 2016-08-24 18:10:21 +00:00
comdat-ipo.ll
constant-struct.ll [SCCP] Constant fold structs if all the lattice value are constant. 2016-07-12 19:54:19 +00:00
crash.ll
dont-zap-return.ll [SCCP] Zap multiple return values. 2016-07-20 20:17:13 +00:00
global-alias-constprop.ll
ipsccp-addr-taken.ll
ipsccp-basic.ll [SCCP] Zap multiple return values. 2016-07-20 20:17:13 +00:00
loadtest.ll
logical-nuke.ll [SCCP] Make the test added in r289175 more meaningful. 2016-12-09 03:49:20 +00:00
overdefined-div.ll [SCCP] Teach the pass how to handle `div` with overdefined operands. 2017-01-19 23:07:51 +00:00
pr27712.ll
retvalue-undef.ll
sccptest.ll
select.ll
switch-multiple-undef.ll [SCCP] Add a test for switches on undef. 2016-11-23 01:42:39 +00:00
switch.ll
ub-shift.ll
undef-resolve.ll [SCCP] Make sure SCCP and ConstantFolding agree on undef >> a. 2016-12-08 22:28:53 +00:00
vector-bitcast.ll