Skip to content

Commit 5eeb5ad

Browse files
author
git apple-llvm automerger
committed
Merge commit '59fe8401f473' from llvm.org/main into next
2 parents a604d42 + 59fe840 commit 5eeb5ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

llvm/lib/Transforms/Vectorize/LoopVectorizationLegality.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -293,9 +293,8 @@ void LoopVectorizeHints::getHintsFromMetadata() {
293293
}
294294

295295
void LoopVectorizeHints::setHint(StringRef Name, Metadata *Arg) {
296-
if (!Name.starts_with(Prefix()))
296+
if (!Name.consume_front(Prefix()))
297297
return;
298-
Name = Name.substr(Prefix().size(), StringRef::npos);
299298

300299
const ConstantInt *C = mdconst::dyn_extract<ConstantInt>(Arg);
301300
if (!C)

0 commit comments

Comments
 (0)