llvm-mirror/test/Transforms/InstSimplify
Dmitry Venikov c1c4330b2a [InstSimplify] Missed optimization in math expression: log10(pow(10.0,x)) == x, log2(pow(2.0,x)) == x
Summary: This patch enables folding following instructions under -ffast-math flag: log10(pow(10.0,x)) -> x, log2(pow(2.0,x)) -> x

Reviewers: hfinkel, spatel, efriedma, craig.topper, zvi, majnemer, lebedev.ri

Reviewed By: spatel, lebedev.ri

Subscribers: lebedev.ri, llvm-commits

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

llvm-svn: 352981
2019-02-03 03:48:30 +00: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 [InstSimplify] simplify add instruction if two operands are negative 2018-07-12 03:06:04 +00:00
addsub.ll
and-icmps-same-ops.ll
and-or-icmp-zero.ll
AndOrXor.ll [InstSimplify] fold extracting from std::pair (2/2) 2018-08-03 05:39:48 +00:00
assume.ll
bitcast-vector-fold.ll
bitreverse-fold.ll
bitreverse.ll
bswap.ll
call.ll [ConstantFolding] Consolidate and extend bitcount intrinsic tests; NFC 2018-12-20 19:46:52 +00:00
cast-unsigned-icmp-cmp-0.ll
cast.ll
compare.ll
constantfold-add-nuw-allones-to-allones.ll
constantfold-shl-nuw-C-to-C.ll
dead-code-removal.ll
div.ll
exact-nsw-nuw.ll
extract-element.ll [InstCombine] remove dead code from visitExtractElement 2018-12-05 23:09:33 +00:00
fast-math.ll [FPEnv] PatternMatcher support for checking FNEG ignoring signed zeros 2018-10-09 21:48:00 +00:00
fcmp-select.ll [InstSimplify] fold select (fcmp X, Y), X, Y 2018-11-05 21:51:39 +00:00
fdiv.ll
floating-point-arithmetic.ll [InstCombine] InstCombine and InstSimplify for minimum and maximum 2018-10-19 19:01:26 +00:00
floating-point-compare.ll [InstSimplify] fold 'fcmp nnan ult X, 0.0' when X is not negative 2018-10-31 15:35:46 +00:00
fold-builtin-fma.ll
fold-intrinsics.ll
fp-nan.ll
fp-undef.ll [InstSimplify] add tests for undef + partial undef constant folding; NFC 2018-11-30 22:51:34 +00:00
gep.ll
icmp-abs-nabs.ll [InstSimplify] fold icmp based on range of abs/nabs (2nd try) 2018-11-01 14:07:39 +00:00
icmp-bool-constant.ll
icmp-constant.ll
icmp-ranges.ll
implies.ll
insertelement.ll
known-never-nan.ll [InstSimplify] use isKnownNeverNaN to fold more fcmp ord/uno 2018-08-21 14:45:13 +00:00
load-relative-32.ll
load-relative.ll
load.ll
log2-pow2-intrinsic.ll [InstSimplify] Missed optimization in math expression: log10(pow(10.0,x)) == x, log2(pow(2.0,x)) == x 2019-02-03 03:48:30 +00:00
log10-pow10-intrinsic.ll [InstSimplify] Missed optimization in math expression: log10(pow(10.0,x)) == x, log2(pow(2.0,x)) == x 2019-02-03 03:48:30 +00:00
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
rem.ll
require-dominator.ll
returned.ll
saturating-add-sub.ll [InstSimplify] Simplify saturating add/sub + icmp 2018-12-17 17:45:18 +00:00
sdiv.ll [InstrSimplify] fold sdiv if two operands are negated and non-overflow 2018-07-21 12:27:54 +00:00
select-and-cmp.ll [InstSimplify] Fold another Select with And/Or pattern 2018-07-31 14:17:15 +00:00
select-implied.ll [InstSimplify] fold select with implied condition 2018-11-29 18:44:39 +00:00
select-or-cmp.ll [InstSimplify] Fold another Select with And/Or pattern 2018-07-31 14:17:15 +00:00
select.ll
shift-128-kb.ll
shift-knownbits.ll
shift.ll [InstSimplify] fold extracting from std::pair (1/2) 2018-08-01 04:40:32 +00:00
shr-nop.ll
shr-scalar-vector-consistency.ll [PatternMatch] Handle undef vectors consistently 2018-11-20 16:08:19 +00:00
shufflevector.ll
signed-div-rem.ll
simplify-nested-bitcast.ll
srem.ll [InstSimplify] fold srem instruction if its two operands are negated. 2018-07-20 13:00:47 +00:00
sub.ll [InstCombine] move/add tests for sub/neg; NFC 2018-10-19 17:26:22 +00:00
undef.ll
vec-cmp.ll
vector_gep.ll
vector_ptr_bitcast.ll