forked from OSchip/llvm-project
55c3007b88
When loading or storing in a field of a struct like "a.b.c", GVN is able to detect the equivalent expressions, and GVN-hoist would fail in the code generation. This is because the GEPs are not hoisted as scalar operations to avoid moving the GEPs too far from their ld/st instruction when the ld/st is not movable. So we end up having to generate code for the GEP of a ld/st when we move the ld/st. In the case of a GEP referring to another GEP as in "a.b.c" we need to code generate all the GEPs necessary to make all the operands available at the new location for the ld/st. With this patch we recursively walk through the GEP operands checking whether all operands are available, and in the case of a GEP operand, it recursively makes all its operands available. Code generation happens from the inner GEPs out until reaching the GEP that appears as an operand of the ld/st. Differential Revision: https://reviews.llvm.org/D22599 llvm-svn: 276841 |
||
---|---|---|
.. | ||
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 | ||
MemdepMiscompile.ll | ||
assume-equal.ll | ||
basic-undef-test.ll | ||
basic.ll | ||
big-endian.ll | ||
bitcast-of-call.ll | ||
br-identical.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 | ||
edge.ll | ||
fence.ll | ||
flags.ll | ||
fold-const-expr.ll | ||
fpmath.ll | ||
funclet.ll | ||
hoist-md.ll | ||
hoist-pr20242.ll | ||
hoist-pr22005.ll | ||
hoist-pr28606.ll | ||
hoist-recursive-geps.ll | ||
hoist.ll | ||
invariant.group.ll | ||
lifetime-simple.ll | ||
load-constant-mem.ll | ||
load-from-unreachable-predecessor.ll | ||
malloc-load-removal.ll | ||
no_speculative_loads_with_asan.ll | ||
noalias.ll | ||
non-local-offset.ll | ||
nonescaping-malloc.ll | ||
null-aliases-nothing.ll | ||
phi-translate-partial-alias.ll | ||
pr10820.ll | ||
pr12979.ll | ||
pr14166.ll | ||
pr17732.ll | ||
pr17852.ll | ||
pr24397.ll | ||
pr24426.ll | ||
pr25440.ll | ||
pr28562.ll | ||
pr28626.ll | ||
pre-compare.ll | ||
pre-new-inst.ll | ||
range.ll | ||
readattrs.ll | ||
rle-must-alias.ll | ||
rle-no-phi-translate.ll | ||
rle-nonlocal.ll | ||
tbaa.ll | ||
unreachable_block_infinite_loop.ll | ||
volatile-nonvolatile.ll |