summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-02-16 02:32:17 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-02-16 02:32:17 +0000
commit652e4618e26112806b7c228a94e4e163e386a43b (patch)
tree1b471b02a647b44a02096af570249facd037b4a2 /llvm/lib/CodeGen/SimpleRegisterCoalescing.h
parent9b254eed320283371ee43f900e76794c3991957e (diff)
downloadbcm5719-llvm-652e4618e26112806b7c228a94e4e163e386a43b.tar.gz
bcm5719-llvm-652e4618e26112806b7c228a94e4e163e386a43b.zip
Refactor some code; check if commuteInstruction is able to commute the instruction.
llvm-svn: 47208
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.h')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h
index cae5e5a450e..309a858758a 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h
@@ -178,6 +178,11 @@ namespace llvm {
bool AdjustCopiesBackFrom(LiveInterval &IntA, LiveInterval &IntB,
MachineInstr *CopyMI);
+ /// HasOtherReachingDefs - Return true if there are definitions of IntB
+ /// other than BValNo val# that can reach uses of AValno val# of IntA.
+ bool HasOtherReachingDefs(LiveInterval &IntA, LiveInterval &IntB,
+ VNInfo *AValNo, VNInfo *BValNo);
+
/// RemoveCopyByCommutingDef - We found a non-trivially-coalescable copy.
/// If the source value number is defined by a commutable instruction and
/// its other operand is coalesced to the copy dest register, see if we
OpenPOWER on IntegriCloud