1
0
mirror of https://github.com/RPCS3/llvm-mirror.git synced 2024-10-24 13:33:37 +02:00
llvm-mirror/test
Sanjay Patel 66f3d22962 [InstCombine] add isCanonicalPredicate() helper function and use it; NFCI
There should be a slight efficiency improvement from handling icmp/fcmp with one matcher and reducing duplicated code.

The larger motivation is that there are questions about how predicate canonicalization is handled, and the refactoring
should make it easier if we want to change any of that behavior.

1. As noted in the code comment, we've chosen 3 of the 16 FCMP preds as not canonical. Why those 3? It goes back to 
   rL32751 from what I can tell, but I'm not sure if there's a justification for that rule.
2. We currently do not canonicalize integer select conditions. Should we use the same rule that applies to branches 
   for selects?
3. We currently do canonicalize some FP select conditions, and those rules would conflict with the rule shown here. 
   Should one or both be changed? 

No-functional-change-intended, but adding tests anyway because there's no coverage for most of the predicates.

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

llvm-svn: 303261
2017-05-17 14:21:19 +00:00
..
Analysis [SystemZ] Modelling of costs of divisions with a constant power of 2. 2017-05-17 12:46:26 +00:00
Assembler
Bindings
Bitcode Add "REQUIRES:" to the last few tests that use target specific intrinsics 2017-05-15 22:15:22 +00:00
BugPoint
CodeGen [x86] Update tests in psubus.ll; NFC 2017-05-17 13:39:16 +00:00
DebugInfo [llvm-pdbdump] Add the option to sort functions and data. 2017-05-14 01:13:40 +00:00
Examples
ExecutionEngine [RuntimeDyld] Fix debug section relocation (pr20457) 2017-05-17 08:47:28 +00:00
Feature Test for r303197 2017-05-16 20:53:27 +00:00
FileCheck
Instrumentation MSan: Mark MemorySanitizer tests that use x86 intrinsics as REQUIRES: x86 2017-05-13 16:24:38 +00:00
Integer
JitListener
LibDriver
Linker
LTO Add support for handling ifuncs to GlobalValue::getBaseObject 2017-05-15 18:28:29 +00:00
MC [Sparc] Remove execute permissions from non-executable text files 2017-05-17 11:05:20 +00:00
Object Add support for handling ifuncs to GlobalValue::getBaseObject 2017-05-15 18:28:29 +00:00
ObjectYAML
Other
SymbolRewriter
TableGen [globalisel][tablegen] Import rules containing intrinsic_wo_chain. 2017-05-17 13:39:49 +00:00
ThinLTO/X86
tools [llvm-pdbdump] Add the option to sort functions and data. 2017-05-14 01:13:40 +00:00
Transforms [InstCombine] add isCanonicalPredicate() helper function and use it; NFCI 2017-05-17 14:21:19 +00:00
Unit
Verifier
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
TestRunner.sh