Erik Eckstein
|
5064297400
|
InstructionSimplification: simplify negated integer comparsions
Replaces a builtin "xor", which negates its operand comparison
```
%3 = builtin "cmp_slt_Int64"(%1, %2) : $Builtin.Int1
%4 = integer_literal $Builtin.Int1, -1
%5 = builtin "xor_Int1"(%3, %4) : $Builtin.Int1
```
with the negated comparison
```
%5 = builtin "cmp_ge_Int64"(%1, %2) : $Builtin.Int1
```
This makes LLVM's IPSCCP happy.
rdar://154950810
|
2025-07-18 07:43:51 +02:00 |
|