1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/test/Transforms/InstSimplify
Matt Arsenault bd9b22ee76 ValueTracking: Fix isKnownNonZero for non-0 null pointers for byval
The IR doesn't have a proper concept of invalid pointers, and "null"
constants are just all zeros (though it really needs one).

I think it's not possible to break this for AMDGPU due to the copy
semantics of byval. If you have an original stack object at 0, the
byval copy will be placed above it so I don't think it's really
possible to hit a 0 address.
2020-07-16 13:50:49 -04: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 [ValueTracking] Add computeKnownBits DemandedElts support to masked add instructions (PR36319) 2020-03-18 21:50:56 +00:00
add.ll
addsub.ll
and-icmps-same-ops.ll
and-or-icmp-min-max.ll [InstSimplify] fold and/or of compares with equality to min/max constant 2020-04-23 09:16:10 -04:00
and-or-icmp-nullptr.ll [InstSimplify] fold and/or of compares with equality to min/max constant 2020-04-23 09:16:10 -04:00
and-or-icmp-zero.ll
AndOrXor.ll [InstSimplify] add tests for logic-of-icmp with min/max constant; NFC 2020-04-19 08:24:38 -04:00
assume_icmp.ll [InstSimplify] Fold icmp with dominating assume 2020-07-03 18:53:58 +02:00
assume-non-zero.ll
bitcast-vector-fold.ll
bitreverse-fold.ll
bitreverse.ll [ValueTracking] Add computeKnownBits DemandedElts support to EXTRACTELEMENT/OR/BSWAP/BITREVERSE instructions (PR36319) 2020-03-18 18:49:58 +00:00
bswap.ll [ValueTracking] Add computeKnownBits DemandedElts support to EXTRACTELEMENT/OR/BSWAP/BITREVERSE instructions (PR36319) 2020-03-18 18:49:58 +00:00
call.ll [ValueTracking] fix library to intrinsic mapping to respect 'nobuiltin' attribute 2020-07-14 10:04:24 -04:00
cast-unsigned-icmp-cmp-0.ll
cast.ll
cmp_ext.ll [InstSimplify] Simplify comparison between zext(x) and sext(x) 2020-07-04 11:03:00 +02:00
cmp_of_min_max.ll
compare.ll [IR] Convert null-pointer-is-valid into an enum attribute 2020-05-15 19:41:07 +02:00
constantfold-add-nuw-allones-to-allones.ll
constantfold-shl-nuw-C-to-C.ll
constfold-constrained.ll [FEnv] Constfold some unary constrained operations 2020-03-28 12:28:33 +07:00
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 [ValueTracking] fix CannotBeNegativeZero() to disregard 'nsz' FMF 2020-05-05 16:04:59 -04:00
fcmp-select.ll
fdiv.ll
floating-point-arithmetic.ll [ValueTracking] fix miscompile in maxnum case of cannotBeOrderedLessThanZeroImpl (PR46627) 2020-07-14 08:08:09 -04:00
floating-point-compare.ll [ValueTracking] fix miscompile in maxnum case of cannotBeOrderedLessThanZeroImpl (PR46627) 2020-07-14 08:08:09 -04:00
fold-intrinsics.ll
fp-nan.ll [InstSimplify] simplify FP ops harder with FMF 2020-03-12 09:13:28 -04:00
fp-undef.ll [InstSimplify] simplify FP ops harder with FMF (part 2) 2020-03-12 09:53:20 -04:00
freeze.ll [ValueTracking] Let isGuaranteedNotToBeUndefOrPoison look into more constants/instructions 2020-04-25 23:29:54 +09:00
gep.ll [SVE] Make ConstantFoldGetElementPtr work for scalable vectors of indices 2020-06-25 07:28:19 +01:00
icmp-abs-nabs.ll
icmp-bool-constant.ll
icmp-constant.ll
icmp-ranges.ll
icmp.ll [NFCI][InstSimplify] Add CHECK-LABEL to new icmp.ll test 2020-06-25 01:10:35 +03:00
implies.ll
insertelement.ll [InstSimplify] allow insertelement-with-undef fold if poison-safe 2020-05-01 10:34:29 -04:00
known-never-nan.ll [FPEnv] Intrinsic llvm.roundeven 2020-05-26 19:24:58 +07:00
known-non-zero.ll
load-relative-32.ll
load-relative.ll
load.ll [AssumeBundles] add cannonicalisation to the assume builder 2020-06-19 10:32:26 +02:00
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
null-ptr-is-valid-attribute.ll ValueTracking: Fix isKnownNonZero for non-0 null pointers for byval 2020-07-16 13:50:49 -04:00
null-ptr-is-valid.ll ValueTracking: Fix isKnownNonZero for non-0 null pointers for byval 2020-07-16 13:50:49 -04:00
or-icmps-same-ops.ll
or.ll [InstSimplify] fix bug in matching or-with-not op (PR46083) 2020-06-03 13:44:29 -04:00
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 [FPEnv] Intrinsic llvm.roundeven 2020-05-26 19:24:58 +07:00
saturating-add-sub.ll
sdiv.ll
select-and-cmp.ll
select-implied.ll
select-or-cmp.ll
select.ll Revert "[InstSimplify] Remove select ?, undef, X -> X and select ?, X, undef -> X transforms" and subsequent patches 2020-07-15 22:02:33 -07:00
shift-128-kb.ll
shift-knownbits.ll Reapply [InstSimplify] Remove known bits constant folding 2020-05-08 10:24:53 +02:00
shift.ll
shr-nop.ll
shr-scalar-vector-consistency.ll
shufflevector.ll
signed-div-rem.ll
simplify-nested-bitcast.ll
srem.ll
sub.ll
undef.ll
vec-cmp.ll
vector_gep.ll
vector_ptr_bitcast.ll
vscale.ll [SVE] Make Constant::getSplatValue work for scalable vector splats 2020-07-07 13:45:51 -07:00