[PATCH] D27567: [AVR] Use the register scavenger when expanding 'LDDW' instructions

Anton Korobeynikov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 8 00:40:59 PST 2016


asl added inline comments.


================
Comment at: lib/Target/AVR/AVRExpandPseudoInsts.cpp:691
+
+    unsigned TmpReg = Available.find_first();
+
----------------
What if the register pressure is so high that no register is available? I'd suggest at least to insert an assert here. Note that Scavenger has a way to deal with this issue via spilling. You'd need to have a spare slot for this though.


https://reviews.llvm.org/D27567





More information about the llvm-commits mailing list