Sema: improved AIR when one operand of bool cmp is known

When doing `x == true` or `x == false` it is now lowered as either a
no-op or a not, respectively, rather than a cmp instruction.

This commit also extracts a zirCmpEq function out from zirCmp, reducing
the amount of branching (on is_equality_cmp) in both functions.
6e78c007dfAndrew Kelley committed on 7/31/2021, 12:40:30 AMparent507dc1f
1 file changedLine totals unavailable