Teach AdjustCopiesBackFrom to also use CoalescerPair to identify compatible copies.
[oota-llvm.git] / lib / CodeGen / SimpleRegisterCoalescing.h
index 8c5eebff15cc81fe3a105f3266338de1a063a621..b65cbf1d144abf39fded2c3f309f94d4f21f9f23 100644 (file)
@@ -119,8 +119,7 @@ namespace llvm {
     /// the source value number is defined by a copy from the destination reg
     /// see if we can merge these two destination reg valno# into a single
     /// value number, eliminating a copy.
-    bool AdjustCopiesBackFrom(LiveInterval &IntA, LiveInterval &IntB,
-                              MachineInstr *CopyMI);
+    bool AdjustCopiesBackFrom(const CoalescerPair &CP, MachineInstr *CopyMI);
 
     /// HasOtherReachingDefs - Return true if there are definitions of IntB
     /// other than BValNo val# that can reach uses of AValno val# of IntA.