1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/lib/Target/RISCV/MCTargetDesc
Craig Topper a2254d3fcc [RISCV] Teach RISCVMatInt about cases where it can use LUI+SLLI to replace LUI+ADDI+SLLI for large constants.
If we need to shift left anyway we might be able to take advantage
of LUI implicitly shifting its immediate left by 12 to cover part
of the shift. This allows us to use more bits of the LUI immediate
to avoid an ADDI.

isDesirableToCommuteWithShift now considers compressed instruction
opportunities when deciding if commuting should be allowed.

I believe this is the same or similar to one of the optimizations
from D79492.

Reviewed By: luismarques, arcbbb

Differential Revision: https://reviews.llvm.org/D105417
2021-07-20 09:22:06 -07:00
..
CMakeLists.txt
RISCVAsmBackend.cpp fix an -Wunused-variable warning in release built, NFC 2021-06-17 18:48:47 +02:00
RISCVAsmBackend.h RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
RISCVBaseInfo.cpp [RISCV][NFC] Add a single space after comma for VType 2021-06-09 11:18:22 +08:00
RISCVBaseInfo.h [RISCV] Pass FeatureBitset by reference rather than by value. NFCI 2021-07-04 23:11:40 -07:00
RISCVELFObjectWriter.cpp RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
RISCVELFStreamer.cpp RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
RISCVELFStreamer.h RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
RISCVFixupKinds.h RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
RISCVInstPrinter.cpp Revert "[RISCV] Remove -riscv-no-aliases in favour of new -M no-aliases" 2021-05-29 15:11:37 +01:00
RISCVInstPrinter.h
RISCVMatInt.cpp [RISCV] Teach RISCVMatInt about cases where it can use LUI+SLLI to replace LUI+ADDI+SLLI for large constants. 2021-07-20 09:22:06 -07:00
RISCVMatInt.h [RISCV] Teach RISCVMatInt about cases where it can use LUI+SLLI to replace LUI+ADDI+SLLI for large constants. 2021-07-20 09:22:06 -07:00
RISCVMCAsmInfo.cpp
RISCVMCAsmInfo.h
RISCVMCCodeEmitter.cpp [RISCV] Move instruction information into the RISCVII namespace (NFC) 2021-05-11 16:32:42 -05:00
RISCVMCExpr.cpp RISCV: clean up target expression handling 2021-06-17 13:35:32 -07:00
RISCVMCExpr.h Add missing cases in RISCVMCExpr::getVariantKindName 2021-03-25 12:57:05 +07:00
RISCVMCTargetDesc.cpp RISCV: adjust handling of relocation emission for RISCV 2021-06-17 08:20:02 -07:00
RISCVMCTargetDesc.h
RISCVTargetStreamer.cpp
RISCVTargetStreamer.h