mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-08-23 02:29:18 +00:00
Fix for machine licm assert: RCCost <= RegPressure[RCId]
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
This commit is contained in:
parent
19785995f6
commit
dc986d2462
@ -604,7 +604,7 @@ void MachineLICM::InitRegPressure(MachineBasicBlock *BB) {
|
|||||||
if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg))
|
if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
bool isNew = !RegSeen.insert(Reg);
|
bool isNew = RegSeen.insert(Reg);
|
||||||
const TargetRegisterClass *RC = MRI->getRegClass(Reg);
|
const TargetRegisterClass *RC = MRI->getRegClass(Reg);
|
||||||
EVT VT = *RC->vt_begin();
|
EVT VT = *RC->vt_begin();
|
||||||
unsigned RCId = TLI->getRepRegClassFor(VT)->getID();
|
unsigned RCId = TLI->getRepRegClassFor(VT)->getID();
|
||||||
@ -634,7 +634,7 @@ void MachineLICM::UpdateRegPressureBefore(const MachineInstr *MI) {
|
|||||||
if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg))
|
if (!Reg || TargetRegisterInfo::isPhysicalRegister(Reg))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
bool isNew = !RegSeen.insert(Reg);
|
bool isNew = RegSeen.insert(Reg);
|
||||||
if (NoImpact)
|
if (NoImpact)
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user