1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-19 19:12:56 +02:00
llvm-mirror/test/Transforms/InstSimplify
Zvi Rackover 2888e5cce2 InstSimplify: If divisor element is undef simplify to undef
Summary:
If any vector divisor element is undef, we can arbitrarily choose it be
zero which would make the div/rem an undef value by definition.

Reviewers: spatel, reames

Reviewed By: spatel

Subscribers: magabari, llvm-commits

Differential Revision: https://reviews.llvm.org/D42485

llvm-svn: 323343
2018-01-24 17:22:00 +00:00
..
2010-12-20-Boolean.ll
2011-01-14-Thread.ll
2011-02-01-Vector.ll
2011-09-05-InsertExtractValue.ll InstructionSimplify: 'extractelement' with an undef index is undef 2017-12-06 17:51:46 +00:00
2011-10-27-BinOpCrash.ll
2011-11-23-MaskedBitsCrash.ll
2013-04-19-ConstantFoldingCrash.ll
add-mask.ll
addsub.ll [InstSimplify] Add test cases for mixing add/sub i1 with xor of i1. Seems we can simplify in one direction but not the other. 2017-04-06 05:48:06 +00:00
and-icmps-same-ops.ll
and-or-icmp-zero.ll [InstSimplify] fold implied null ptr check (PR35790) 2018-01-13 15:44:44 +00:00
AndOrXor.ll [InstSimplify] Make m_Not work for xor -1, X 2017-05-18 20:27:32 +00:00
assume.ll
bitcast-vector-fold.ll
bitreverse-fold.ll Move tests associated with transforms moved in r321467 2017-12-30 03:13:00 +00:00
bitreverse.ll
bswap.ll
call-callconv.ll
call.ll InstSimplify: canonicalize is idempotent 2017-09-07 01:21:43 +00:00
cast.ll
compare.ll [InstCombine] remove unnecessary vector select fold; NFCI 2017-08-30 14:04:57 +00:00
dead-code-removal.ll
div.ll InstSimplify: If divisor element is undef simplify to undef 2018-01-24 17:22:00 +00:00
exact-nsw-nuw.ll [InstSimplify] fold sdiv/srem based on compare of dividend and divisor 2017-09-14 14:59:07 +00:00
exp2-intrinsic.ll [InstSimplify] Missed optimization in math expression: squashing exp(log), log(exp) 2018-01-03 14:37:42 +00:00
exp-intrinsic.ll [InstSimplify] Missed optimization in math expression: squashing exp(log), log(exp) 2018-01-03 14:37:42 +00:00
extract-element.ll [instsimplify] consistently handle undef and out of bound indices for insertelement and extractelement 2017-12-30 05:54:22 +00:00
fast-math.ll
fdiv.ll [InstSimplify] add constant folding for fdiv/frem 2017-04-01 19:05:11 +00:00
floating-point-arithmetic.ll
floating-point-compare.ll [InstSimplify] More fcmp cases when comparing against negative constants. 2017-12-01 12:34:16 +00:00
fold-builtin-fma.ll
fold-intrinsics.ll Move tests associated with transforms moved in r321467 2017-12-30 03:13:00 +00:00
gep.ll
icmp-bool-constant.ll [InstSimplify] handle all icmp i1 X, C in one place; NFCI 2017-05-17 20:27:55 +00:00
icmp-constant.ll [ValueTracking] return zero when there's conflict in known bits of a shift (PR34838) 2017-10-12 17:31:46 +00:00
icmp-ranges.ll [InstSimplify] use ConstantRange to simplify or-of-icmps 2017-05-07 15:11:40 +00:00
implies.ll
insertelement.ll [instsimplify] consistently handle undef and out of bound indices for insertelement and extractelement 2017-12-30 05:54:22 +00:00
load-relative-32.ll
load-relative.ll
load.ll
log2-intrinsic.ll [InstSimplify] Missed optimization in math expression: squashing exp(log), log(exp) 2018-01-03 14:37:42 +00:00
log-intrinsic.ll [InstSimplify] Missed optimization in math expression: squashing exp(log), log(exp) 2018-01-03 14:37:42 +00:00
logic-of-fcmps.ll [InstSimplify] fold and/or of fcmp ord/uno when operand is known nnan 2017-11-19 15:34:27 +00:00
maxmin.ll
mul.ll [InstSimplify] Teach SimplifyMulInst to recognize vectors of i1 as And. Not just scalar i1. 2017-04-06 17:33:37 +00:00
negate.ll
noalias-ptr.ll
or-icmps-same-ops.ll
or.ll [InstSimplify] Use m_APInt instead of m_ConstantInt in ((V + N) & C1) | (V & C2) handling in order to support splat vectors. 2017-05-26 19:03:53 +00:00
past-the-end.ll
phi.ll
pr28725.ll Reintroduce r320049, r320014 and r319894. 2017-12-13 11:21:18 +00:00
pr33957.ll [ConstantFolder] Don't try to fold gep when the idx is a vector. 2017-07-27 22:20:44 +00:00
ptr_diff.ll
reassociate.ll [InstSimplify] regenerate checks and add tests for commutes; NFC 2018-01-18 23:11:24 +00:00
rem.ll InstSimplify: If divisor element is undef simplify to undef 2018-01-24 17:22:00 +00:00
require-dominator.ll
returned.ll
select.ll [InstSimplify] teach SimplifySelectInst() to fold more vector selects 2017-10-02 23:43:52 +00:00
shift-128-kb.ll
shift-knownbits.ll
shr-nop.ll
shufflevector.ll InstructionSimplify: Relanding r301766 2017-05-07 18:16:37 +00:00
signed-div-rem.ll [InstSimplify] fold sdiv/srem based on compare of dividend and divisor 2017-09-14 14:59:07 +00:00
simplify-nested-bitcast.ll [InstSimplify] Constant fold the new GEP in SimplifyGEPInst. 2017-06-06 10:17:14 +00:00
undef.ll
vec-cmp.ll
vector_gep.ll [ConstantFold] Support vector index when factoring out GEP index into preceding dimensions 2017-12-04 19:56:33 +00:00
vector_ptr_bitcast.ll