From 20401eecd6744a8d925a2414e640e0602f615826 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. llvm-svn: 231262 --- llvm/lib/CodeGen/TwoAddressInstructionPass.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp b/llvm/lib/CodeGen/TwoAddressInstructionPass.cpp index ac4c1bb..157a419 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; -- 2.7.4