summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/LiveVariables.cpp
diff options
context:
space:
mode:
authorAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-13 21:16:25 +0000
committerAlkis Evlogimenos <alkis@evlogimenos.com>2004-01-13 21:16:25 +0000
commit9d0c3d21c86fbf0df5bcffa217b8e0d69b534245 (patch)
tree2804c2875fe8e6217dc41fbca28fb90b9d512fc1 /llvm/lib/CodeGen/LiveVariables.cpp
parent65bc990bdaeb756c910853c893770a681cccf035 (diff)
downloadbcm5719-llvm-9d0c3d21c86fbf0df5bcffa217b8e0d69b534245.tar.gz
bcm5719-llvm-9d0c3d21c86fbf0df5bcffa217b8e0d69b534245.zip
Remove unneeded check (with the recent change in live variables a use
of a physical register is always dominated by a def). llvm-svn: 10821
Diffstat (limited to 'llvm/lib/CodeGen/LiveVariables.cpp')
-rw-r--r--llvm/lib/CodeGen/LiveVariables.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp
index 1bfc6e553d6..bf78c53214c 100644
--- a/llvm/lib/CodeGen/LiveVariables.cpp
+++ b/llvm/lib/CodeGen/LiveVariables.cpp
@@ -114,10 +114,8 @@ void LiveVariables::HandleVirtRegUse(VarInfo &VRInfo, MachineBasicBlock *MBB,
}
void LiveVariables::HandlePhysRegUse(unsigned Reg, MachineInstr *MI) {
- if (PhysRegInfo[Reg]) {
- PhysRegInfo[Reg] = MI;
- PhysRegUsed[Reg] = true;
- }
+ PhysRegInfo[Reg] = MI;
+ PhysRegUsed[Reg] = true;
}
void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {
OpenPOWER on IntegriCloud