[llvm] [LV] Peek through bitcasts when performing CSE (PR #146856)

Ramkumar Ramachandra via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 4 14:32:22 PDT 2025


artagnon wrote:

> This isn't a case we can easily catch with VPlan CSE, because it is part of VPInterleaveRecipe::execute, and can't easily be broken out.

I had a look at this, and I think the VPlan-based cse is going to be around with the legacy cse in the medium-term. Yes, breaking out VPInterleaveRecipe::execute seems like a non-starter, but I _think_ we can ultimately make the VPlan-based cse much smarter, and handle this case: as @pedroclobo's patch has real-world impact, I think we should strive to get it merged, so we have the test case for the VPlan-based cse.


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


More information about the llvm-commits mailing list