[PATCH] D117957: [AVR] Remove unused register scavenger
Ayke via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 27 06:30:52 PST 2022
aykevl marked an inline comment as done.
aykevl added a comment.
Thank you!
================
Comment at: llvm/test/CodeGen/AVR/pseudo/ELPMWRdZ.mir:31
+ $r31r30 = COPY %3
+ RET implicit $r31r30
+...
----------------
benshi001 wrote:
> Are the last two lines necessary ? I think the front 3 lines are OK enough.
Yes. This way the register allocator will try to use R31R30 for `%3` to avoid a copy but because of the earlyclobber flag it is forced to pick a different register pair. Therefore, it's a way to test that the earlyclobber works.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D117957/new/
https://reviews.llvm.org/D117957
More information about the llvm-commits
mailing list