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 7b33a53 commit 238b3faCopy full SHA for 238b3fa
llvm/lib/Target/AMDGPU/AMDGPUIGroupLP.cpp
@@ -2392,11 +2392,11 @@ bool SchedGroup::canAddMI(const MachineInstr &MI) const {
2392
Result = false;
2393
2394
else if (MI.isInlineAsm()) {
2395
- std::string Text = MI.getOperand(0).getSymbolName();
+ StringRef Text = MI.getOperand(0).getSymbolName();
2396
if (Text.find("SGMASK:") != std::string::npos) {
2397
Text = Text.substr(Text.find("SGMASK:") + strlen("SGMASK:"));
2398
Text = Text.substr(0, Text.find_first_of(" \t\r\n"));
2399
- unsigned long InlineAsmMask = std::stoul(Text, nullptr, 0);
+ unsigned long InlineAsmMask = std::stoul(Text.str(), nullptr, 0);
2400
Result = ((unsigned long)SGMask & InlineAsmMask) != 0;
2401
}
2402
0 commit comments