From f1bc8c34cf2982285db90dd318fbd2194afdc21f Mon Sep 17 00:00:00 2001 From: Wei Mi Date: Wed, 4 Mar 2015 17:41:17 +0000 Subject: [PATCH] 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 --- lib/CodeGen/TwoAddressInstructionPass.cpp | 1 + 1 file changed, 1 insertion(+) 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; -- 2.34.1