llvm-6502/test
Andrea Di Biagio be9322ae7c [X86] Fix wrong target specific combine on SETCC nodes.
Part of the folding logic implemented by function 'PerformISDSETCCCombine'
only worked under the assumption that the condition code in input could have
been either SETNE or SETEQ.
Unfortunately that assumption was incorrect, and in some cases the algorithm
ended up incorrectly folding SETCC nodes.

The incorrect folding only affected SETCC dag nodes where:
 - one of the operands was a build_vector of all zeroes;
 - the other operand was a SIGN_EXTEND from a vector of MVT:i1 elements;
 - the condition code was neither SETNE nor SETEQ.

Example:
  (setcc (v4i32 (sign_extend v4i1:%A)), (v4i32 VectorOfAllZeroes), setge)

Before this patch, the entire dag node sequence from the example was
incorrectly folded to node %A.

With this patch, the dag node sequence is folded to a
  (xor %A, (v4i1 VectorOfAllOnes)).

Added test setcc-combine.ll.

Thanks to Greg Bedwell for spotting this issue.


git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@232046 91177308-0d34-0410-b5e6-96231b3b80d8
2015-03-12 15:16:58 +00:00
..
Analysis [LoopAccesses 3/3] Print the dependences with -analyze 2015-03-10 17:40:43 +00:00
Assembler Fix a stack overflow in the assembler when checking that GEPs must be over sized types. 2015-03-10 06:34:57 +00:00
Bindings
Bitcode
BugPoint
CodeGen [X86] Fix wrong target specific combine on SETCC nodes. 2015-03-12 15:16:58 +00:00
DebugInfo Relax CHECK to match mips syntax. 2015-03-11 12:48:24 +00:00
ExecutionEngine ExecutionEngine: Preliminary support for dynamically loadable coff objects 2015-03-07 20:21:27 +00:00
Feature
FileCheck
Instrumentation [sanitizer] fix instrumentation with -mllvm -sanitizer-coverage-block-threshold=0 to actually do something useful. 2015-03-10 01:58:27 +00:00
Integer
JitListener
Linker Emit correct linkage-name attribute based on DWARF version. 2015-03-10 22:44:45 +00:00
LTO
MC AVX-512: Added encoding tests for VPROR, VPROL instructions, 2015-03-12 07:28:41 +00:00
Object
Other
SymbolRewriter
TableGen
tools Add the option, -info-plist to llvm-objdump used with -macho to print the 2015-03-11 22:06:32 +00:00
Transforms Reapply 'Run LICM pass after loop unrolling pass.' 2015-03-12 05:36:01 +00:00
Unit
Verifier Fix another verifier crash where a GC intrinsic would look at the internals of another intrinsic in order to verify itself. 2015-03-11 06:57:30 +00:00
YAMLParser
.clang-format
CMakeLists.txt
lit.cfg
lit.site.cfg.in
Makefile
Makefile.tests
TestRunner.sh