From: Wei Mi Date: Wed, 4 Mar 2015 17:41:17 +0000 (+0000) Subject: Test commit. It will be reverted in the next commit. X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=f1bc8c34cf2982285db90dd318fbd2194afdc21f;p=oota-llvm.git Test commit. It will be reverted in the next commit. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@231262 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/lib/CodeGen/TwoAddressInstructionPass.cpp b/lib/CodeGen/TwoAddressInstructionPass.cpp index ac4c1bb3ace..157a4192f39 100644 --- 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;