1. Sep 29, 2014
    • Chandler Carruth's avatar
      [x86] Add the dispatch skeleton to the new vector shuffle lowering for · c7129276
      Chandler Carruth authored
      AVX-512.
      
      There is no interesting logic yet. Everything ends up eventually
      delegating to the generic code to split the vector and shuffle the
      halves. Interestingly, that logic does a significantly better job of
      lowering all of these types than the generic vector expansion code does.
      Mostly, it lets most of the cases fall back to nice AVX2 code rather
      than all the way back to SSE code paths.
      
      Step 2 of basic AVX-512 support in the new vector shuffle lowering. Next
      up will be to incrementally add direct support for the basic instruction
      set to each type (adding tests first).
      
      llvm-svn: 218585
      c7129276
    • Chandler Carruth's avatar
      [x86] Make the split-and-lower routine fully generic by relaxing the · 32a3ebda
      Chandler Carruth authored
      assertion, making the name generic, and improving the documentation.
      
      Step 1 in adding very primitive support for AVX-512. No functionality
      changed yet.
      
      llvm-svn: 218584
      32a3ebda
    • Chandler Carruth's avatar
      [x86] Teach the new vector shuffle lowering to fall back on AVX-512 · 24e3b69c
      Chandler Carruth authored
      vectors.
      
      Someone will need to build the AVX512 lowering, which should follow
      AVX1 and AVX2 *very* closely for AVX512F and AVX512BW resp. I've added
      a dummy test which is a port of the v8f32 and v8i32 tests from AVX and
      AVX2 to v8f64 and v8i64 tests for AVX512F and AVX512BW. Hopefully this
      is enough information for someone to implement proper lowering here. If
      not, I'll be happy to help, but right now the AVX-512 support isn't
      a priority for me.
      
      llvm-svn: 218583
      24e3b69c
    • Chandler Carruth's avatar
      [x86] Fix the new vector shuffle lowering's use of VSELECT for AVX2 · abe742e8
      Chandler Carruth authored
      lowerings.
      
      This was hopelessly broken. First, the x86 backend wants '-1' to be the
      element value representing true in a boolean vector, and second the
      operand order for VSELECT is backwards from the actual x86 instructions.
      To make matters worse, the backend is just using '-1' as the true value
      to get the high bit to be set. It doesn't actually symbolically map the
      '-1' to anything. But on x86 this isn't quite how it works: there *only*
      the high bit is relevant. As a consequence weird non-'-1' values like
      0x80 actually "work" once you flip the operands to be backwards.
      
      Anyways, thanks to Hal for helping me sort out what these *should* be.
      
      llvm-svn: 218582
      abe742e8
    • Tobias Grosser's avatar
      Build domtree of new loops correctly · f8a678d2
      Tobias Grosser authored
      This fixes a bug introduced in r217525.
      
      llvm-svn: 218581
      f8a678d2
    • Richard Smith's avatar
      Run DR tests in C++17 mode too. · 09c07780
      Richard Smith authored
      llvm-svn: 218580
      09c07780
    • Matt Arsenault's avatar
      Add MachineOperand::ChangeToFPImmediate and setFPImm · 93ffe58f
      Matt Arsenault authored
      llvm-svn: 218579
      93ffe58f
  2. Sep 28, 2014
  3. Sep 27, 2014