[llvm] [InstCombinePHI] Enhance PHI CSE to remove redundant phis (PR #163453)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 15 10:16:45 PDT 2025


https://github.com/dtcxzyw commented:

I'd expect that this fold should be implemented in `simplifySelectInst` and simplify `%1 = select %cmp2, %identicalPhi, %phi -> %identicalPhi`. It is not a strong requirement, so it's up to you.


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


More information about the llvm-commits mailing list