Roll forward r242871
authorJingyue Wu <jingyue@google.com>
Wed, 29 Jul 2015 18:59:09 +0000 (18:59 +0000)
committerJingyue Wu <jingyue@google.com>
Wed, 29 Jul 2015 18:59:09 +0000 (18:59 +0000)
commit7e90f694b6a2771222dab5b4759158e6da29e2c5
tree84d818eeb8a6fcd96842995eb452fb7cf7d817b1
parentdd741a8795c1c8fef3759c525bb5a2b36beba7d5
Roll forward r242871

r242871 missed one place that should be guarded with isPhysicalReg. This patch
fixes that.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@243555 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/BranchFolding.cpp
lib/Target/NVPTX/NVPTXTargetMachine.cpp
test/CodeGen/NVPTX/branch-fold.ll [new file with mode: 0644]