forked from OSchip/llvm-project
2c7a07b59d
Here we teach the ConstantFolding analysis pass that it is not legal to replace a load of a bitcast constant (having a non-integral addrspace) with a bitcast of the value of that constant (with a different non-integral addrspace). But also teach it that certain bit patterns are always known and convertable (a fact it already uses elsewhere). This required us to also fix a globalopt test, since, after this change, LLVM is able to realize that the test actually is a valid transform (NULL is always a known bit-pattern) and so it doesn't need to emit the failure remarks for it. Also simplify some of the negative tests for transforms by avoiding a type change in their bitcast, and add positive versions of the same tests, to show that they otherwise should work. Differential Revision: https://reviews.llvm.org/D59730 |
||
---|---|---|
.. | ||
PRE | ||
2007-07-25-DominatedLoop.ll | ||
2007-07-25-InfiniteLoop.ll | ||
2007-07-25-Loop.ll | ||
2007-07-25-NestedLoop.ll | ||
2007-07-25-SinglePredecessor.ll | ||
2007-07-26-InterlockingLoops.ll | ||
2007-07-26-NonRedundant.ll | ||
2007-07-26-PhiErasure.ll | ||
2007-07-30-PredIDom.ll | ||
2007-07-31-NoDomInherit.ll | ||
2007-07-31-RedundantPhi.ll | ||
2008-02-12-UndefLoad.ll | ||
2008-02-13-NewPHI.ll | ||
2008-07-02-Unreachable.ll | ||
2008-12-09-SelfRemove.ll | ||
2008-12-12-RLE-Crash.ll | ||
2008-12-14-rle-reanalyze.ll | ||
2008-12-15-CacheVisited.ll | ||
2009-01-21-SortInvalidation.ll | ||
2009-01-22-SortInvalidation.ll | ||
2009-03-10-PREOnVoid.ll | ||
2009-07-13-MemDepSortFail.ll | ||
2009-11-12-MemDepMallocBitCast.ll | ||
2010-03-31-RedundantPHIs.ll | ||
2010-05-08-OneBit.ll | ||
2010-11-13-Simplify.ll | ||
2011-04-27-phioperands.ll | ||
2011-07-07-MatchIntrinsicExtract.ll | ||
2011-09-07-TypeIdFor.ll | ||
2012-05-22-PreCrash.ll | ||
2016-08-30-MaskedScatterGather.ll | ||
MemdepMiscompile.ll | ||
addrspacecast.ll | ||
assume-equal.ll | ||
basic-undef-test.ll | ||
basic.ll | ||
big-endian.ll | ||
bitcast-of-call.ll | ||
br-identical.ll | ||
callbr-loadpre-critedge.ll | ||
callbr-scalarpre-critedge.ll | ||
calloc-load-removal.ll | ||
calls-nonlocal.ll | ||
calls-readonly.ll | ||
commute.ll | ||
cond_br.ll | ||
cond_br2.ll | ||
condprop.ll | ||
crash-no-aa.ll | ||
crash.ll | ||
critical-edge-split-indbr-pred-in-loop.ll | ||
dbg-redundant-load.ll | ||
debugloc.ll | ||
edge.ll | ||
equality-assume.ll | ||
fence.ll | ||
flags.ll | ||
fold-const-expr.ll | ||
fpmath.ll | ||
freeze.ll | ||
funclet.ll | ||
int_sideeffect.ll | ||
invariant.group.ll | ||
invariant.start.ll | ||
lifetime-simple.ll | ||
load-constant-mem.ll | ||
load-from-unreachable-predecessor.ll | ||
malloc-load-removal.ll | ||
no-mem-dep-info.ll | ||
no_speculative_loads_with_asan.ll | ||
noalias.ll | ||
non-integral-pointers.ll | ||
non-local-offset.ll | ||
nonescaping-malloc.ll | ||
null-aliases-nothing.ll | ||
opt-remarks.ll | ||
phi-translate-partial-alias.ll | ||
pr10820.ll | ||
pr12979.ll | ||
pr14166.ll | ||
pr17732.ll | ||
pr17852.ll | ||
pr24397.ll | ||
pr24426.ll | ||
pr25440.ll | ||
pr28562.ll | ||
pr28879.ll | ||
pr32314.ll | ||
pr34908.ll | ||
pr36063.ll | ||
pr42605.ll | ||
pr46054-md-nonlocaldefcache-cleanup.ll | ||
pre-compare.ll | ||
pre-new-inst.ll | ||
preserve-analysis.ll | ||
propagate-ir-flags.ll | ||
range.ll | ||
readattrs.ll | ||
rle-must-alias.ll | ||
rle-no-phi-translate.ll | ||
rle-nonlocal.ll | ||
stale-loop-info.ll | ||
tbaa.ll | ||
unreachable-predecessor.ll | ||
unreachable_block_infinite_loop.ll | ||
volatile-nonvolatile.ll | ||
vscale.ll |