[clang] [clang][CodeGen] Fix metadata when vectorization is disabled by pragma (PR #135163)
Michael Kruse via cfe-commits
cfe-commits at lists.llvm.org
Mon Jul 14 08:21:30 PDT 2025
================
@@ -643,9 +650,7 @@ void LoopInfoStack::push(BasicBlock *Header, clang::ASTContext &Ctx,
case LoopHintAttr::Disable:
switch (Option) {
case LoopHintAttr::Vectorize:
- // Disable vectorization by specifying a width of 1.
- setVectorizeWidth(1);
- setVectorizeScalable(LoopAttributes::Unspecified);
+ setVectorizeEnable(false);
----------------
Meinersbur wrote:
Doesn't this also disable interleaving?
https://github.com/llvm/llvm-project/pull/135163
More information about the cfe-commits
mailing list