llvm-project/llvm/lib
Amara Emerson 7a4d2df04a [AArch64][GlobalISel] Optimize compare and branch cases with G_INTTOPTR and unknown values.
Since we have distinct types for pointers and scalars, G_INTTOPTRs can sometimes
obstruct attempts to find constant source values. These usually come about when
try to do some kind of null pointer check. Teaching getConstantVRegValWithLookThrough
about this operation allows the CBZ/CBNZ optimization to catch more cases.

This change also improves the case where we can't find a constant source at all.
Previously we would emit a cmp, cset and tbnz for that. Now we try to just emit
a cmp and conditional branch, saving an instruction.

The cumulative code size improvement of this change plus D64354 is 5.5% geomean
on arm64 CTMark -O0.

Differential Revision: https://reviews.llvm.org/D64377

llvm-svn: 365690
2019-07-10 19:21:43 +00:00
..
Analysis
AsmParser
BinaryFormat
Bitcode [Bitcode] Explicitly include Bitstream/BitCodes.h and BitstreamWriter.h 2019-07-09 23:20:01 +00:00
Bitstream
CodeGen [AArch64][GlobalISel] Optimize compare and branch cases with G_INTTOPTR and unknown values. 2019-07-10 19:21:43 +00:00
DebugInfo
Demangle
ExecutionEngine [ORC] Add custom IR compiler configuration to LLJITBuilder to enable obj caches. 2019-07-10 17:24:24 +00:00
FuzzMutate
Fuzzer
IR Add a transform pass to make the executable semantics of poison explicit in the IR 2019-07-09 18:49:29 +00:00
IRReader
LTO [Support] Move llvm::MemoryBuffer to sys::fs::file_t 2019-07-10 00:34:13 +00:00
LineEditor
Linker
MC Revert "[ELF] Loose a condition for relocation with a symbol" 2019-07-10 18:58:05 +00:00
MCA
Object [Support] Move llvm::MemoryBuffer to sys::fs::file_t 2019-07-10 00:34:13 +00:00
ObjectYAML
Option
Passes Add a transform pass to make the executable semantics of poison explicit in the IR 2019-07-09 18:49:29 +00:00
ProfileData [Profile] Support raw/indexed profiles larger than 4GB 2019-07-09 22:01:04 +00:00
Remarks [Remarks] Add cl::Hidden to -remarks-yaml-string-table 2019-07-10 15:46:36 +00:00
Support Recommit "[CommandLine] Remove OptionCategory and SubCommand caches from the Option class." 2019-07-10 17:57:05 +00:00
TableGen
Target [AArch64][GlobalISel] Optimize compare and branch cases with G_INTTOPTR and unknown values. 2019-07-10 19:21:43 +00:00
Testing
TextAPI
ToolDrivers
Transforms [LoopRotate + MemorySSA] Keep an <instruction-cloned instruction> map. 2019-07-10 17:36:56 +00:00
WindowsManifest
XRay [Support] Move llvm::MemoryBuffer to sys::fs::file_t 2019-07-10 00:34:13 +00:00
CMakeLists.txt
LLVMBuild.txt