llvm-project/llvm/test
Nikolai Bozhenov 346f4329c4 Improve clamp recognition in ValueTracking.
Summary:
ValueTracking was recognizing not all variations of clamp. Swapping of
true value and false value of select was added to fix this problem. This
change breaks the canonical form of cmp inside the matchMinMax function,
that is why additional checks for compare predicates is needed. Added
corresponding test cases.

Reviewers: spatel

Subscribers: llvm-commits

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

Patch by: Artur Gainullin <artur.gainullin@intel.com>

llvm-svn: 315992
2017-10-17 11:50:48 +00:00
..
Analysis [SCEV] Teach SCEV to find maxBECount when loop endbound is variant 2017-10-13 14:30:43 +00:00
Assembler Fix assembler for alloca of multiple elements in non-zero addr space 2017-10-14 03:23:18 +00:00
Bindings
Bitcode Bitcode: add an auto-upgrade for LTO section name 2017-10-06 18:06:59 +00:00
BugPoint
CodeGen Fix implicit null check with negative offset 2017-10-17 11:47:36 +00:00
DebugInfo [codeview] Don't emit FPO data in funclet prologues 2017-10-12 18:20:35 +00:00
DllTool
Examples
ExecutionEngine [ExecutionEngine] Correct the size of a write in a COFF i386 relocation 2017-10-17 01:41:14 +00:00
Feature
FileCheck
Instrumentation [MSan] Disable sanitization for __sanitizer_dtor_callback. 2017-09-20 22:53:08 +00:00
Integer
JitListener
LTO Move the stripping of invalid debug info from the Verifier to AutoUpgrade. 2017-10-02 18:31:29 +00:00
LibDriver
Linker Re-land "[llvm-dwarfdump] Print type names in DW_AT_type DIEs" 2017-10-10 14:15:25 +00:00
MC More tests with x86 prefixes which work after rL315899 commit 2017-10-17 08:49:47 +00:00
Object Add base relative relocation record that can be used for the following case (OpenCL example): 2017-10-16 20:44:29 +00:00
ObjectYAML [ObjectYAML] Handle SHF_COMPRESSED 2017-10-03 06:35:55 +00:00
Other [NewPassManager] Run global dead code elimination after the inliner. 2017-10-05 18:36:01 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen Re-commit r315885: [globalisel][tblgen] Add support for iPTR and implement am_unscaled* and am_indexed* 2017-10-16 03:36:29 +00:00
ThinLTO/X86 Add !callees metadata 2017-10-16 22:22:11 +00:00
Transforms Improve clamp recognition in ValueTracking. 2017-10-17 11:50:48 +00:00
Unit [lit] Make lit support config files with .py extension. 2017-09-21 00:24:52 +00:00
Verifier Move the stripping of invalid debug info from the Verifier to AutoUpgrade. 2017-10-02 18:31:29 +00:00
YAMLParser
tools [llvm-cov] Add one correction to r315960 (PR34962) 2017-10-17 01:34:41 +00:00
.clang-format
CMakeLists.txt [lit] Make lit support config files with .py extension. 2017-09-21 00:24:52 +00:00
TestRunner.sh
lit.cfg.py [lit] Improve tool substitution in lit. 2017-10-06 17:54:46 +00:00
lit.site.cfg.py.in [lit] Make lit support config files with .py extension. 2017-09-21 00:24:52 +00:00