mewmew / uc

A compiler for the µC language.
57 stars 5 forks source link

irgen: Unnecessary instructions generated for boolean expression #66

Closed mewmew closed 8 years ago

mewmew commented 8 years ago
uclang testdata/quiet/lexer/l04.c
-%8 = icmp eq i32 1, 0
-%9 = zext i1 %8 to i32
-%10 = icmp ne i32 %9, 0
+%8 = icmp eq i32 1, 0
mewmew commented 8 years ago

Marked as a future ambition for now.

mewmew commented 8 years ago

Fixed as of revision a62d7fc7077bc1d89c6a99685263d2820c64f619.