llvm-project/llvm/lib
Craig Topper 514b00c439 [X86] Limit the scope of the min/max canonicalization in combineSelect
Previously the transform was doing these two canonicalizations
(x > y) ? x : y -> (x >= y) ? x : y
(x < y) ? x : y -> (x <= y) ? x : y

But those don't seem to be useful generally. And they actively
pessimize the cases in PR47049.

This patch limits it to
(x > 0) ? x : 0 -> (x >= 0) ? x : 0
(x < -1) ? x : -1 -> (x <= -1) ? x : -1

These are the cases mentioned in the comments as the motivation
for the canonicalization. These allow the CMOV to use the S
flag from the compare thus improving opportunities to use a TEST
or the flags from an arithmetic instruction.
2020-08-07 22:51:49 -07:00
..
Analysis [NFC][StackSafety] Fix statistics 2020-08-07 16:18:52 -07:00
AsmParser [LLParser,NFC] Simplify forward GV refs update 2020-08-06 19:18:51 -07:00
BinaryFormat AMDGPU: Remove .value_type from kernel metadata 2020-07-10 18:16:31 -04:00
Bitcode [NFC] Move BitcodeCommon.h from Bitstream to Bitcode 2020-07-27 20:49:17 +00:00
Bitstream [Bitcode] reserve in front of push_back loops. NFCI. 2020-05-01 15:52:53 +02:00
CodeGen Reland "Revert "[NewPM][CodeGen] Introduce machine pass and machine pass manager"" 2020-08-07 16:40:49 -07:00
DWARFLinker [Clang] Restore replace_path_prefix instead of startswith 2020-05-13 13:49:14 -04:00
DebugInfo Revert "PDBExtras.h - remove unnecessary raw_ostream forward declaration. NFCI." 2020-08-06 15:15:43 +02:00
Demangle [NFC] Use std::free instead of ::free 2020-07-20 16:19:08 -04:00
ExecutionEngine [JITLink][MachO][AArch64] More PAGEOFF12 relocation fixes. 2020-08-05 21:09:45 -07:00
Extensions Update compiler extension integration into the build system 2020-04-24 09:40:14 +02:00
Frontend [OpenMP][IRBuilder] Support allocas in nested parallel regions 2020-07-30 10:19:39 -05:00
FuzzMutate [NewPM][LSR] Rename strength-reduce -> loop-reduce 2020-07-02 11:15:29 -07:00
Fuzzer
IR Reduce dropTriviallyDeadConstantArrays cumulative time percentage from 17% to 4% 2020-08-07 11:36:30 -07:00
IRReader Infer alignment of unmarked loads in IR/bitcode parsing. 2020-05-14 13:03:50 -07:00
LTO [NewPM] Support optnone under new pass manager 2020-07-21 09:53:43 -07:00
LineEditor
Linker Revert rG5dd566b7c7b78bd- "PassManager.h - remove unnecessary Function.h/Module.h includes. NFCI." 2020-07-24 13:02:33 +01:00
MC Revert "Reland D64327 [MC][ELF] Allow STT_SECTION referencing SHF_MERGE on REL targets" 2020-08-07 10:56:33 -07:00
MCA [MCA][InstrBuilder] Correctly mark reserved resources in initializeUsedResources. 2020-05-10 19:25:54 +01:00
Object [llvm-readobj] - Make decode_relrs() don't return Expected<>. NFCI. 2020-08-05 17:05:47 +03:00
ObjectYAML [DWARFYAML][debug_info] Make the 'Values' field optional. 2020-08-06 20:43:52 +08:00
Option [llvm-symbolizer] Switch command line parsing from llvm::cl to OptTable 2020-08-04 08:53:15 -07:00
Passes [NewPM] Print 'Skipping pass' as pass instrumentation 2020-08-07 15:02:02 -07:00
ProfileData [llvm-cov] reset executation count to 0 after wrapped segment 2020-08-04 18:38:44 -07:00
Remarks BitstreamRemarkParser.h - remove unnecessary includes. NFCI. 2020-08-06 13:17:53 +01:00
Support [NFC] Use value initializer for OVERLAPPED 2020-08-07 11:18:33 -07:00
TableGen [TableGen][CGS] Print better errors on overlapping InstRW 2020-07-27 09:41:10 -06:00
Target [X86] Limit the scope of the min/max canonicalization in combineSelect 2020-08-07 22:51:49 -07:00
Testing Use INTERFACE_COMPILE_OPTIONS to disable -Wsuggest-override for any target that links to gtest 2020-07-27 08:37:01 -07:00
TextAPI [TextAPI/MachO] Fix style issues. NFC 2020-06-24 14:43:45 -07:00
ToolDrivers [llvm-lib] Support adding short import library objects with llvm-lib 2020-07-24 22:15:08 +03:00
Transforms Revert "[MSAN] Instrument libatomic load/store calls" 2020-08-07 19:45:51 +00:00
WindowsManifest
XRay [xray] Add llvm-xray extract support for 32 bit ARM 2020-05-28 18:41:11 -04:00
CMakeLists.txt Update compiler extension integration into the build system 2020-04-24 09:40:14 +02:00
LLVMBuild.txt Update compiler extension integration into the build system 2020-04-24 09:40:14 +02:00