summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen
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
commit20948fab69da38a73972b10683bd11edc981f951 (patch)
treeea742a9fb69340597a2ea5bfa8fd90a052a92386 /llvm/lib/CodeGen
parent9082353e3bca4c4520b02773bfb746749b452d4b (diff)
downloadbcm5719-llvm-20948fab69da38a73972b10683bd11edc981f951.tar.gz
bcm5719-llvm-20948fab69da38a73972b10683bd11edc981f951.zip
Fix PR11829. PostRA LICM was too aggressive.
This fixes a typo in r148589. llvm-svn: 148724
Diffstat (limited to 'llvm/lib/CodeGen')
-rw-r--r--llvm/lib/CodeGen/MachineLICM.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp
index b9028ec6818..49a109e252c 100644
--- a/llvm/lib/CodeGen/MachineLICM.cpp
+++ b/llvm/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);
}
}
OpenPOWER on IntegriCloud