[PATCH] D39849: [RISCV] Implement prolog and epilog insertion
Philip Reames via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Mon Dec 4 19:08:31 PST 2017
reames added a comment.
small drive by comments.
================
Comment at: lib/Target/RISCV/RISCVFrameLowering.cpp:130
+ DebugLoc DL = MBBI->getDebugLoc();
+ unsigned FPReg = RISCV::X8;
+ unsigned SPReg = RISCV::X2;
----------------
You've got these in a couple of places, time for an alias in the enum?
================
Comment at: test/CodeGen/RISCV/addc-adde-sube-subc.ll:10
; RV32I: # BB#0:
+; RV32I-NEXT: addi sp, sp, -16
+; RV32I-NEXT: sw ra, 12(sp)
----------------
The test churn in this patch is really unfortunate. Is there a small change you can add to not need all the spill code for most functions?
https://reviews.llvm.org/D39849
More information about the llvm-commits
mailing list