Skip to content
  1. Nov 19, 2018
    • Craig Topper's avatar
      [X86] Use compare with 0 to fill an element with sign bits when sign extending to v2i64 pre-sse4.1 · 36168910
      Craig Topper authored
      Previously we used an arithmetic shift right by 31, but that requires a copy to preserve the input. So we might as well materialize a zero and compare to it since the comparison will overwrite the register that contains the zeros. This should be one byte shorter.
      
      llvm-svn: 347181
      36168910
    • Craig Topper's avatar
      [X86] Remove most of the SEXTLOAD Custom setOperationAction calls under... · 053f1eea
      Craig Topper authored
      [X86] Remove most of the SEXTLOAD Custom setOperationAction calls under -x86-experimental-vector-widening-legalization.
      
      Leave just the v4i8->v4i64 and v8i8->v8i64, but only enable them on pre-sse4.1 targets when 64-bit mode is enabled. In those cases we end up creating sext loads that get scalarized to code that looks better than what we get from loading into a vector register and doing a multiple step sign extend using unpacks and shifts.
      
      llvm-svn: 347180
      053f1eea
  2. Nov 18, 2018
  3. Nov 17, 2018
Loading