[llvm] [VPlan] Manage noalias/alias_scope metadata in VPlan. (NFC) (PR #136450)
via llvm-commits
llvm-commits at lists.llvm.org
Sat May 3 10:42:17 PDT 2025
================
@@ -183,7 +187,9 @@ static bool sinkScalarOperands(VPlan &Plan) {
// TODO: Handle converting to uniform recipes as separate transform,
// then cloning should be sufficient here.
Instruction *I = SinkCandidate->getUnderlyingInstr();
- Clone = new VPReplicateRecipe(I, SinkCandidate->operands(), true);
+ Clone = new VPReplicateRecipe(I, SinkCandidate->operands(), true,
+ /*Mask*/ nullptr,
+ *cast<VPReplicateRecipe>(SinkCandidate));
----------------
ayalz wrote:
nit: check `if (auto RepSinkCandidate = dyn_cast<...>)` above instead of `if (isa<...>)` and this `cast`?
https://github.com/llvm/llvm-project/pull/136450
More information about the llvm-commits
mailing list