We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 94e9813 commit ebb5856Copy full SHA for ebb5856
llvm/lib/CodeGen/CodeGenPrepare.cpp
@@ -7690,8 +7690,8 @@ bool CodeGenPrepare::tryToSinkFreeOperands(Instruction *I) {
7690
// sunk instruction uses, if it is part of a chain that has already been
7691
// sunk.
7692
Instruction *OldI = cast<Instruction>(U->getUser());
7693
- if (NewInstructions.count(OldI))
7694
- NewInstructions[OldI]->setOperand(U->getOperandNo(), NI);
+ if (auto It = NewInstructions.find(OldI); It != NewInstructions.end())
+ It->second->setOperand(U->getOperandNo(), NI);
7695
else
7696
U->set(NI);
7697
Changed = true;
0 commit comments