mirror of
https://github.com/apple/swift.git
synced 2026-10-12 14:50:47 +02:00
`x == false` and `!x` are equivalent on Bool but lowered to different builtins (cmp_eq_Int1 vs xor_Int1), so only `!x` optimized well. Fold comparisons of a Builtin.Int1 with a boolean constant so both forms produce the same SIL. Fixes #70655