1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Analysis/ConstantFolding
Sanjay Patel 6fe2359aa7 [ConstantFold] fold fsub -0.0, undef to undef rather than NaN
A question about this behavior came up on llvm-dev:
http://lists.llvm.org/pipermail/llvm-dev/2020-February/139003.html
...and as part of backend improvements in D73978, but this is an IR
change first because we already have fairly thorough tests in place
here.

We decided not to implement a more general change that would have
folded any FP binop with nearly arbitrary constant + undef operand
to undef because that is not theoretically correct (even if it is
practically correct).

Differential Revision: https://reviews.llvm.org/D74713
2020-02-21 08:03:19 -05:00
..
AMDGPU [AMDGPU][ConstantFolding] Fold llvm.amdgcn.fmul.legacy intrinsic 2020-02-19 16:01:30 +00: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
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 [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 Prevent Constant Folding From Optimizing inrange GEP 2018-09-11 01:53:36 +00:00
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 [ConstantFolding] Constant fold minimum and maximum intrinsics 2018-10-19 18:15:32 +00:00
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