[InstCombine] Fold `binop (select cond, a, b), (select cond, b, a)` to `binop a, b` (#74953)
``` CommutativeBinOp(select(V, A, B), select(V, B, A) --> CommutativeBinOp(A, B) CommutativeIntrinsicCall(select(V, A, B), select(V, B, A), ...) --> CommutativeIntrinsicCall(A, B, ...) ``` https://alive2.llvm.org/ce/z/8CDUZ4 Closes #73904
Loading
Please sign in to comment