1. Sep 27, 2014
    • Matt Arsenault's avatar
      R600/SI: Fix using wrong operand indices when commuting · aff65fbc
      Matt Arsenault authored
      No test since the current SIISelLowering::legalizeOperands
      effectively hides this, and the general uses seem to only fire
      on SALU instructions which don't have modifiers between
      the operands.
      
      When trying to use legalizeOperands immediately after
      instruction selection, it now sees a lot more patterns
      it did not see before which break on this.
      
      llvm-svn: 218527
      aff65fbc
    • Matt Arsenault's avatar
      R600/SI: Remove apparently dead code in legalizeOperands · e50c1c4a
      Matt Arsenault authored
      No tests hit this, and I don't see any way a GlobalAddress
      node would survive beyond lowering on SI. It it would, the
      move should probably be inserted by selection.
      
      llvm-svn: 218526
      e50c1c4a
    • David Peixotto's avatar
      Ignore annotation function calls in cost computation · 472b05b3
      David Peixotto authored
      The annotation instructions are dropped during codegen and have no
      impact on size.  In some cases, the annotations were preventing the
      unroller from unrolling a loop because the annotation calls were
      pushing the cost over the unrolling threshold.
      
      Differential Revision: http://reviews.llvm.org/D5335
      
      llvm-svn: 218525
      472b05b3
    • Chandler Carruth's avatar
      [x86] The mnemonic is SHUFPS not SHUPFS. =[ I'm very bad at spelling · acd19064
      Chandler Carruth authored
      sadly.
      
      llvm-svn: 218524
      acd19064
    • Chandler Carruth's avatar
      [x86] In the new vector shuffle lowering, when trying to do another · 0c9ee10d
      Chandler Carruth authored
      layer of tie-breaking sorting, it really helps to check that you're in
      a tie first. =] Otherwise the whole thing cycles infinitely. Test case
      added, another one found through fuzz testing.
      
      llvm-svn: 218523
      0c9ee10d
    • Chandler Carruth's avatar
      [x86] Fix a large collection of bugs that crept in as I fleshed out the · 5afd4c26
      Chandler Carruth authored
      AVX support.
      
      New test cases included. Note that none of the existing test cases
      covered these buggy code paths. =/ Also, it is clear from this that
      SHUFPS and SHUFPD are the most bug prone shuffle instructions in x86. =[
      
      These were all detected by fuzz-testing. (I <3 fuzz testing.)
      
      llvm-svn: 218522
      5afd4c26
    • Renato Golin's avatar
      Elide repeated register operand in Thumb1 instructions · 36c626e3
      Renato Golin authored
      This patch makes the ARM backend transform 3 operand instructions such as
      'adds/subs' to the 2 operand version of the same instruction if the first
      two register operands are the same.
      
      Example: 'adds r0, r0, #1' will is transformed to 'adds r0, #1'.
      
      Currently for some instructions such as 'adds' if you try to assemble
      'adds r0, r0, #8' for thumb v6m the assembler would throw an error message
      because the immediate cannot be encoded using 3 bits.
      
      The backend should be smart enough to transform the instruction to
      'adds r0, #8', which allows for larger immediate constants.
      
      Patch by Ranjeet Singh.
      
      llvm-svn: 218521
      36c626e3
  2. Sep 26, 2014