Skip to content
This repository has been archived by the owner on Feb 5, 2019. It is now read-only.

Commit

Permalink
Fix for machine licm assert: RCCost <= RegPressure[RCId]
Browse files Browse the repository at this point in the history
in MultiSource/Benchmarks/VersaBench/beamformer/beamformer.
SmallSet.insert returns true if the element is inserted.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@116790 91177308-0d34-0410-b5e6-96231b3b80d8
  • Loading branch information
atrick committed Oct 19, 2010
1 parent 1978599 commit dc986d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/CodeGen/MachineLICM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit dc986d2

Please sign in to comment.