Skip to content

Commit fa96102

Browse files
author
git apple-llvm automerger
committed
Merge commit '703d2753ccf5' from apple/main into swift/next
2 parents 6f8a505 + 703d275 commit fa96102

File tree

3 files changed

+3
-4
lines changed

3 files changed

+3
-4
lines changed

llvm/lib/Target/PowerPC/PPCPreEmitPeephole.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ static bool hasPCRelativeForm(MachineInstr &Use) {
121121
for (auto BBI = MBB.instr_begin(); BBI != MBB.instr_end(); ++BBI) {
122122
// Skip load immediate that is marked to be erased later because it
123123
// cannot be used to replace any other instructions.
124-
if (InstrsToErase.find(&*BBI) != InstrsToErase.end())
124+
if (InstrsToErase.contains(&*BBI))
125125
continue;
126126
// Skip non-load immediate.
127127
unsigned Opc = BBI->getOpcode();

llvm/lib/Transforms/IPO/IROutliner.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ void IROutliner::pruneIncompatibleRegions(
162162
unsigned EndIdx = IRSC.getEndIdx();
163163

164164
for (unsigned Idx = StartIdx; Idx <= EndIdx; Idx++)
165-
if (Outlined.find(Idx) != Outlined.end()) {
165+
if (Outlined.contains(Idx)) {
166166
PreviouslyOutlined = true;
167167
break;
168168
}

llvm/lib/Transforms/Scalar/DeadStoreElimination.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2370,8 +2370,7 @@ struct DSEState {
23702370
<< "Trying to eliminate MemoryDefs at the end of the function\n");
23712371
for (int I = MemDefs.size() - 1; I >= 0; I--) {
23722372
MemoryDef *Def = MemDefs[I];
2373-
if (SkipStores.find(Def) != SkipStores.end() ||
2374-
!isRemovable(Def->getMemoryInst()))
2373+
if (SkipStores.contains(Def) || !isRemovable(Def->getMemoryInst()))
23752374
continue;
23762375

23772376
Instruction *DefI = Def->getMemoryInst();

0 commit comments

Comments
 (0)