@@ -8231,13 +8231,24 @@ VPRecipeBase
*VPRecipeBuilder::tryToWidenMemory(Instruction *I,
bool Consecutive =
Reverse || Decision == LoopVectorizationCostModel::CM_Widen;
+ VPValue *Ptr = isa(I) ? Operands[0] : Operands[1];
+ if (Decision != LoopVectorizationCostModel:
@@ -404,6 +405,49 @@ Value *VPInstruction::generateInstruction(VPTransformState
&State,
Builder.GetInsertBlock()->getTerminator()->eraseFromParent();
return CondBr;
}
+ case VPInstruction::CreateVectorPtr: {
+// Calculate the pointer for the specific unroll-part
@@ -8231,13 +8231,24 @@ VPRecipeBase
*VPRecipeBuilder::tryToWidenMemory(Instruction *I,
bool Consecutive =
Reverse || Decision == LoopVectorizationCostModel::CM_Widen;
+ VPValue *Ptr = isa(I) ? Operands[0] : Operands[1];
+ if (Decision != LoopVectorizationCostModel:
github-actions[bot] wrote:
:warning: C/C++ code formatter, clang-format found issues in your code.
:warning:
You can test this locally with the following command:
``bash
git-clang-format --diff d6bceb589aa2ac28f69a691c4b334a7500b91e8a
16968a03c9cdcb67e0f18c038eb0db8052172bca --
fhahn wrote:
Note that this patch depends on #72163
https://github.com/llvm/llvm-project/pull/72164
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
llvmbot wrote:
@llvm/pr-subscribers-backend-risc-v
@llvm/pr-subscribers-llvm-transforms
Author: Florian Hahn (fhahn)
Changes
Move vector pointer generation to a separate VPInstruction opcode.
This untangles address computation from the memory recipes future
and is also needed to enable exp
https://github.com/fhahn created https://github.com/llvm/llvm-project/pull/72164
Move vector pointer generation to a separate VPInstruction opcode.
This untangles address computation from the memory recipes future
and is also needed to enable explicit unrolling in VPlan.
__