[PATCH] D39688: [Nios2] final infrastructure addition to provide compilation of simple return from a function.

Andrei via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 6 11:01:46 PST 2017


AndreiGrischenko added inline comments.


================
Comment at: lib/Target/Nios2/Nios2RegisterInfo.cpp:39
 BitVector Nios2RegisterInfo::getReservedRegs(const MachineFunction &MF) const {
-  BitVector Reserved(1);
+  static const uint16_t ReservedCPURegs[] = {Nios2::ZERO, Nios2::AT, Nios2::SP,
+                                             Nios2::RA,   Nios2::PC, Nios2::GP};
----------------
craig.topper wrote:
> This should be MCPhysReg not uint16_t.
OK, I will fix it before the commit.


https://reviews.llvm.org/D39688





More information about the llvm-commits mailing list