llvm-project/llvm/test/Transforms/Reassociate
Craig Topper 3ad8fbd205 [Reassociate] Teach ConvertShiftToMul to preserve nsw flag if the shift amount is not bitwidth - 1.
Multiply and shl have different signed overflow behavior in
some cases. But it looks like we should be ok as long as the
shift amount is less than bitwidth - 1.

Alive2: http://volta.cs.utah.edu:8080/z/MM4WZP

Differential Revision: https://reviews.llvm.org/D81189
2020-06-04 14:51:34 -07:00
..
2002-05-15-AgressiveSubMove.ll
2002-05-15-MissedTree.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
2002-05-15-SubReassociate.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
2002-07-09-DominanceProblem.ll
2003-08-12-InfiniteLoop.ll
2005-09-01-ArrayOutOfBounds.ll
2006-04-27-ReassociateVector.ll
2011-01-26-UseAfterFree.ll
2012-05-08-UndefLeak.ll
2012-06-08-InfiniteLoop.ll
2019-08-22-FNegAssert.ll [Reassoc] Small fix to support unary FNeg in NegateValue(...) 2019-08-23 15:49:38 +00:00
absorption.ll
add_across_block_crash.ll
basictest.ll
binop-identity.ll
canonicalize-neg-const.ll [Reassociate] try harder to convert negative FP constants to positive 2019-08-10 13:17:54 +00:00
commute.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
crash.ll
crash2.ll
cse-pairs.ll [Reassociate] add testcases for more than 1 pairs - NFC 2020-03-19 05:21:24 -04:00
deadcode.ll
erase_inst_made_change.ll
factorize-again.ll
fast-AgressiveSubMove.ll
fast-ArrayOutOfBounds.ll
fast-MissedTree.ll
fast-ReassociateVector.ll [Reassociate] try harder to convert negative FP constants to positive 2019-08-10 13:17:54 +00:00
fast-SubReassociate.ll [InstCombine] reassociate fsub+fsub into fsub+fadd 2020-01-15 11:14:13 -05:00
fast-basictest.ll Remove BinaryOperator::CreateFNeg 2020-02-27 09:06:03 -08:00
fast-fp-commute.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
fast-mightymul.ll
fast-multistep.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
fp-commute.ll
fp-expr.ll Remove BinaryOperator::CreateFNeg 2020-02-27 09:06:03 -08:00
infloop-deadphi.ll
inverses.ll
keep-debug-loc.ll Infer alignment of unmarked loads in IR/bitcode parsing. 2020-05-14 13:03:50 -07:00
long-chains.ll
looptest.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
matching-binops.ll
mightymul.ll
min_int.ll
mixed-fast-nonfast-fp.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
mulfactor.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
multistep.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
negation.ll
negation1.ll
no-op.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
optional-flags.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
otherops.ll
pointer-collision-non-determinism.ll
pr12245.ll
pr21205.ll
pr28367.ll
pr42349.ll [Reassociate] Remove bogus assert reported in PR42349. 2019-06-20 23:03:55 +00:00
propagate-flags.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
reassoc-intermediate-fnegs.ll [Reassociate] try harder to convert negative FP constants to positive 2019-08-10 13:17:54 +00:00
reassociate-catchswitch.ll Fix new reassociate-catchswitch.ll test 2019-05-08 18:39:03 +00:00
reassociate-deadinst.ll
reassociate-landingpad.ll Migrate function attribute "no-frame-pointer-elim-non-leaf" to "frame-pointer"="non-leaf" as cleanups after D56351 2019-12-24 16:05:15 -08:00
reassociate_dbgvalue_discard.ll
reassociate_salvages_debug_info.ll [DBG][OPT] Attempt to salvage or undef debug info when removing trivially deletable instructions in the Reassociate Expression pass. 2019-11-12 15:17:04 +00:00
repeats.ll
secondary.ll
shift-factor.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
shifttest.ll
subtest.ll
undef_intrinsics_when_deleting_instructions.ll [DBG][OPT] Attempt to salvage or undef debug info when removing trivially deletable instructions in the Reassociate Expression pass. 2019-11-12 15:17:04 +00:00
vaarg_movable.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00
wrap-flags.ll [Reassociate] Teach ConvertShiftToMul to preserve nsw flag if the shift amount is not bitwidth - 1. 2020-06-04 14:51:34 -07:00
xor_reassoc.ll [Tests] Autogen a bunch of Reassociate tests for ease of update 2019-08-01 23:30:32 +00:00