File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -16142,11 +16142,8 @@ static bool atomicIgnoresDenormalModeOrFPModeIsFTZ(const AtomicRMWInst *RMW) {
16142
16142
16143
16143
static OptimizationRemark emitAtomicRMWLegalRemark(const AtomicRMWInst *RMW) {
16144
16144
LLVMContext &Ctx = RMW->getContext();
16145
- SmallVector<StringRef> SSNs;
16146
- Ctx.getSyncScopeNames(SSNs);
16147
- StringRef MemScope = SSNs[RMW->getSyncScopeID()].empty()
16148
- ? "system"
16149
- : SSNs[RMW->getSyncScopeID()];
16145
+ StringRef SS = Ctx.getSyncScopeName(RMW->getSyncScopeID()).value_or("");
16146
+ StringRef MemScope = SS.empty() ? StringRef("system") : SS;
16150
16147
16151
16148
return OptimizationRemark(DEBUG_TYPE, "Passed", RMW)
16152
16149
<< "Hardware instruction generated for atomic "
You can’t perform that action at this time.
0 commit comments