1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-26 04:32:44 +01:00
llvm-mirror/test/Transforms/InstSimplify
Juneyoung Lee b719c3f4a5 [InstSimplify] icmp poison, X -> poison
This adds a simple transformation from icmp with poison constant to poison.
Comparing poison with something else is poison, so this is okay.

https://alive2.llvm.org/ce/z/e8iReb
https://alive2.llvm.org/ce/z/q4MurY
2021-06-20 15:39:07 +09:00
..
ConstProp Update @llvm.powi to handle different int sizes for the exponent 2021-06-17 09:38:28 +02:00
X86 [FPEnv][InstSimplify] Precommit tests for D103169. 2021-06-17 10:34:39 -04:00
2010-12-20-Boolean.ll
2011-01-14-Thread.ll
2011-02-01-Vector.ll
2011-09-05-InsertExtractValue.ll [InstSimplify] Return poison for out of bounds extractelement 2021-01-03 18:15:58 +01:00
2011-10-27-BinOpCrash.ll
2011-11-23-MaskedBitsCrash.ll
2013-04-19-ConstantFoldingCrash.ll
abs_intrinsic.ll [InstSimplify] Don't miscompile X == 0 ? abs(X) : -abs(X) --> -abs(X) xform 2020-12-18 21:18:13 +03:00
add-mask.ll
add.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
addsub.ll
and-icmps-same-ops.ll
and-or-icmp-min-max.ll
and-or-icmp-nullptr.ll
and-or-icmp-zero.ll
and.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
AndOrXor.ll Revert "[InstSimplify] Bypass no-op and-mask, using known bits (PR49543)" 2021-04-21 09:55:25 +02:00
assume_icmp.ll
assume-non-zero.ll
bitcast-vector-fold.ll
bitreverse-fold.ll
bitreverse.ll
bswap.ll
call.ll Update @llvm.powi to handle different int sizes for the exponent 2021-06-17 09:38:28 +02:00
cast-unsigned-icmp-cmp-0.ll
cast.ll
cmp_ext.ll
cmp_of_min_max.ll
cmp-vec-fast-path.ll
compare.ll
constantfold-add-nuw-allones-to-allones.ll
constantfold-shl-nuw-C-to-C.ll
constfold-constrained.ll
dead-code-removal.ll
distribute.ll
div-by-0-guard-before-smul_ov-not.ll
div-by-0-guard-before-smul_ov.ll
div-by-0-guard-before-umul_ov-not.ll
div-by-0-guard-before-umul_ov.ll
div.ll Reapply [ConstantFold] Fold more operations to poison 2021-05-13 16:04:12 +02:00
exact-nsw-nuw.ll
extract-element.ll [InstSimplify] Return poison for out of bounds extractelement 2021-01-03 18:15:58 +01:00
extract-vector.ll [InstSimplify] Remove redundant {insert,extract}_vector intrinsic chains 2021-05-13 16:09:50 +00:00
fast-math.ll
fcmp-select.ll
fcmp.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
fdiv.ll
floating-point-arithmetic.ll
floating-point-compare.ll Update @llvm.powi to handle different int sizes for the exponent 2021-06-17 09:38:28 +02:00
fminmax-folds.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
fold-intrinsics.ll Update @llvm.powi to handle different int sizes for the exponent 2021-06-17 09:38:28 +02:00
fp-nan.ll [InstSimplify] Fold nnan/ninf violation to poison 2021-01-03 22:05:40 +01:00
fp-undef-poison-strictfp.ll [FPEnv][InstSimplify] Precommit tests for D103169. 2021-06-17 10:34:39 -04:00
fp-undef-poison.ll [InstSimplify] propagate poison through FP ops 2021-06-16 11:31:58 -04:00
fptoi-sat.ll [ConstantFold] Fold fptoi.sat intrinsics 2021-01-10 17:37:27 +01:00
freeze-noundef.ll
freeze.ll [ValueTracking] Dereferenced pointers are noundef 2021-02-14 22:50:48 +09:00
gc_relocate.ll Use the right pass in test introduced in f1fdbd67 2021-03-04 12:21:13 -08:00
gep.ll [SimplifyInst] Use correct type for GEPs with vector indices. 2021-04-06 17:56:10 +01:00
icmp-abs-nabs.ll
icmp-bool-constant.ll
icmp-constant.ll Update m_Undef to match vectors/aggrs with undefs and poisons mixed 2021-04-18 10:57:04 +09:00
icmp-ranges.ll
icmp.ll [InstSimplify] icmp poison, X -> poison 2021-06-20 15:39:07 +09:00
implies.ll
insert-vector.ll [InstSimplify] Properly constrain {insert,extract}_subvector intrinsic fold 2021-05-21 10:05:03 +00:00
insertelement.ll [InstSimplify] Fold insertelement vec, poison, idx into vec 2021-01-07 10:10:14 +09:00
insertvalue.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
invalid-load-operand-infinite-loop.ll [InstSimplify] Treat invariant group insts as bitcasts for load operands 2021-06-15 12:59:43 -07:00
invariant.group-load.ll [InstSimplify] Treat invariant group insts as bitcasts for load operands 2021-06-15 12:59:43 -07:00
known-never-nan.ll
known-non-zero.ll
load-relative-32.ll
load-relative.ll
load.ll
log2-pow2-intrinsic.ll
log10-pow10-intrinsic.ll
log-exp-intrinsic.ll
logic-of-fcmps.ll
maxmin_intrinsics.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
maxmin.ll
mul.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
named-vector-shuffle-reverse.ll [SVE] Remove checks for warnings in scalable-vector tests. 2021-04-07 15:59:32 +01:00
negate.ll
noalias-ptr.ll
null-ptr-is-valid-attribute.ll
null-ptr-is-valid.ll
or-icmps-same-ops.ll
or.ll [InstSimplify] Handle commutativity for 'and' and 'outer or' for (~A & B) | ~(A | B) --> ~A 2021-01-16 19:42:50 +01:00
past-the-end.ll
phi-cse.ll
phi.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
pr28725.ll
pr33957.ll
pr49495.ll [InstCombine] Whitelist non-refining folds in SimplifyWithOpReplaced 2021-03-22 22:12:56 +01:00
ptr_diff.ll
reassociate.ll
redundant-null-check-in-uadd_with_overflow-of-nonnull-ptr.ll
rem.ll [InstSimplify] Transform X * Y % Y --> 0 2021-05-25 10:16:04 -04:00
remove-dead-call.ll [Local] Treat calls that may not return as being alive. 2021-01-23 16:05:14 +00:00
require-dominator.ll
result-of-add-of-negative-is-non-zero-and-no-underflow.ll
result-of-usub-by-nonzero-is-non-zero-and-no-overflow.ll
result-of-usub-is-non-zero-and-no-overflow.ll
returned.ll [Local] Treat calls that may not return as being alive. 2021-01-23 16:05:14 +00:00
round-intrinsics.ll
saturating-add-sub.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
sdiv.ll
select-and-cmp.ll
select-implied.ll
select-inseltpoison.ll [InstSimplify] allow undef element match in vector select condition value 2021-05-25 14:25:34 -04:00
select-or-cmp.ll
select.ll [InstSimplify] allow undef element match in vector select condition value 2021-05-25 14:25:34 -04:00
shift-128-kb.ll
shift-knownbits.ll [InstSimplify] add tests for computeKnownBits of shift-with-bitcast op; NFC 2021-06-17 12:39:16 -04:00
shift.ll [InstSimplify] Fold out-of-bounds shift to poison 2021-01-06 20:41:37 +01:00
shr-nop.ll
shr-scalar-vector-consistency.ll
shufflevector-inseltpoison.ll Precommit tests that have poison as shufflevector's placeholder 2020-12-29 17:09:31 +09:00
shufflevector.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
signed-div-rem.ll
simplify-nested-bitcast.ll
smul_fix.ll [InstSimplify] Simplify smul.fix and smul.fix.sat 2021-03-12 09:09:58 +01:00
srem.ll
sub.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00
undef.ll Reapply [ConstantFold] Fold more operations to poison 2021-05-13 16:04:12 +02:00
vec-cmp.ll
vector_gep.ll
vector_ptr_bitcast.ll
vscale-inseltpoison.ll [InstSimplify] Return poison for out of bounds extractelement 2021-01-03 18:15:58 +01:00
vscale.ll [InstSimplify] Return poison for out of bounds extractelement 2021-01-03 18:15:58 +01:00
xor.ll [InstSimplify] Add tests that fold instructions with poison operands (NFC) 2020-12-02 01:01:59 +09:00