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 49cf69a commit 0cffcd3Copy full SHA for 0cffcd3
llvm/lib/Target/X86/X86PreTileConfig.cpp
@@ -400,8 +400,9 @@ bool X86PreTileConfig::runOnMachineFunction(MachineFunction &MF) {
400
// A given point might be forked due to shape conditions are not met.
401
for (MIRef I : InsertPoints) {
402
// Make sure we insert ldtilecfg after the last shape def in MBB.
403
- if (ShapeBBs.count(I.MBB) && I < ShapeBBs[I.MBB].back())
404
- I = ShapeBBs[I.MBB].back();
+ auto It = ShapeBBs.find(I.MBB);
+ if (It != ShapeBBs.end() && I < It->second.back())
405
+ I = It->second.back();
406
// There're chances the MBB is sunk more than once. Record it to avoid
407
// multi insert.
408
if (VisitedOrInserted.insert(I).second) {
0 commit comments