llvm-project/llvm/test/Analysis/ConstantFolding
Huihui Zhang 5350a48931 [ConstantFold][SVE] Fix constant fold for FoldReinterpretLoadFromConstPtr.
Summary:
Bail out early for scalable vectors. As global variables are not expected
to be scalable.

Use explicit call of getFixedSize() to assert on places where scalable size
doesn't make sense.

Reviewers: sdesmalen, efriedma, apazos, huntergr, willlovett

Reviewed By: sdesmalen

Subscribers: tschuett, hiraditya, rkruppe, psnobl, llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D74424
2020-02-12 10:24:50 -08:00
..
binop-identity-undef.ll [ConstantFold] Handle identity folds at top of ConstantFoldBinaryInst 2019-11-17 21:30:14 +00:00
bitcount.ll [ConstantFolding] Fold undef for integer intrinsics 2019-01-11 21:18:00 +00:00
cast-vector.ll
copysign.ll [ConstFolding] move tests for copysign; NFC 2019-11-26 16:54:46 -05:00
fneg.ll Add FNeg support to InstructionSimplify 2019-05-06 16:05:10 +00:00
funnel-shift.ll [ConstantFolding] Fold undef for integer intrinsics 2019-01-11 21:18:00 +00:00
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 [ConstantFolding] Fold undef for integer intrinsics 2019-01-11 21:18:00 +00:00
smul-fix-sat.ll [ConstantFolding] Add constant folding for smul.fix and smul.fix.sat 2019-06-19 14:28:03 +00:00
smul-fix.ll [ConstantFolding] Add constant folding for smul.fix and smul.fix.sat 2019-06-19 14:28:03 +00:00
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
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 fold for FoldReinterpretLoadFromConstPtr. 2020-02-12 10:24:50 -08:00