summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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