[llvm] [InstCombine] simplify `icmp pred x, ~x` (PR #73990)
via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 11 23:59:58 PST 2023
================
@@ -5,6 +5,327 @@ declare void @llvm.assume(i1)
declare void @barrier()
declare void @use.i8(i8)
+; X s< ~X --> X s< 0
+define i1 @src_slt_xnx_to_slt_0_i1(i1 %x) {
----------------
ParkHanbum wrote:
@dtcxzyw did you mean you want to add more fail tests? or you think it can be implement with this PR together?
https://github.com/llvm/llvm-project/pull/73990
More information about the llvm-commits
mailing list