[llvm] [RISCV] Optimize conditional branches that can be statically evaluated (PR #131684)

Michael Maitland via llvm-commits llvm-commits at lists.llvm.org
Wed Mar 19 11:21:10 PDT 2025


michaelmaitland wrote:

> > @topperc @mikhailramalho I have updated this patch to use optimizeCondBranch. In order to get it to work, we needed to update the PeepholeOptimizer to no longer preserve the CFG, DT, and LI, since we're possibly removing a successor from the CFG.
> 
> Nice, I'm surprised with the new changes to the tests
> 
> Are you planning to push the changes here to ##131728?

I can, but I'd like to get support that this is the right direction before doing it.

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


More information about the llvm-commits mailing list