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

via llvm-commits llvm-commits at lists.llvm.org
Tue Oct 21 10:13:13 PDT 2025


================
@@ -4866,6 +4866,89 @@ static Value *simplifySelectWithFCmp(Value *Cond, Value *T, Value *F,
   return nullptr;
 }
 
+/// Look for the following pattern and simplify %1 to %identicalPhi.
+/// Here %phi, %1 and %phi.next perform the same functionality as
----------------
CongzheUalberta wrote:

I've changed `%1` to  `%to_fold`.

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


More information about the llvm-commits mailing list