================
@@ -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
_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits