[all-commits] [llvm/llvm-project] d7f2a6: [RISCV] Fold stack reload into sext.w by using lw ...
Craig Topper via All-commits
all-commits at lists.llvm.org
Mon Jul 18 09:09:35 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: d7f2a633714471e78684cefea0291fbcdc1c3e14
https://github.com/llvm/llvm-project/commit/d7f2a633714471e78684cefea0291fbcdc1c3e14
Author: Craig Topper <craig.topper at sifive.com>
Date: 2022-07-18 (Mon, 18 Jul 2022)
Changed paths:
M llvm/lib/Target/RISCV/RISCVInstrInfo.cpp
M llvm/lib/Target/RISCV/RISCVInstrInfo.h
M llvm/lib/Target/RISCV/RISCVSExtWRemoval.cpp
A llvm/test/CodeGen/RISCV/stack-folding.ll
Log Message:
-----------
[RISCV] Fold stack reload into sext.w by using lw instead of ld.
We can use lw to load 4 bytes from the stack and sign extend them
instead of loading all 8 bytes.
Reviewed By: asb
Differential Revision: https://reviews.llvm.org/D129948
More information about the All-commits
mailing list