1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test/Analysis/ConstantFolding
Florian Hahn a5255ebc0e [ConstantFold] Handle identity folds at top of ConstantFoldBinaryInst
Currently we miss folds with undef and identity values for binary ops
that do not fold to undef in general.

We can generalize the identity simplifications and do them before
checking for undef in particular.

Alive checks:
 * OR - https://rise4fun.com/Alive/8OsK
 * AND - https://rise4fun.com/Alive/e3tE

This will also allow us to remove some now redundant cases throughout
the function, but I would like to do this as follow-up. That should make
tracking down potential issues easier.

Reviewers: spatel, RKSimon, lebedev.ri

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D70169
2019-11-17 21:30:14 +00:00
..
binop-identity-undef.ll [ConstantFold] Handle identity folds at top of ConstantFoldBinaryInst 2019-11-17 21:30:14 +00:00
bitcount.ll
cast-vector.ll
fneg.ll
funnel-shift.ll
gep-alias.ll
gep-constanfolding-error.ll
gep-zeroinit-vector.ll [ConstantFold] Fold extractelement of getelementptr 2019-10-28 18:32:39 +00:00
gep.ll
math-1.ll [ConstantFolding] Fold constant calls to log2() 2019-09-30 20:53:23 +00:00
math-2.ll
min-max.ll
rint.ll [ConstantFolding] Expand folding of some library functions 2019-09-12 21:23:22 +00:00
round.ll [ConstantFolding] Expand folding of some library functions 2019-09-12 21:23:22 +00:00
saturating-add-sub.ll
smul-fix-sat.ll
smul-fix.ll
timeout.ll
trunc.ll [ConstantFolding] Expand folding of some library functions 2019-09-12 21:23:22 +00:00
vector-undef-elts.ll
vectorgep-crash.ll