aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@sifive.com>2022-06-24 08:21:05 -0700
committerCraig Topper <craig.topper@sifive.com>2022-06-24 08:31:52 -0700
commit78a31bb96961b30222f96d45b589bad7bc957cb4 (patch)
tree1071f534df73d3fba7aa2f41012021560d9ed712 /clang/lib/Frontend/CompilerInvocation.cpp
parent7736ce1c56c77290cb3ce72ece8e4025fb9e2b22 (diff)
downloadllvm-78a31bb96961b30222f96d45b589bad7bc957cb4.zip
llvm-78a31bb96961b30222f96d45b589bad7bc957cb4.tar.gz
llvm-78a31bb96961b30222f96d45b589bad7bc957cb4.tar.bz2
[RISCV] Change how we isel (add X, [-4096, -2049]) or (add X, [2048,4095]).
We currently split the immediate almost equally between two addis. If the immediate is odd, it won't be split exactly equal. This patch instead gives one addi an immediate of 2047 or -2048 and the other getsthe remainder. If the original immediate is near -2049 or 2048, this might allow the use of c.addi for the addi that receives the smaller immediate. Reviewed By: asb, luismarques Differential Revision: https://reviews.llvm.org/D128500
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions