[llvm-branch-commits] [llvm] [LV][REVEC] Initial support for re-vectorisation (PR #208213)

Gaƫtan Bossu via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Mon Aug 17 03:41:39 PDT 2026


================
@@ -1001,7 +1026,8 @@ bool LoopVectorizationLegality::canVectorizeInstr(Instruction &I) {
     // supported on the target.
     if (ST->getMetadata(LLVMContext::MD_nontemporal)) {
       // Arbitrarily try a vector of 2 elements.
-      auto *VecTy = FixedVectorType::get(T, /*NumElts=*/2);
+      Type *VecTy =
----------------
gbossu wrote:

I'm guessing that's fine yes. At least it would be consistent with the current assumption that "if it's safe for one vector type, then it's safe for all".

https://github.com/llvm/llvm-project/pull/208213


More information about the llvm-branch-commits mailing list