1. Sep 05, 2012
    • Jakob Stoklund Olesen's avatar
      Typo. · d92e2bc2
      Jakob Stoklund Olesen authored
      llvm-svn: 163154
      d92e2bc2
    • Jakob Stoklund Olesen's avatar
      Actually use the MachineOperand field for isRegTiedToDefOperand(). · 9fceda74
      Jakob Stoklund Olesen authored
      The MachineOperand::TiedTo field was maintained, but not used.
      
      This patch enables it in isRegTiedToDefOperand() and
      isRegTiedToUseOperand() which are the actual functions use by the
      register allocator.
      
      llvm-svn: 163153
      9fceda74
    • Jakob Stoklund Olesen's avatar
      Move tie checks into MachineVerifier::visitMachineOperand. · c7579cdd
      Jakob Stoklund Olesen authored
      llvm-svn: 163152
      c7579cdd
    • Jakob Stoklund Olesen's avatar
      Allow tied uses and defs in different orders. · 0a09da83
      Jakob Stoklund Olesen authored
      After much agonizing, use a full 4 bits of precious MachineOperand space
      to encode this. This uses existing padding, and doesn't grow
      MachineOperand beyond its current 32 bytes.
      
      This allows tied defs among the first 15 operands on a normal
      instruction, just like the current MCInstrDesc constraint encoding.
      Inline assembly needs to be able to tie more than the first 15 operands,
      and gets special treatment.
      
      Tied uses can appear beyond 15 operands, as long as they are tied to a
      def that's in range.
      
      llvm-svn: 163151
      0a09da83
    • Preston Gurd's avatar
      Generic Bypass Slow Div · cdf540d5
      Preston Gurd authored
      - CodeGenPrepare pass for identifying div/rem ops
      - Backend specifies the type mapping using addBypassSlowDivType
      - Enabled only for Intel Atom with O2 32-bit -> 8-bit
      - Replace IDIV with instructions which test its value and use DIVB if the value
      is positive and less than 256.
      - In the case when the quotient and remainder of a divide are used a DIV
      and a REM instruction will be present in the IR. In the non-Atom case
      they are both lowered to IDIVs and CSE removes the redundant IDIV instruction,
      using the quotient and remainder from the first IDIV. However,
      due to this optimization CSE is not able to eliminate redundant
      IDIV instructions because they are located in different basic blocks.
      This is overcome by calculating both the quotient (DIV) and remainder (REM)
      in each basic block that is inserted by the optimization and reusing the result
      values when a subsequent DIV or REM instruction uses the same operands.
      - Test cases check for the presents of the optimization when calculating
      either the quotient, remainder,  or both.
      
      Patch by Tyler Nowicki!
      
      llvm-svn: 163150
      cdf540d5
    • Joao Matos's avatar
      Revert r163083 per chandlerc's request. · 566359c0
      Joao Matos authored
      llvm-svn: 163149
      566359c0
    • Bob Wilson's avatar
      Make sure macros in the include subdirectory are not used without being defined. · d43a50d3
      Bob Wilson authored
      Rationale: For each preprocessor macro, either the definedness is what's
      meaningful, or the value is what's meaningful, or both. If definedness is
      meaningful, we should use #ifdef. If the value is meaningful, we should use
      and #ifdef interchangeably for the same macro, seems ugly to me, even if
      undefined macros are zero if used.
      
      This also has the benefit that including an LLVM header doesn't prevent
      you from compiling with -Wundef -Werror.
      
      Patch by John Garvin!
      <rdar://problem/12189979>
      
      llvm-svn: 163148
      d43a50d3
    • Joao Matos's avatar
      Revert r163099 per chandlerc's request. · f8c8bfc1
      Joao Matos authored
      llvm-svn: 163147
      f8c8bfc1
    • Joao Matos's avatar
      Revert r163076 per chandlerc's request. · 792d7afd
      Joao Matos authored
      llvm-svn: 163146
      792d7afd
    • Joao Matos's avatar
      Revert r163078 per chandlerc's request. · e30771fd
      Joao Matos authored
      llvm-svn: 163145
      e30771fd
    • Chad Rosier's avatar
      [ms-inline asm] The MCInstrDesc only tracks register definitions. For now, · dea7964d
      Chad Rosier authored
      assume that if the 1st operands is an expression and the instruction mayStore,
      then it is a memory definition.
      
      llvm-svn: 163144
      dea7964d
    • Chad Rosier's avatar
      [ms-inline asm] Fix an illegal index and an 80-column violation. · 74f3716b
      Chad Rosier authored
      llvm-svn: 163143
      74f3716b
  2. Sep 04, 2012
  3. Sep 03, 2012