diff options
author | Evan Cheng <evan.cheng@apple.com> | 2008-07-03 00:07:19 +0000 |
---|---|---|
committer | Evan Cheng <evan.cheng@apple.com> | 2008-07-03 00:07:19 +0000 |
commit | be04dc1413bdab0c8687a8086792af6cfd7540c0 (patch) | |
tree | ec20a72422a289cd10907a1515c5a6812064e1ec /include/llvm/CodeGen/LiveVariables.h | |
parent | 457b88fb95be895d914e52f3b44014a82e645e4a (diff) | |
download | external_llvm-be04dc1413bdab0c8687a8086792af6cfd7540c0.zip external_llvm-be04dc1413bdab0c8687a8086792af6cfd7540c0.tar.gz external_llvm-be04dc1413bdab0c8687a8086792af6cfd7540c0.tar.bz2 |
- Add LiveVariables::replaceKillInstruction. This does a subset of instructionChanged. That is, it only update the VarInfo.kills if the new instruction is known to have the correct dead and kill markers.
- CommuteInstruction copies kill / dead markers over to new instruction. So use replaceKillInstruction instead.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@53061 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/CodeGen/LiveVariables.h')
-rw-r--r-- | include/llvm/CodeGen/LiveVariables.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/llvm/CodeGen/LiveVariables.h b/include/llvm/CodeGen/LiveVariables.h index efa5f3c..bbefbe0 100644 --- a/include/llvm/CodeGen/LiveVariables.h +++ b/include/llvm/CodeGen/LiveVariables.h @@ -189,6 +189,11 @@ public: /// the records for NewMI. void instructionChanged(MachineInstr *OldMI, MachineInstr *NewMI); + /// replaceKillInstruction - Update register kill info by replacing a kill + /// instruction with a new one. + void replaceKillInstruction(unsigned Reg, MachineInstr *OldMI, + MachineInstr *NewMI); + /// addVirtualRegisterKilled - Add information about the fact that the /// specified register is killed after being used by the specified /// instruction. If AddIfNotFound is true, add a implicit operand if it's |