[DAGCombine] Improve Load-Store Forwarding
authorNirav Dave <niravd@google.com>
Wed, 10 Oct 2018 14:15:52 +0000 (14:15 +0000)
committerNirav Dave <niravd@google.com>
Wed, 10 Oct 2018 14:15:52 +0000 (14:15 +0000)
commit07acc992dc39edfccc5a4b773c3dcf8a5bf6d893
tree3bf75667e8a6457c656e5eac1ca0dd14c12ff32a
parent6cca8af2270be8bc5494b44bb8856af591d0385b
[DAGCombine] Improve Load-Store Forwarding

Summary:
Extend analysis forwarding loads from preceeding stores to work with
extended loads and truncated stores to the same address so long as the
load is fully subsumed by the store.

Hexagon's swp-epilog-phis.ll and swp-memrefs-epilog1.ll test are
deleted as they've no longer seem to be relevant.

Reviewers: RKSimon, rnk, kparzysz, javed.absar

Subscribers: sdardis, nemanjai, hiraditya, atanasyan, llvm-commits

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

llvm-svn: 344142
16 files changed:
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/AArch64/arm64-ld-from-st.ll
llvm/test/CodeGen/AArch64/regress-tblgen-chains.ll
llvm/test/CodeGen/Hexagon/clr_set_toggle.ll
llvm/test/CodeGen/Hexagon/swp-epilog-phis.ll [deleted file]
llvm/test/CodeGen/Hexagon/swp-memrefs-epilog1.ll [deleted file]
llvm/test/CodeGen/Mips/cconv/vector.ll
llvm/test/CodeGen/Mips/indirect-jump-hazard/jumptables.ll
llvm/test/CodeGen/Mips/o32_cc_byval.ll
llvm/test/CodeGen/Mips/o32_cc_vararg.ll
llvm/test/CodeGen/PowerPC/addi-offset-fold.ll
llvm/test/CodeGen/SystemZ/store_nonbytesized_vecs.ll
llvm/test/CodeGen/X86/i386-shrink-wrapping.ll
llvm/test/CodeGen/X86/pr32108.ll
llvm/test/CodeGen/X86/pr38533.ll
llvm/test/CodeGen/X86/win64_vararg.ll