[llvm-commits] CVS: llvm/include/llvm/CodeGen/LiveVariables.h
Chris Lattner
lattner at cs.uiuc.edu
Sun Jul 18 23:55:32 PDT 2004
Changes in directory llvm/include/llvm/CodeGen:
LiveVariables.h updated: 1.16 -> 1.17
---
Log message:
Simplify the interface to LiveVariables::addVirtualRegister(Killed|Dead)
---
Diffs of the changes: (+4 -8)
Index: llvm/include/llvm/CodeGen/LiveVariables.h
diff -u llvm/include/llvm/CodeGen/LiveVariables.h:1.16 llvm/include/llvm/CodeGen/LiveVariables.h:1.17
--- llvm/include/llvm/CodeGen/LiveVariables.h:1.16 Mon Jul 19 01:26:45 2004
+++ llvm/include/llvm/CodeGen/LiveVariables.h Mon Jul 19 01:55:21 2004
@@ -151,11 +151,9 @@
/// specified register is killed after being used by the specified
/// instruction.
///
- void addVirtualRegisterKilled(unsigned IncomingReg,
- MachineBasicBlock *MBB,
- MachineInstr *MI) {
+ void addVirtualRegisterKilled(unsigned IncomingReg, MachineInstr *MI) {
RegistersKilled.insert(std::make_pair(MI, IncomingReg));
- getVarInfo(IncomingReg).Kills.push_back(std::make_pair(MBB, MI));
+ getVarInfo(IncomingReg).Kills.push_back(std::make_pair(MI->getParent(),MI));
}
/// removeVirtualRegisterKilled - Remove the specified virtual
@@ -189,11 +187,9 @@
/// addVirtualRegisterDead - Add information about the fact that the specified
/// register is dead after being used by the specified instruction.
///
- void addVirtualRegisterDead(unsigned IncomingReg,
- MachineBasicBlock *MBB,
- MachineInstr *MI) {
+ void addVirtualRegisterDead(unsigned IncomingReg, MachineInstr *MI) {
RegistersDead.insert(std::make_pair(MI, IncomingReg));
- getVarInfo(IncomingReg).Kills.push_back(std::make_pair(MBB, MI));
+ getVarInfo(IncomingReg).Kills.push_back(std::make_pair(MI->getParent(),MI));
}
/// removeVirtualRegisterDead - Remove the specified virtual
More information about the llvm-commits
mailing list