1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-24 19:52:54 +01:00
llvm-mirror/test
Simon Cook 5c4172c74b [RISCV] Compress instructions based on function features
When running under LTO, it is common to not specify the architecture
spec, which is used for setting up the target machine, and instead rely
on features specified in each function to generate the correct
instructions.

This works for the code generator, but the RISC-V backend uses the
AsmPrinter to do instruction compression, which does not see these
features but instead uses a MCSubtargetInfo object to see whether
compression is enabled. Since this is configured based on the
TargetMachine at startup, it will result in compressed instructions not
being emitted when it has not been given the 'c' TargetFeature, but the
function has it.

This changes the RISCVAsmPrinter to re-initialize the STI feature set
based on the current MachineFunction, such that compressed instructions
are now correctly emitted regardless of the method used to enable them.

Differential revision: https://reviews.llvm.org/D73339
2020-02-28 11:52:55 +00:00
..
Analysis [CostModel][X86] Improve extract/insert element costs (PR43605) 2020-02-27 15:54:13 +00:00
Assembler [Assembler] Allow assembling empty index with non-zero flags 2020-02-26 16:34:11 +03:00
Bindings Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
Bitcode
BugPoint
CodeGen [RISCV] Compress instructions based on function features 2020-02-28 11:52:55 +00:00
DebugInfo [NFC] [Test commit] Testing commit access with new email 2020-02-28 12:01:52 +01:00
Demangle
Examples
ExecutionEngine Disable memory leak checking in a test to work around a bot failure 2020-02-26 14:51:50 -08:00
Feature Remove no un-necessary require for load_extension.ll 2020-02-26 08:29:09 +01:00
FileCheck
Instrumentation
Integer
JitListener
Linker
LTO
MachineVerifier
MC [MC][ELF][ARM] Add relocations for some pc-relative fixups 2020-02-28 11:29:29 +00:00
Object
ObjectYAML
Other Use temporary directory for tests in D74346 2020-02-24 12:19:07 +01:00
Reduce
SafepointIRVerifier
Support
SymbolRewriter
TableGen
ThinLTO/X86
tools [llvm-objcopy] Enable --discard-all for MachO 2020-02-26 12:51:15 -08:00
Transforms Let EarlyCSE fold equivalent freeze instructions 2020-02-28 20:35:20 +09:00
Unit
Verifier Visit previously unreachable nodes in the debug info metadata verifier. 2020-02-26 14:48:08 -08:00
YAMLParser
.clang-format
CMakeLists.txt Fix buildbots after recent GSYM commit. 2020-02-26 10:30:04 -08:00
lit.cfg.py Revert "Rework go bindings so that validation works fine" 2020-02-24 09:20:08 -08:00
lit.site.cfg.py.in
TestRunner.sh