[llvm-branch-commits] [llvm] [CGP] Simple loop strength reduction for vector values (PR #226197)
Sander de Smalen via llvm-branch-commits
llvm-branch-commits at lists.llvm.org
Mon Sep 28 03:39:47 PDT 2026
================
@@ -8965,6 +9105,11 @@ bool CodeGenPrepare::optimizeInst(Instruction *I, ModifyDT &ModifiedDT) {
++NumPHIsElim;
return true;
}
+
+ // Look for simple GEPs on scalable vectors used as data which may
+ // introduce unnecessary multiplies in the loop.
+ if (P->getType()->isScalableTy())
----------------
sdesmalen-arm wrote:
It seems this could also apply to fixed-length vectors (https://godbolt.org/z/WEaPj3oEc).
Can you add a TODO to support that?
https://github.com/llvm/llvm-project/pull/226197
More information about the llvm-branch-commits
mailing list