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 91e3fb3 commit d07dc5aCopy full SHA for d07dc5a
llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp
@@ -2123,13 +2123,13 @@ bool MFMASmallGemmSingleWaveOpt::applyIGLPStrategy(
2123
continue;
2124
}
2125
2126
- if (!VMEMLookup.contains(MI)) {
+ auto [It, Inserted] = VMEMLookup.try_emplace(MI, *I);
2127
+ if (Inserted) {
2128
MissedAny = true;
- VMEMLookup[MI] = *I;
2129
2130
2131
2132
- Cand = VMEMLookup[MI];
+ Cand = It->second;
2133
if (llvm::is_contained(Counted, Cand)) {
2134
2135
break;
0 commit comments