[llvm] [VPlan] Use VPInstruction for uniform binops. (PR #141429)
via llvm-commits
llvm-commits at lists.llvm.org
Wed Jun 4 04:27:25 PDT 2025
================
@@ -154,6 +154,10 @@ static bool sinkScalarOperands(VPlan &Plan) {
if (auto *RepR = dyn_cast<VPReplicateRecipe>(SinkCandidate)) {
if (!ScalarVFOnly && RepR->isSingleScalar())
continue;
----------------
ayalz wrote:
Could be simplified and generalized to
```suggestion
if (!isa<VPReplicateRecipe, VPInstruction, VPScalarIVStepsRecipe>(SinkCandidate))
continue;
if (!ScalarVFOnly && vputils::isSingleScalar(SinkCandidate))
continue;
```
?
https://github.com/llvm/llvm-project/pull/141429
More information about the llvm-commits
mailing list