File tree Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Expand file tree Collapse file tree 3 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ static bool hasPCRelativeForm(MachineInstr &Use) {
121
121
for (auto BBI = MBB.instr_begin (); BBI != MBB.instr_end (); ++BBI) {
122
122
// Skip load immediate that is marked to be erased later because it
123
123
// cannot be used to replace any other instructions.
124
- if (InstrsToErase.find (&*BBI) != InstrsToErase. end ( ))
124
+ if (InstrsToErase.contains (&*BBI))
125
125
continue ;
126
126
// Skip non-load immediate.
127
127
unsigned Opc = BBI->getOpcode ();
Original file line number Diff line number Diff line change @@ -162,7 +162,7 @@ void IROutliner::pruneIncompatibleRegions(
162
162
unsigned EndIdx = IRSC.getEndIdx ();
163
163
164
164
for (unsigned Idx = StartIdx; Idx <= EndIdx; Idx++)
165
- if (Outlined.find (Idx) != Outlined. end ( )) {
165
+ if (Outlined.contains (Idx)) {
166
166
PreviouslyOutlined = true ;
167
167
break ;
168
168
}
Original file line number Diff line number Diff line change @@ -2370,8 +2370,7 @@ struct DSEState {
2370
2370
<< " Trying to eliminate MemoryDefs at the end of the function\n " );
2371
2371
for (int I = MemDefs.size () - 1 ; I >= 0 ; I--) {
2372
2372
MemoryDef *Def = MemDefs[I];
2373
- if (SkipStores.find (Def) != SkipStores.end () ||
2374
- !isRemovable (Def->getMemoryInst ()))
2373
+ if (SkipStores.contains (Def) || !isRemovable (Def->getMemoryInst ()))
2375
2374
continue ;
2376
2375
2377
2376
Instruction *DefI = Def->getMemoryInst ();
You can’t perform that action at this time.
0 commit comments