[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveVariables.h
Chris Lattner
lattner at cs.uiuc.edu
Sat Sep 2 17:05:23 PDT 2006
Changes in directory llvm/include/llvm/CodeGen:
LiveVariables.h updated: 1.28 -> 1.29
---
Log message:
Move two methods out of line, make them work when the record for a machine
instruction includes physregs.
---
Diffs of the changes: (+6 -28)
LiveVariables.h | 34 ++++++----------------------------
1 files changed, 6 insertions(+), 28 deletions(-)
Index: llvm/include/llvm/CodeGen/LiveVariables.h
diff -u llvm/include/llvm/CodeGen/LiveVariables.h:1.28 llvm/include/llvm/CodeGen/LiveVariables.h:1.29
--- llvm/include/llvm/CodeGen/LiveVariables.h:1.28 Wed Jan 4 01:29:33 2006
+++ llvm/include/llvm/CodeGen/LiveVariables.h Sat Sep 2 19:05:09 2006
@@ -242,19 +242,8 @@
/// removeVirtualRegistersKilled - Remove all killed info for the specified
/// instruction.
- void removeVirtualRegistersKilled(MachineInstr *MI) {
- std::map<MachineInstr*, std::vector<unsigned> >::iterator I =
- RegistersKilled.find(MI);
- if (I != RegistersKilled.end()) {
- std::vector<unsigned> &Regs = I->second;
- for (unsigned i = 0, e = Regs.size(); i != e; ++i) {
- bool removed = getVarInfo(Regs[i]).removeKill(MI);
- assert(removed && "kill not in register's VarInfo?");
- }
- RegistersKilled.erase(I);
- }
- }
-
+ void removeVirtualRegistersKilled(MachineInstr *MI);
+
/// addVirtualRegisterDead - Add information about the fact that the specified
/// register is dead after being used by the specified instruction.
///
@@ -292,21 +281,10 @@
return true;
}
- /// removeVirtualRegistersDead - Remove all of the specified dead
- /// registers from the live variable information.
- void removeVirtualRegistersDead(MachineInstr *MI) {
- std::map<MachineInstr*, std::vector<unsigned> >::iterator I =
- RegistersDead.find(MI);
- if (I != RegistersDead.end()) {
- std::vector<unsigned> &Regs = I->second;
- for (unsigned i = 0, e = Regs.size(); i != e; ++i) {
- bool removed = getVarInfo(Regs[i]).removeKill(MI);
- assert(removed && "kill not in register's VarInfo?");
- }
- RegistersDead.erase(I);
- }
- }
-
+ /// removeVirtualRegistersDead - Remove all of the dead registers for the
+ /// specified instruction from the live variable information.
+ void removeVirtualRegistersDead(MachineInstr *MI);
+
virtual void getAnalysisUsage(AnalysisUsage &AU) const {
AU.setPreservesAll();
}
More information about the llvm-commits
mailing list