aboutsummaryrefslogtreecommitdiff
path: root/lib/CodeGen/MachineLICM.cpp
diff options
context:
space:
mode:
authorJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-23 21:01:15 +0000
committerJakob Stoklund Olesen <stoklund@2pi.dk>2012-01-23 21:01:15 +0000
commitd0848a6398e0830898463ceb0041d4d7b163512d (patch)
tree8e99424cda7ac9b9b5dfb2bc3737909735260e47 /lib/CodeGen/MachineLICM.cpp
parent39f66601938e88a4e287986fab58a0d5053f8f8e (diff)
Fix PR11829. PostRA LICM was too aggressive.
This fixes a typo in r148589. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@148724 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/CodeGen/MachineLICM.cpp')
-rw-r--r--lib/CodeGen/MachineLICM.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/CodeGen/MachineLICM.cpp b/lib/CodeGen/MachineLICM.cpp
index b9028ec681..49a109e252 100644
--- a/lib/CodeGen/MachineLICM.cpp
+++ b/lib/CodeGen/MachineLICM.cpp
@@ -462,13 +462,13 @@ void MachineLICM::ProcessMI(MachineInstr *MI,
// register, then this is not safe. Two defs is indicated by setting a
// PhysRegClobbers bit.
for (const unsigned *AS = TRI->getOverlaps(Reg); *AS; ++AS) {
- if (PhysRegDefs.test(Reg))
- PhysRegClobbers.set(Reg);
- if (PhysRegClobbers.test(Reg))
+ if (PhysRegDefs.test(*AS))
+ PhysRegClobbers.set(*AS);
+ if (PhysRegClobbers.test(*AS))
// MI defined register is seen defined by another instruction in
// the loop, it cannot be a LICM candidate.
RuledOut = true;
- PhysRegDefs.set(Reg);
+ PhysRegDefs.set(*AS);
}
}