[PATCH] D93976: [AVR] Optimize 16-bit comparison with constant
Ben Shi via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sat Jan 2 18:21:20 PST 2021
benshi001 added a comment.
for the C code like
int a;
if (a == 2333)
The generated AVR assembly is optimized from
ldi r18, 29
ldi r19, 9
cp r24, r18
cpc r25, r19
to
ldi r18, 9
cpi r24, 29
cpc r25, r18
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D93976/new/
https://reviews.llvm.org/D93976
More information about the llvm-commits
mailing list