diff options
author | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-13 21:16:25 +0000 |
---|---|---|
committer | Alkis Evlogimenos <alkis@evlogimenos.com> | 2004-01-13 21:16:25 +0000 |
commit | c55640f0194511d2c44f4d8bea099e373199ae9d (patch) | |
tree | 16679440d7f4f70645a28e7f0106db0109f32e97 /lib/CodeGen/LiveVariables.cpp | |
parent | b7be11514049d13f331743ac8c1a851cea9c6d70 (diff) |
Remove unneeded check (with the recent change in live variables a use
of a physical register is always dominated by a def).
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10821 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/LiveVariables.cpp')
-rw-r--r-- | lib/CodeGen/LiveVariables.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lib/CodeGen/LiveVariables.cpp b/lib/CodeGen/LiveVariables.cpp index 1bfc6e553d..bf78c53214 100644 --- a/lib/CodeGen/LiveVariables.cpp +++ b/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) { |