[llvm] [InstCombine] simplify `x (comp) ~x` (PR #73990)

Yingwei Zheng via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 1 17:12:49 PST 2023


================
@@ -5,6 +5,149 @@ declare void @llvm.assume(i1)
 declare void @barrier()
 declare void @use.i8(i8)
 
+; X s< ~X --> X s< 0
----------------
dtcxzyw wrote:

Please add some commuted variants.

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


More information about the llvm-commits mailing list