mewmew/uc

irgen: Unnecessary instructions generated for boolean expression

mewmew opened this issue · 2 comments

uclang testdata/quiet/lexer/l04.c
  • Remove zext from conditional binary expressions, so that m.cond may
    correctly identify the boolean value.
-%8 = icmp eq i32 1, 0
-%9 = zext i1 %8 to i32
-%10 = icmp ne i32 %9, 0
+%8 = icmp eq i32 1, 0

Marked as a future ambition for now.

Fixed as of revision a62d7fc.