irgen: Unnecessary instructions generated for boolean expression
mewmew opened this issue · 2 comments
mewmew commented
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
mewmew commented
Marked as a future ambition for now.