projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2e74dde
)
Test commit. It will be reverted in the next commit.
author
Wei Mi
<wmi@google.com>
Wed, 4 Mar 2015 17:41:17 +0000
(17:41 +0000)
committer
Wei Mi
<wmi@google.com>
Wed, 4 Mar 2015 17:41:17 +0000
(17:41 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231262
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/CodeGen/TwoAddressInstructionPass.cpp
patch
|
blob
|
history
diff --git
a/lib/CodeGen/TwoAddressInstructionPass.cpp
b/lib/CodeGen/TwoAddressInstructionPass.cpp
index ac4c1bb3ace18fbf218a8ab663bdb06a24477259..157a4192f39823f2f6094ea7eaf0a52d57b41bb2 100644
(file)
--- a/
lib/CodeGen/TwoAddressInstructionPass.cpp
+++ b/
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;