aboutsummaryrefslogtreecommitdiff
path: root/llvm/tools/llvm-objdump/llvm-objdump.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-10-04 09:14:41 -0700
committerCraig Topper <craig.topper@sifive.com>2022-10-04 09:27:48 -0700
commit2734968e325b701110147098539a0a98d1c2878b (patch)
treefd954b821317141976ba063245baaa9229007f9e /llvm/tools/llvm-objdump/llvm-objdump.cpp
parente3f439ea20e4a78daf990062983695a21c3c1abd (diff)
downloadllvm-2734968e325b701110147098539a0a98d1c2878b.zip
llvm-2734968e325b701110147098539a0a98d1c2878b.tar.gz
llvm-2734968e325b701110147098539a0a98d1c2878b.tar.bz2
[RISCV] Restructure eliminateFrameIndex to share more code. NFC
The old code took two different paths based on whether there is a scalable offset, but these two paths had some code in common. The main difference between the two code paths was whether we needed to create a GPR or not for the ADDI that gets created for RVVSpill. If we had a scalable offset, the same GPR was used as the destination for adding the scalable offset and the ADDI. To manage this, we now cache the scratch register and reuse it if it has already been created. This is a pre-patch for D135009. Reviewed By: reames, frasercrmck Differential Revision: https://reviews.llvm.org/D135092
Diffstat (limited to 'llvm/tools/llvm-objdump/llvm-objdump.cpp')
0 files changed, 0 insertions, 0 deletions