summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorWei Mi <wmi@google.com>2015-03-04 17:41:17 +0000
committerWei Mi <wmi@google.com>2015-03-04 17:41:17 +0000
commit20401eecd6744a8d925a2414e640e0602f615826 (patch)
tree65ad598200f3069da32b73cac518f563e656036d /llvm/lib/CodeGen
parentafdac4b7f0ab25cbd29f0cf24d54d1c49a413b41 (diff)
downloadbcm5719-llvm-20401eecd6744a8d925a2414e640e0602f615826.tar.gz
bcm5719-llvm-20401eecd6744a8d925a2414e640e0602f615826.zip
Test commit. It will be reverted in the next commit.
llvm-svn: 231262
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/TwoAddressInstructionPass.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index ac4c1bb3ace..157a4192f39 100644
--- a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
@@ -630,6 +630,7 @@ isProfitableToCommute(unsigned regA, unsigned regB, unsigned regC,
// To more generally minimize register copies, ideally the logic of two addr
// instruction pass should be integrated with register allocation pass where
// interference graph is available.
+
if (isRevCopyChain(regC, regA, 3))
return true;
OpenPOWER on IntegriCloud