projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
afdac4b
)
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)
llvm-svn: 231262
llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
patch
|
blob
|
history
diff --git
a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp
index
ac4c1bb
..
157a419
100644
(file)
--- 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;