[llvm] [LV] Fix incorrect cost kind in VPReplicateRecipe::computeCost (PR #153216)

David Sherwood via llvm-commits llvm-commits at lists.llvm.org
Fri Aug 15 01:48:40 PDT 2025


david-arm wrote:

> We never create replicating replicate recpipes, but we can generate single-scalar replicate recipes, e.g. a load of a uniform address here https://llvm.godbolt.org/z/6bvnrY965

OK I can try playing around with variations of this, but certainly the test case shown above doesn't exercise the code I've changed because the CLONE recipes are only for loads and geps. The loads aren't covered because we fall back on the legacy cost model (which I have actually fixed in https://github.com/llvm/llvm-project/pull/153218) and the geps always return a cost of 0. I can either combine this PR together with https://github.com/llvm/llvm-project/pull/153218, or land #153218 first.

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


More information about the llvm-commits mailing list