[llvm] [IndVarSimplify] Widen select-controlled recurrences (PR #206024)

Madhur Amilkanthwar via llvm-commits llvm-commits at lists.llvm.org
Tue Jul 7 00:20:13 PDT 2026


madhur13490 wrote:


> That said, my understanding is that this would help address the more complicated form with sext/trunc. GVN/MDA recently started featuring load PRE through phi-translated select addresses ([0075a8f](https://github.com/llvm/llvm-project/commit/0075a8fbcc9928ef5a04a30233b08f67219a4310)). Would this help/handle the original simplified instance?

I spent some time thinking around that commit. It is not readily usable but with SCEV addition we can probably handle this. I will share a potential patch soon.




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


More information about the llvm-commits mailing list