[llvm-commits] CVS: llvm/lib/CodeGen/LiveVariables.cpp
Chris Lattner
lattner at cs.uiuc.edu
Sun Jul 18 23:27:00 PDT 2004
Changes in directory llvm/lib/CodeGen:
LiveVariables.cpp updated: 1.37 -> 1.38
---
Log message:
Remove the DefBlock element of VarInfo. DefBlock is always DefInst->getParent()
---
Diffs of the changes: (+4 -4)
Index: llvm/lib/CodeGen/LiveVariables.cpp
diff -u llvm/lib/CodeGen/LiveVariables.cpp:1.37 llvm/lib/CodeGen/LiveVariables.cpp:1.38
--- llvm/lib/CodeGen/LiveVariables.cpp:1.37 Fri Jul 9 11:44:37 2004
+++ llvm/lib/CodeGen/LiveVariables.cpp Mon Jul 19 01:26:50 2004
@@ -64,7 +64,7 @@
break;
}
- if (MBB == VRInfo.DefBlock) return; // Terminate recursion
+ if (MBB == VRInfo.DefInst->getParent()) return; // Terminate recursion
if (VRInfo.AliveBlocks.size() <= BBNum)
VRInfo.AliveBlocks.resize(BBNum+1); // Make space...
@@ -95,7 +95,8 @@
assert(VRInfo.Kills[i].first != MBB && "entry should be at end!");
#endif
- assert(MBB != VRInfo.DefBlock && "Should have kill for defblock!");
+ assert(MBB != VRInfo.DefInst->getParent() &&
+ "Should have kill for defblock!");
// Add a new kill entry for this basic block.
VRInfo.Kills.push_back(std::make_pair(MBB, MI));
@@ -230,8 +231,7 @@
if (MRegisterInfo::isVirtualRegister(MO.getReg())) {
VarInfo &VRInfo = getVarInfo(MO.getReg());
- assert(VRInfo.DefBlock == 0 && "Variable multiply defined!");
- VRInfo.DefBlock = MBB; // Created here...
+ assert(VRInfo.DefInst == 0 && "Variable multiply defined!");
VRInfo.DefInst = MI;
VRInfo.Kills.push_back(std::make_pair(MBB, MI)); // Defaults to dead
} else if (MRegisterInfo::isPhysicalRegister(MO.getReg()) &&
More information about the llvm-commits
mailing list