1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-11-22 18:54:02 +01:00
llvm-mirror/lib
Daniel Cederman 0fa121db2e [Sparc] Use ANDN instead of AND if constant can be encoded more efficiently
Summary:
In the case of (and reg, constant) or (or reg, constant), it can be
beneficial to use a ANDNrr/ORNrr instruction instead of ANDrr/ORrr,
if the complement of the constant can be encoded using a single SETHI
instruction instead of a SETHI/ORri pair.

If the constant has more than one use, it is probably better to keep it
in its original form.

Reviewers: jyknight, venkatra

Reviewed By: jyknight

Subscribers: fedor.sergeev, jrtc27, llvm-commits

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

llvm-svn: 341069
2018-08-30 14:05:26 +00:00
..
Analysis [NFC] Add severe validation of InstructionPrecedenceTracking 2018-08-30 10:26:06 +00:00
AsmParser [IR] Replace isa<TerminatorInst> with isTerminator(). 2018-08-26 09:51:22 +00:00
BinaryFormat Fix undefined behavior in r340457 2018-08-23 02:51:09 +00:00
Bitcode [IR] Replace isa<TerminatorInst> with isTerminator(). 2018-08-26 09:51:22 +00:00
CodeGen [CodeGen] emit inline asm clobber list warnings for reserved (cont) 2018-08-30 12:52:35 +00:00
DebugInfo [DWARF] Unify warning callbacks. NFC. 2018-08-23 12:43:33 +00:00
Demangle [MS Demangler] Fix several crashes and demangling bugs. 2018-08-29 23:56:09 +00:00
ExecutionEngine [ORC] Replace lookupFlags in JITSymbolResolver with getResponsibilitySet. 2018-08-28 21:18:05 +00:00
Fuzzer
FuzzMutate [IR] Replace isa<TerminatorInst> with isTerminator(). 2018-08-26 09:51:22 +00:00
IR [NFC] Make getPreferredAlignment honor section markings. 2018-08-29 23:46:26 +00:00
IRReader
LineEditor
Linker
LTO
MC [MC] fix a clang-tidy warning, NFC 2018-08-29 10:40:51 +00:00
Object [COFF] Expose an easier helper function for getting names for relocation types 2018-08-27 08:42:39 +00:00
ObjectYAML [yaml2obj] - Add a support for changing EntSize. 2018-08-07 08:11:38 +00:00
Option
Passes Revert r340922 "[GVNHoist] Re-enable GVNHoist by default" 2018-08-29 13:00:55 +00:00
ProfileData [Coverage] Ignore 'unused' functions with non-zero execution counts 2018-08-07 22:25:36 +00:00
Support [Error] Add FileError helper; upgrade StringError behavior 2018-08-30 13:10:42 +00:00
TableGen
Target [Sparc] Use ANDN instead of AND if constant can be encoded more efficiently 2018-08-30 14:05:26 +00:00
Testing
ToolDrivers
Transforms Revert "[SimplifyCFG] Common debug handling [NFC]" 2018-08-30 08:06:50 +00:00
WindowsManifest
XRay [XRay] Help gcc disambiguate names 2018-08-30 09:04:12 +00:00
CMakeLists.txt
LLVMBuild.txt