[PATCH] D11174: [BranchFolding] do not iterate the aliases of virtual registers

Jingyue Wu jingyue at google.com
Mon Jul 13 22:15:19 PDT 2015


jingyue created this revision.
jingyue added reviewers: bkramer, jholewinski.
jingyue added subscribers: llvm-commits, meheff, henryhu.
Herald added a subscriber: jholewinski.

MCRegAliasIterator only works for physical registers. So, do not run it
on virtual registers.

With this issue fixed, we can resurrect the BranchFolding pass in NVPTX
backend.

http://reviews.llvm.org/D11174

Files:
  lib/CodeGen/BranchFolding.cpp
  lib/Target/NVPTX/NVPTXTargetMachine.cpp
  test/CodeGen/NVPTX/branch-fold.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D11174.29643.patch
Type: text/x-patch
Size: 4300 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150714/a564154b/attachment.bin>


More information about the llvm-commits mailing list