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 23e0815 commit 59fe840Copy full SHA for 59fe840
llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp
@@ -293,9 +293,8 @@ void LoopVectorizeHints::getHintsFromMetadata() {
293
}
294
295
void LoopVectorizeHints::setHint(StringRef Name, Metadata *Arg) {
296
- if (!Name.starts_with(Prefix()))
+ if (!Name.consume_front(Prefix()))
297
return;
298
- Name = Name.substr(Prefix().size(), StringRef::npos);
299
300
const ConstantInt *C = mdconst::dyn_extract<ConstantInt>(Arg);
301
if (!C)
0 commit comments