[llvm] [LV] Move emitTransformedIndex to VPlanRecipes (NFC) (PR #187121)
Ramkumar Ramachandra via llvm-commits
llvm-commits at lists.llvm.org
Thu Mar 19 13:47:58 PDT 2026
================
@@ -2527,6 +2528,88 @@ bool VPWidenIntOrFpInductionRecipe::isCanonical() const {
getScalarType() == getRegion()->getCanonicalIVType();
}
+/// Compute the transformed value of Index at offset StartValue using step
+/// StepValue.
+/// For integer induction, returns StartValue + Index * StepValue.
+/// For pointer induction, returns StartValue[Index * StepValue].
+/// FIXME: The newly created binary instructions should contain nsw/nuw
+/// flags, which can be found from the original scalar operations.
----------------
artagnon wrote:
This is now outdated with your revert -- I will share a better patch soon.
https://github.com/llvm/llvm-project/pull/187121
More information about the llvm-commits
mailing list