summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
diff options
context:
space:
mode:
authorEvan Cheng <evan.cheng@apple.com>2007-05-14 20:39:18 +0000
committerEvan Cheng <evan.cheng@apple.com>2007-05-14 20:39:18 +0000
commitfc2377d4ed45038f2adc52787c4906870232bbfc (patch)
tree211becaf31a658bd448bc31445bf70d0eb87eadc /llvm/lib/CodeGen
parentd705f5d51df975434b2d11be79eccf40f0a97a8c (diff)
downloadbcm5719-llvm-fc2377d4ed45038f2adc52787c4906870232bbfc.tar.gz
bcm5719-llvm-fc2377d4ed45038f2adc52787c4906870232bbfc.zip
When marking a register as being implicitly defined, make sure to clear its partial use info as well.
llvm-svn: 37046
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/LiveVariables.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/CodeGen/LiveVariables.cpp b/llvm/lib/CodeGen/LiveVariables.cpp
index 9d2d29057d6..32d3d387edd 100644
--- a/llvm/lib/CodeGen/LiveVariables.cpp
+++ b/llvm/lib/CodeGen/LiveVariables.cpp
@@ -314,6 +314,7 @@ void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {
}
PhysRegInfo[SubReg] = MI;
PhysRegUsed[SubReg] = false;
+ PhysRegPartUse[SubReg] = NULL;
}
if (MI)
@@ -328,6 +329,7 @@ void LiveVariables::HandlePhysRegDef(unsigned Reg, MachineInstr *MI) {
MI->addRegOperand(SuperReg, true/*IsDef*/,true/*IsImp*/);
PhysRegInfo[SuperReg] = MI;
PhysRegUsed[SuperReg] = false;
+ PhysRegPartUse[SuperReg] = NULL;
} else {
// Remember this partial def.
PhysRegPartDef[SuperReg].push_back(MI);
OpenPOWER on IntegriCloud