[PATCH] D21692: [DAGCombiner] Fix visitSTORE to continue processing current SDNode, if findBetterNeighborChains doesn't actually CombineTo it.

Tim Shen via llvm-commits llvm-commits at lists.llvm.org
Fri Jun 24 11:02:58 PDT 2016


timshen created this revision.
timshen added reviewers: echristo, wschmidt, hfinkel, kbarton, amehsan, arsenm, nemanjai, bogner.
timshen added subscribers: llvm-commits, nemanjai, mehdi_amini.

findBetterNeighborChains may or may not find a better chain for each node it finds, which include the node ("St") that visitSTORE is currently processing. If no better chain is found for St, visitSTORE should continue instead of return SDValue(St, 0), as if it's CombinedTo'ed.

This fixes bug 28130. There might be other ways to make the test pass (see D21409). I think both of the patches are fixing actual bugs revealed by the same testcase.

http://reviews.llvm.org/D21692

Files:
  lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  test/CodeGen/PowerPC/pr28130.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D21692.61812.patch
Type: text/x-patch
Size: 6078 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160624/4975b89c/attachment.bin>


More information about the llvm-commits mailing list