[PATCH] D95227: [RISCV] Simplify BP initialisation
luxufan via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 17 04:34:38 PST 2021
This revision was landed with ongoing or failed builds.
This revision was automatically updated to reflect the committed changes.
Closed by commit rG709ea8bc8781: [RISCV] Simplify BP initialisation (authored by StephenFan).
Herald added a subscriber: vkmr.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D95227/new/
https://reviews.llvm.org/D95227
Files:
llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
Index: llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
===================================================================
--- llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
+++ llvm/lib/Target/RISCV/RISCVFrameLowering.cpp
@@ -507,9 +507,7 @@
// track the current stack after allocating variable sized objects.
if (hasBP(MF)) {
// move BP, SP
- BuildMI(MBB, MBBI, DL, TII->get(RISCV::ADDI), BPReg)
- .addReg(SPReg)
- .addImm(0);
+ TII->copyPhysReg(MBB, MBBI, DL, BPReg, SPReg, false);
}
}
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D95227.324274.patch
Type: text/x-patch
Size: 560 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20210217/88e9d0e5/attachment-0001.bin>
More information about the llvm-commits
mailing list