llvm/test
Max Kazantsev de4770b949 [IRCE] Fix buggy behavior in Clamp
Clamp function was too optimistic when choosing signed or unsigned min/max function for calculations.
In fact, `!IsSignedPredicate` guarantees us that `Smallest` and `Greatest` can be compared safely using unsigned
predicates, but we did not check this for `S` which can in theory be negative.

This patch makes Clamp use signed min/max for cases when it fails to prove `S` being non-negative,
and it adds a test where such situation may lead to incorrect conditions calculation.

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


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311205 91177308-0d34-0410-b5e6-96231b3b80d8
2017-08-18 22:50:29 +00:00
..
Analysis [CostModel][X86][XOP] Improve costs for XOP shuffles 2017-08-16 13:50:20 +00:00
Assembler [DI] Every DIGlobalVariable should have a type. 2017-08-16 13:39:07 +00:00
Bindings [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
Bitcode Add strictfp attribute to prevent unwanted optimizations of libm calls 2017-08-14 21:15:13 +00:00
BugPoint
CodeGen [X86][ADX] Regenerate ADX intrinsics tests 2017-08-18 21:21:14 +00:00
DebugInfo [Debug info] Transfer DI to fragment expressions for split integer values. 2017-08-18 18:07:00 +00:00
DllTool [llvm-dlltool] Fix creating stdcall/fastcall import libraries for i386 2017-08-16 05:18:36 +00:00
Examples
ExecutionEngine [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
Feature
FileCheck
Instrumentation [SanitizerCoverage] Add stack depth tracing instrumentation. 2017-08-18 18:43:30 +00:00
Integer
JitListener
LibDriver [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
Linker [DI] Every DIGlobalVariable should have a type. 2017-08-16 13:39:07 +00:00
LTO [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
MC ARM: use an external relocation for calls from MachO ARM mode. 2017-08-18 19:13:56 +00:00
Object Revert archive-* tests from r310953, there were test failures. 2017-08-15 23:41:34 +00:00
ObjectYAML
Other [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
SafepointIRVerifier
SymbolRewriter
TableGen [globalisel][tablegen] Generate TypeObject table. NFC 2017-08-17 13:18:35 +00:00
ThinLTO/X86 [llvm] Get rid of "%T" expansions 2017-08-15 20:29:24 +00:00
tools [llvm-dwarfdump] Hide .debug_str and DIE reference offsets in brief mode 2017-08-18 21:35:44 +00:00
Transforms [IRCE] Fix buggy behavior in Clamp 2017-08-18 22:50:29 +00:00
Unit
Verifier Mark Verifier/invalid-eh.ll as unsupported on windows 2017-08-17 15:07:03 +00:00
YAMLParser
.clang-format
CMakeLists.txt Reland "[LLVM][llvm-objcopy] Added basic plumbing to get things started" 2017-08-01 00:33:58 +00:00
lit.cfg Reland "[LLVM][llvm-objcopy] Added basic plumbing to get things started" 2017-08-01 00:33:58 +00:00
lit.site.cfg.in Correctly enable the llvm-mt tests, now that build flags changed. 2017-07-26 16:35:44 +00:00
TestRunner.sh