[llvm-commits] CVS: llvm/lib/CodeGen/LiveVariables.cpp
Chris Lattner
lattner at cs.uiuc.edu
Tue May 6 16:33:04 PDT 2003
Changes in directory llvm/lib/CodeGen:
LiveVariables.cpp updated: 1.3 -> 1.4
---
Log message:
Remove hideously nasty hack
---
Diffs of the changes:
Index: llvm/lib/CodeGen/LiveVariables.cpp
diff -u llvm/lib/CodeGen/LiveVariables.cpp:1.3 llvm/lib/CodeGen/LiveVariables.cpp:1.4
--- llvm/lib/CodeGen/LiveVariables.cpp:1.3 Thu May 1 16:18:47 2003
+++ llvm/lib/CodeGen/LiveVariables.cpp Tue May 6 16:32:39 2003
@@ -165,12 +165,7 @@
if (MO.isVirtualRegister() && !MO.getVRegValueOrNull()) {
unsigned RegIdx = MO.getReg()-MRegisterInfo::FirstVirtualRegister;
HandleVirtRegUse(getVarInfo(RegIdx), MBB, MI);
- } else if (MO.isPhysicalRegister() && MO.getReg() != 0
- /// FIXME: This is a gross hack, due to us not being able to
- /// say that some registers are defined on entry to the
- /// function. 5 = ESP
-&& MO.getReg() != 5
-) {
+ } else if (MO.isPhysicalRegister() && MO.getReg() != 0) {
HandlePhysRegUse(MO.getReg(), MI);
}
}
@@ -193,12 +188,7 @@
VRInfo.DefBlock = MBB; // Created here...
VRInfo.DefInst = MI;
VRInfo.Kills.push_back(std::make_pair(MBB, MI)); // Defaults to dead
- } else if (MO.isPhysicalRegister() && MO.getReg() != 0
- /// FIXME: This is a gross hack, due to us not being able to
- /// say that some registers are defined on entry to the
- /// function. 5 = ESP
-&& MO.getReg() != 5
-) {
+ } else if (MO.isPhysicalRegister() && MO.getReg() != 0) {
HandlePhysRegDef(MO.getReg(), MI);
}
}
More information about the llvm-commits
mailing list