aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2003-05-06 21:32:39 +0000
committerChris Lattner <sabre@nondot.org>2003-05-06 21:32:39 +0000
commit82a4d207aaa18f2df6649ec747ec0d10edf0e1dc (patch)
tree90523b9e73d18f573757da9c00237c295af5713b /lib/CodeGen/LiveVariables.cpp
parentdbd73726651dc7a13287626694303a747f9cc86e (diff)
Remove hideously nasty hack
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@6011 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r--lib/CodeGen/LiveVariables.cpp14
1 files changed, 2 insertions, 12 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp
index ccaee19529..83aa385d01 100644
--- a/lib/CodeGen/LiveVariables.cpp
+++ b/lib/CodeGen/LiveVariables.cpp
@@ -165,12 +165,7 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) {
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 @@ bool LiveVariables::runOnMachineFunction(MachineFunction &MF) {
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);
}
}