[llvm] [VPlan] Introduce vputils::getSingleScalarClone (PR #161667)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 21 10:03:30 PDT 2025


================
@@ -189,19 +189,7 @@ static bool sinkScalarOperands(VPlan &Plan) {
     if (NeedsDuplicating) {
       if (ScalarVFOnly)
         continue;
-      VPSingleDefRecipe *Clone;
-      if (auto *SinkCandidateRepR =
-              dyn_cast<VPReplicateRecipe>(SinkCandidate)) {
-        // TODO: Handle converting to uniform recipes as separate transform,
----------------
artagnon wrote:

Perhaps not? I think we wanted to address it sometime in the past, but I don't think it's the case any longer?

https://github.com/llvm/llvm-project/pull/161667


More information about the llvm-commits mailing list