1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 11:13:28 +01:00
llvm-mirror/test/Transforms/InstSimplify
Nikita Popov 60197cae70 [InstSimplify] Constant fold icmp of gep
InstSimplify can fold icmps of gep where the base pointers are the
same and the offsets are constant. It does so by constructing a
constant expression icmp and assumes that it gets folded -- but
this doesn't actually happen, because GEP expressions can usually
only be folded by the target-dependent constant folding layer.
As such, we need to explicitly invoke it here.

Differential Revision: https://reviews.llvm.org/D75407
2020-03-04 23:16:52 +01:00
..
2010-12-20-Boolean.ll
2011-01-14-Thread.ll
2011-02-01-Vector.ll
2011-09-05-InsertExtractValue.ll
2011-10-27-BinOpCrash.ll
2011-11-23-MaskedBitsCrash.ll
2013-04-19-ConstantFoldingCrash.ll
add-mask.ll
add.ll
addsub.ll
and-icmps-same-ops.ll
and-or-icmp-zero.ll
AndOrXor.ll
assume-non-zero.ll [ValueTracking] isKnownNonZero() should take non-null-ness assumptions into consideration (PR43267) 2019-12-20 01:47:57 +03:00
assume.ll
bitcast-vector-fold.ll
bitreverse-fold.ll
bitreverse.ll
bswap.ll
call.ll [InstSimplify] fold copysign with negated operand, part 2 2019-12-08 10:16:29 -05:00
cast-unsigned-icmp-cmp-0.ll
cast.ll
cmp_of_min_max.ll
compare.ll [InstSimplify] Constant fold icmp of gep 2020-03-04 23:16:52 +01:00
constantfold-add-nuw-allones-to-allones.ll
constantfold-shl-nuw-C-to-C.ll
dead-code-removal.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
exact-nsw-nuw.ll
extract-element.ll
fast-math.ll
fcmp-select.ll [InstSimplify] use FMF to improve fcmp+select fold 2019-11-04 08:29:56 -05:00
fdiv.ll
floating-point-arithmetic.ll
floating-point-compare.ll
fold-intrinsics.ll
fp-nan.ll Fix tests of constant folding of fp operations on NaN values 2020-01-21 21:48:07 +02:00
fp-undef.ll [ConstantFold] add/move tests for FP with undef operand; NFC 2020-02-20 15:07:11 -05:00
freeze.ll [ValueTracking] Let isGuaranteedNotToBeUndefOrPoison look into branch conditions of dominating blocks' terminators 2020-03-04 11:43:31 +09:00
gep.ll
icmp-abs-nabs.ll
icmp-bool-constant.ll
icmp-constant.ll
icmp-ranges.ll
implies.ll
insertelement.ll
known-never-nan.ll [ValueTracking] Add a basic version of isKnownNonInfinity and use it to detect more NoNaNs 2019-11-19 22:24:46 +01:00
known-non-zero.ll [ValueTracking] Allow context-sensitive nullness check for non-pointers 2019-12-09 15:15:52 -06:00
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.ll
mul.ll
negate.ll
noalias-ptr.ll
or-icmps-same-ops.ll
or.ll
past-the-end.ll
phi.ll
pr28725.ll
pr33957.ll
ptr_diff.ll
reassociate.ll
redundant-null-check-in-uadd_with_overflow-of-nonnull-ptr.ll
rem.ll
remove-dead-call.ll
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
round-intrinsics.ll
saturating-add-sub.ll
sdiv.ll
select-and-cmp.ll
select-implied.ll
select-or-cmp.ll
select.ll [InstSimplify] fold select of vector constants that include undef elements 2020-01-20 08:48:32 -05:00
shift-128-kb.ll
shift-knownbits.ll
shift.ll
shr-nop.ll
shr-scalar-vector-consistency.ll
shufflevector.ll [InstSimplify] fold splat of inserted constant to vector constant 2019-12-15 09:32:03 -05:00
signed-div-rem.ll
simplify-nested-bitcast.ll
srem.ll
sub.ll
undef.ll
unsigned-range-checks.ll
vec-cmp.ll
vector_gep.ll
vector_ptr_bitcast.ll