llvm/test
Nadav Rotem 4bcd5f888f LoopVectorizer: Add support for if-conversion of PHINodes with 3+ incoming values.
By supporting the vectorization of PHINodes with more than two incoming values we can increase the complexity of nested if statements.

We can now vectorize this loop:

int foo(int *A, int *B, int n) {
  for (int i=0; i < n; i++) {
    int x = 9;
    if (A[i] > B[i]) {
      if (A[i] > 19) {
        x = 3;
      } else if (B[i] < 4 ) {
        x = 4;
      } else {
        x = 5;
      }
    }
    A[i] = x;
  }
}



git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@181037 91177308-0d34-0410-b5e6-96231b3b80d8
2013-05-03 17:42:55 +00:00
..
Analysis RegionInfo: Do not crash if unreachable block is found 2013-05-03 15:48:34 +00:00
Archive
Assembler
Bindings/Ocaml
Bitcode
BugPoint
CodeGen R600: Expand vector or, shl, srl, and xor nodes 2013-05-03 17:21:31 +00:00
DebugInfo TBAA: remove !tbaa from testing cases if not used. 2013-05-02 18:11:35 +00:00
ExecutionEngine Fix Addend computation for non external relocations on Macho. 2013-04-30 15:40:54 +00:00
Feature Clarify that llvm.used can contain aliases. 2013-04-22 14:58:02 +00:00
FileCheck Remove SMLoc paired with CHECK-NOT patterns. Not functionality change. 2013-04-25 21:31:34 +00:00
Instrumentation
Integer
JitListener
Linker
MC [mips] Test for r179873. 2013-04-30 20:48:49 +00:00
Object Add support for reading ARM ELF build attributes. 2013-05-03 11:36:35 +00:00
Other Attributes: Don't print trailing whitespace on the function attribute comment. 2013-04-19 11:43:21 +00:00
TableGen
tools Use pointers to iterate over symbols. 2013-04-24 19:47:55 +00:00
Transforms LoopVectorizer: Add support for if-conversion of PHINodes with 3+ incoming values. 2013-05-03 17:42:55 +00:00
Unit
Verifier Also verify llvm.compiler_used. 2013-04-22 15:16:51 +00:00
YAMLParser
CMakeLists.txt
lit.cfg Use zlib to uncompress debug sections in DWARF parser. 2013-04-23 10:17:34 +00:00
lit.site.cfg.in Use zlib to uncompress debug sections in DWARF parser. 2013-04-23 10:17:34 +00:00
Makefile Use zlib to uncompress debug sections in DWARF parser. 2013-04-23 10:17:34 +00:00
Makefile.tests Remove obsolete object file dumpers 2013-04-12 04:07:13 +00:00
TestRunner.sh