1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 02:33:06 +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 [RISCV] Merge Utils library into MCTargetDesc 2021-01-14 11:47:30 -08:00
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 [RISCV] Remove unused method RISCVInstPrinter::printSImm5Plus1. NFC 2021-01-04 12:21:35 -08:00
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 [RISCV] Update the version number to v0.10 for vector. 2021-01-30 07:20:05 +08:00
RISCVTargetStreamer.h [llvm] Forward-declare formatted_raw_ostream (NFC) 2021-01-28 22:21:13 -08:00