aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.cpp
diff options
context:
space:
mode:
authorSam Elliott <selliott@lowrisc.org>2020-05-11 17:58:33 +0100
committerSam Elliott <selliott@lowrisc.org>2020-05-11 18:01:18 +0100
commitfe69dfebcfa007e23bf528fff8b96ac63e593e34 (patch)
treeeda7885e53649f1c81a4377daaad5c573674f2f3 /clang/lib/Frontend/CompilerInvocation.cpp
parent47c1f2741fe7d24e02c3f54bcb723994292c54c3 (diff)
downloadllvm-fe69dfebcfa007e23bf528fff8b96ac63e593e34.zip
llvm-fe69dfebcfa007e23bf528fff8b96ac63e593e34.tar.gz
llvm-fe69dfebcfa007e23bf528fff8b96ac63e593e34.tar.bz2
[RISCV] Support Constant Pools in Load/Store Peephole
Summary: RISC-V uses a post-select peephole pass to optimise `(load/store (ADDI $reg, %lo(addr)), 0)` into `(load/store $reg, %lo(addr))`. This peephole wasn't firing for accesses to constant pools, which is how we materialise most floating point constants. This adds support for the constantpool case, which improves code generation for lots of small FP loading examples. I have not added any tests because this structure is well-covered by the `fp-imm.ll` testcases, as well as almost all other uses of floating point constants in the RISC-V backend tests. Reviewed By: luismarques, asb Differential Revision: https://reviews.llvm.org/D79523
Diffstat (limited to 'clang/lib/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions