1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-23 19:23:23 +01:00
llvm-mirror/test
Jessica Paquette 7d1c45a131 [MachineOutliner] Drop candidates that require fixups if it's beneficial
If it's a bigger code size win to drop candidates that require stack fixups
than to demote every candidate to that variant, the outliner should do that.

This happens if the number of bytes taken by calls to functions that don't
require fixups, plus the number of bytes that'd be left is less than the
number of bytes that it'd take to emit a save + restore for all candidates.

Also add tests for each possible new behaviour.

- machine-outliner-compatible-candidates shows that when we have candidates
that don't use the stack, we can use the default call variant along with the
no save/regsave variant.

- machine-outliner-all-stack shows that when it's better to fix up the stack,
we still will demote all candidates to that case

- machine-outliner-drop-stack shows that we can discard candidates that
require stack fixups when it would be beneficial to do so.

llvm-svn: 348168
2018-12-03 19:11:27 +00:00
..
Analysis [SystemZ::TTI] Return zero cost for ICmp that becomes Load And Test. 2018-12-03 14:30:18 +00:00
Assembler
Bindings
Bitcode
BugPoint [test] Fix BugPoint/compile-custom.ll to use detected python exec 2018-12-02 16:49:23 +00:00
CodeGen [MachineOutliner] Drop candidates that require fixups if it's beneficial 2018-12-03 19:11:27 +00:00
DebugInfo
Demangle
Examples
ExecutionEngine
Feature
FileCheck
Instrumentation [KMSAN] Enable -msan-handle-asm-conservative by default 2018-12-03 10:15:43 +00:00
Integer
JitListener
Linker
LTO
MC [AArch64] Add command-line option for SSBS 2018-12-03 14:00:47 +00:00
Object
ObjectYAML
Other Fixing -print-module-scope for legacy SCC passes 2018-12-03 14:48:15 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen
ThinLTO/X86
tools [llvm-dwarfdump] - Stop printing the bogus empty section name on invalid dwarf. 2018-12-03 10:33:40 +00:00
Transforms [SimplifyCFG] add tests for cross block compare folding; NFC 2018-12-03 16:55:29 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg.py
lit.site.cfg.py.in
TestRunner.sh