summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/MachineLICM.cpp
diff options
context:
space:
mode:
authorAndrew Trick <atrick@apple.com>2010-10-19 02:50:50 +0000
committerAndrew Trick <atrick@apple.com>2010-10-19 02:50:50 +0000
commit2006bbef7d16d0e0d5bb5aca0a61c338149eeb43 (patch)
treece4aa3b4666a5f3ac3a15970904821822c7f7b7f /llvm/lib/CodeGen/MachineLICM.cpp
parentd0e23ecdc2b40ff5aeb72adcfd33f7fa4d034ac6 (diff)
downloadbcm5719-llvm-2006bbef7d16d0e0d5bb5aca0a61c338149eeb43.tar.gz
bcm5719-llvm-2006bbef7d16d0e0d5bb5aca0a61c338149eeb43.zip
Fix for machine licm assert: RCCost <= RegPressure[RCId]
in MultiSource/Benchmarks/VersaBench/beamformer/beamformer. SmallSet.insert returns true if the element is inserted. llvm-svn: 116790
Diffstat (limited to 'llvm/lib/CodeGen/MachineLICM.cpp')
-rw-r--r--llvm/lib/CodeGen/MachineLICM.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/llvm/lib/CodeGen/MachineLICM.cpp b/llvm/lib/CodeGen/MachineLICM.cpp
index 829fae6edbd..ae3d9db1dc3 100644
--- a/llvm/lib/CodeGen/MachineLICM.cpp
+++ b/llvm/lib/CodeGen/MachineLICM.cpp
@@ -604,7 +604,7 @@ void MachineLICM::InitRegPressure(MachineBasicBlock *BB) {
if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg))
continue;
- bool isNew = !RegSeen.insert(Reg);
+ bool isNew = RegSeen.insert(Reg);
const TargetRegisterClass *RC = MRI->getRegClass(Reg);
EVT VT = *RC->vt_begin();
unsigned RCId = TLI->getRepRegClassFor(VT)->getID();
@@ -634,7 +634,7 @@ void MachineLICM::UpdateRegPressureBefore(const MachineInstr *MI) {
if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg))
continue;
- bool isNew = !RegSeen.insert(Reg);
+ bool isNew = RegSeen.insert(Reg);
if (NoImpact)
continue;
OpenPOWER on IntegriCloud