https://llvm.org/bugs/show_bug.cgi?id=31575
Bug ID: 31575
Summary: [AVR] Optimize 16-bit comparisions with zero
Product: libraries
Version: trunk
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P
Component: Backend: AVR
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected]
Classification: Unclassified
Currently when we try and perform a 16-bit comparision with zero, we generate
the following code:
ldi r24, 0
ldi r25, 0
cp r26, r24
cpc r27, r25
breq LBB0_4
We can simplify this to
ldi r24, 0
cp r26, r24
cpc r27, r24
And save a register
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs