]> granicus.if.org Git - llvm/commit
Re-land r354244 "[DAGCombiner] Eliminate dead stores to stack."
authorClement Courbet <courbet@google.com>
Wed, 13 Mar 2019 13:56:23 +0000 (13:56 +0000)
committerClement Courbet <courbet@google.com>
Wed, 13 Mar 2019 13:56:23 +0000 (13:56 +0000)
commite963c6818dd6c48771e68dc2bcf42bd82ad9f1a1
tree01286e47135ee4431107d18088e7439eb52df2cb
parent17d2bf7db1534b932c18866cea440693cf1404ff
Re-land r354244 "[DAGCombiner] Eliminate dead stores to stack."

Always check candidates for hasOtherUses(), not only stores.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356050 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/swap.ll
test/DebugInfo/COFF/lexicalblock.ll