llvm-project/llvm/test/Analysis/ConstantFolding
Eli Friedman 90ad786947 [IR] Prefer scalar type for struct indexes in GEP constant expressions.
This has two advantages: one, it's simpler, and two, it doesn't require
heroic pattern matching with scalable vectors.

Also includes a small fix to DataLayout to allow the scalable vector
testcase to work correctly.

Differential Revision: https://reviews.llvm.org/D82061
2020-06-23 16:14:36 -07:00
..
AMDGPU [AMDGPU] Fold llvm.amdgcn.cos and llvm.amdgcn.sin intrinsics (fix tests) 2020-06-03 11:40:52 +01: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
copysign.ll [ConstFolding] move tests for copysign; NFC 2019-11-26 16:54:46 -05:00
extractelement-vscale.ll [SVE] Eliminate bad VectorType::getNumElements() calls from ConstantFold 2020-06-17 14:19:56 -07:00
fneg.ll
fp-undef.ll [ConstantFold] fold fsub -0.0, undef to undef rather than NaN 2020-02-21 08:03:19 -05:00
funnel-shift.ll
gep-alias.ll Fix pointer width in test from r366754. 2019-07-22 23:32:41 +00:00
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 [ConstantFolding] Fold calls to FP remainder function 2020-02-12 13:21:18 +02:00
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
vecreduce.ll [ConstantFolding] Constant folding for integer vector reduce intrinsics 2020-05-29 17:58:42 +01:00
vector-undef-elts.ll
vectorgep-crash.ll [IR] Prefer scalar type for struct indexes in GEP constant expressions. 2020-06-23 16:14:36 -07:00
vscale-getelementptr.ll Reapply: [SVE] Fix bug in simplification of scalable vector instructions 2020-02-05 10:00:09 -08:00
vscale-shufflevector.ll Reapply: [SVE] Fix bug in simplification of scalable vector instructions 2020-02-05 10:00:09 -08:00
vscale.ll [ConstantFold][SVE] Fix constant folding for scalable vector compare instruction. 2020-03-12 16:15:38 -07:00