1. Jun 11, 2014
    • Andrea Di Biagio's avatar
      [X86] Improved target combine rules for selecting horizontal add/sub. · fa508af0
      Andrea Di Biagio authored
      This patch slightly changes the algorithm introduced at revision 210477
      to fix a problem where the algorithm was producing incorrect code for 
      the VEX.256 encoded versions of horizontal add/sub.
      
      For these cases, we now try to split the two 256-bit vectors into
      128-bit chunks before emitting horizontal add/sub dag nodes.
      
      Added a new test case into haddsub-2.ll.
      
      llvm-svn: 210545
      fa508af0
    • Tom Stellard's avatar
      Hexagon: Expand i1 SELECT_CC · d172270c
      Tom Stellard authored
      il is legal for Hexagon, so I should have marked this as Expand for
      SELECT_CC when I removed setOperationAction(ISD::SELECT_CC, MVT::Other,
      Expand); in r210541.
      
      llvm-svn: 210544
      d172270c
    • Adam Nemet's avatar
      [X86] AVX512: Add vmovntdqa · 7f62b23e
      Adam Nemet authored
      Along with the corresponding intrinsic and tests.
      
      llvm-svn: 210543
      7f62b23e
    • Renato Golin's avatar
      Fix a bug in the Thumb1 ARM Load/Store optimizer · 65eea557
      Renato Golin authored
      Previously, the basic block was searched for future uses of the base register,
      and if necessary any writeback to the base register was reset using a SUB
      instruction (e.g. before calling a function) just before such a use. However,
      this step happened *before* the merged LDM/STM instruction was built. So if
      there was (e.g.) a function call directly after the not-yet-formed LDM/STM,
      the pass would first insert a SUB instruction to reset the base register,
      and then (at the same location, incorrectly) insert the LDM/STM itself.
      
      This patch fixes PR19972. Patch by Moritz Roth.
      
      llvm-svn: 210542
      65eea557
    • Tom Stellard's avatar
      SelectionDAG: Don't use MVT::Other to determine legality of ISD::SELECT_CC · 3787b122
      Tom Stellard authored
      The SelectionDAG bad a special case for ISD::SELECT_CC, where it would
      allow targets to specify:
      
      setOperationAction(ISD::SELECT_CC, MVT::Other, Expand);
      
      to indicate that they wanted to expand ISD::SELECT_CC for all types.
      This wasn't applied correctly everywhere, and it makes writing new
      DAG patterns with ISD::SELECT_CC difficult.
      
      llvm-svn: 210541
      3787b122
    • Tom Stellard's avatar
      SelectionDAG: Enable (and (setcc x), (setcc y)) -> (setcc (and x, y)) for vectors · b9a02338
      Tom Stellard authored
      This prevents a future commit from regressing:
      
      test/CodeGen/R600/setcc-equivalent.ll
      
      llvm-svn: 210540
      b9a02338
    • Tom Stellard's avatar
      SelectionDAG: Expand SELECT_CC to SELECT + SETCC · 3ca1bfc7
      Tom Stellard authored
      This consolidates code from the Hexagon, R600, and XCore targets.
      
      No functionality change intended.
      
      llvm-svn: 210539
      3ca1bfc7
  2. Jun 10, 2014