diff options
| author | Evan Cheng <evan.cheng@apple.com> | 2008-04-03 16:41:54 +0000 |
|---|---|---|
| committer | Evan Cheng <evan.cheng@apple.com> | 2008-04-03 16:41:54 +0000 |
| commit | 58936a48ee44cffe12741187e90ba84e77d57cbf (patch) | |
| tree | dbc051bdc72b0c2f84db146c9a84269ca8eac137 /llvm/lib/CodeGen/SimpleRegisterCoalescing.h | |
| parent | 6d07b625aabbd83fe1baad4229db0c6ddaee8849 (diff) | |
| download | bcm5719-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.h | 6 |
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); |

