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) {
1614216142
1614316143static OptimizationRemark emitAtomicRMWLegalRemark(const AtomicRMWInst *RMW) {
1614416144 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;
1615016147
1615116148 return OptimizationRemark(DEBUG_TYPE, "Passed", RMW)
1615216149 << "Hardware instruction generated for atomic "
You can’t perform that action at this time.
0 commit comments