This patch teachs SimplifySetCC that an AssertZext from i1 compared against 1 can be rewritten to compare against 0 with the opposite condition. This allows X86 to use test %al, %al instead of cmp $1, %al. In particular, when branching on the result of a function that returns a bool as seen in the included test case.<br clear="all">
<br>-- <br>~Craig<br>