[PATCH] D32156: [BranchFolding] Propagate CSR live-inss to returning blocks. See D31188 for discussion.

Tim Shen via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 18 00:23:11 PDT 2017


timshen created this revision.
Herald added a subscriber: nemanjai.

This patch fixes pr32292 correctly. In order to see the patch really works on the test case, r299124 and r299125 need to be reverted to reveal the mis-compile. Tested with r299124 and r299125 reverted locally.

The getPristine usage seems still inaccurate, but we can fix that later.


https://reviews.llvm.org/D32156

Files:
  llvm/include/llvm/CodeGen/LivePhysRegs.h
  llvm/lib/CodeGen/BranchFolding.cpp
  llvm/lib/CodeGen/BranchFolding.h
  llvm/lib/CodeGen/LivePhysRegs.cpp
  llvm/test/CodeGen/PowerPC/if-converter-split-liveins.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D32156.95532.patch
Type: text/x-patch
Size: 11718 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170418/9343a4f4/attachment.bin>


More information about the llvm-commits mailing list