Skip to content
Unverified Commit 88cc35b2 authored by Sizov Nikita's avatar Sizov Nikita Committed by GitHub
Browse files

[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
parent f68435ff
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment