Guard widening should not spend efforts on dealing with guards with trivial true/false conditions.
Such guards can easily be eliminated by any further cleanup pass like instcombine. However we
should not unconditionally delete them because it may be profitable to widen other conditions
into such guards.
Details
Details
Diff Detail
Diff Detail
Can we just check that it is constant? Booleans hardly get any values other than True/False...