summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/SimpleRegisterCoalescing.h
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2008-04-03 16:41:54 +0000
committerEvan Cheng <evan.cheng@apple.com>2008-04-03 16:41:54 +0000
commit58936a48ee44cffe12741187e90ba84e77d57cbf (patch)
treedbc051bdc72b0c2f84db146c9a84269ca8eac137 /llvm/lib/CodeGen/SimpleRegisterCoalescing.h
parent6d07b625aabbd83fe1baad4229db0c6ddaee8849 (diff)
downloadbcm5719-llvm-58936a48ee44cffe12741187e90ba84e77d57cbf.tar.gz
bcm5719-llvm-58936a48ee44cffe12741187e90ba84e77d57cbf.zip
- Turn copies of implicit_def into implicit_def instructions.
- Be smarter about coalescing copies from implicit_def. llvm-svn: 49168
Diffstat (limited to 'llvm/lib/CodeGen/SimpleRegisterCoalescing.h')
-rw-r--r--llvm/lib/CodeGen/SimpleRegisterCoalescing.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h
index cfac126607c..453760a7e7b 100644
--- a/llvm/lib/CodeGen/SimpleRegisterCoalescing.h
+++ b/llvm/lib/CodeGen/SimpleRegisterCoalescing.h
@@ -190,6 +190,12 @@ namespace llvm {
bool RemoveCopyByCommutingDef(LiveInterval &IntA, LiveInterval &IntB,
MachineInstr *CopyMI);
+ /// TurnCopyIntoImpDef - If source of the specified copy is an implicit def,
+ /// turn the copy into an implicit def.
+ bool TurnCopyIntoImpDef(MachineBasicBlock::iterator &I,
+ MachineBasicBlock *MBB,
+ unsigned DstReg, unsigned SrcReg);
+
/// isBackEdgeCopy - Returns true if CopyMI is a back edge copy.
///
bool isBackEdgeCopy(MachineInstr *CopyMI, unsigned DstReg);
OpenPOWER on IntegriCloud