diff options
author | Chris Lattner <sabre@nondot.org> | 2003-05-06 21:32:39 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2003-05-06 21:32:39 +0000 |
commit | 824698b8917070b431f9774a69bab94a8463722c (patch) | |
tree | e44d1c12bb112b319426e58482c8e876ddae5f34 /llvm/lib/CodeGen/LiveVariables.cpp | |
parent | 37ffac92d54914b953739822c62aaa4330cb49df (diff) | |
download | bcm5719-llvm-824698b8917070b431f9774a69bab94a8463722c.tar.gz bcm5719-llvm-824698b8917070b431f9774a69bab94a8463722c.zip |
Remove hideously nasty hack
llvm-svn: 6011
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | llvm/lib/CodeGen/LiveVariables.cpp | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp index ccaee19529f..83aa385d016 100644 --- a/llvm/lib/CodeGen/LiveVariables.cpp +++ b/llvm/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); } } |