1. Mar 23, 2013
  2. Mar 22, 2013
    • Michel Danzer's avatar
      R600: Fix up test/CodeGen/R600/llvm.pow.ll for r177730 · 3de8ae38
      Michel Danzer authored
      llvm-svn: 177736
      3de8ae38
    • Ulrich Weigand's avatar
      Remove ABI-duplicated call instruction patterns. · f62e83f4
      Ulrich Weigand authored
      We currently have a duplicated set of call instruction patterns depending
      on the ABI to be followed (Darwin vs. Linux).  This is a bit odd; while the
      different ABIs will result in different instruction sequences, the actual
      instructions themselves ought to be independent of the ABI.  And in fact it
      turns out that the only nontrivial difference between the two sets of
      patterns is that in the PPC64 Linux ABI, the instruction used for indirect
      calls is marked to take X11 as extra input register (which is indeed used
      only with that ABI to hold an incoming environment pointer for nested
      functions).  However, this does not need to be hard-coded at the .td
      pattern level; instead, the C++ code expanding calls can simply add that
      use, just like it adds uses for argument registers anyway.
      
      No change in generated code expected.
      
      llvm-svn: 177735
      f62e83f4
    • Ulrich Weigand's avatar
      Rename memrr ptrreg and offreg components. · 1df06d8b
      Ulrich Weigand authored
      Currently, the sub-operand of a memrr address that corresponds to what
      hardware considers the base register is called "offreg", while the
      sub-operand that corresponds to the offset is called "ptrreg".
      
      To avoid confusion, this patch simply swaps the named of those two
      sub-operands and updates all uses.  No functional change is intended.
      
      llvm-svn: 177734
      1df06d8b
    • Ulrich Weigand's avatar
      Fix swapped BasePtr and Offset in pre-inc memory addresses. · e90b0224
      Ulrich Weigand authored
      PPCTargetLowering::getPreIndexedAddressParts currently provides
      the base part of a memory address in the offset result, and the
      offset part in the base result.  That swap is then undone again
      when an MI instruction is generated (in PPCDAGToDAGISel::Select
      for loads, and using .md Pat patterns for stores).
      
      This patch reverts this double swap, to make common code and
      back-end be in sync as to which part of the address is base
      and which is offset.
      
      To avoid performance regressions in certain cases, target code
      now checks whether the choice of base register would be rejected
      for pre-inc accesses by common code, and attempts to swap base
      and offset again in such cases.  (Overall, this means that now
      pre-ice accesses are generated *more* frequently than before.)
      
      llvm-svn: 177733
      e90b0224
    • Ulrich Weigand's avatar
      Tighten iaddroff ComplexPattern. · d1b99d35
      Ulrich Weigand authored
      The iaddroff ComplexPattern is supposed to recognize displacement
      expressions that have been processed by a SelectAddressRegImm,
      which means it needs to accept TargetConstant and TargetGlobalAddress
      nodes.  Currently, it erroneously also accepts some other nodes,
      in particular Constant and PPCISD::Lo.
      
      While this problem is currently latent, it would cause wrong-code
      bugs with a follow-on patch I'm about to commit, so this patch
      tightens the ComplexPattern.  The equivalent change is made in
      PPCDAGToDAGISel::Select, where pre-inc load patterns are handled
      (as opposed to store patterns, the loads are handled in C++ code
      without making use of the .td ComplexPattern).
      
      llvm-svn: 177732
      d1b99d35
    • Ulrich Weigand's avatar
      Remove the xaddroff ComplexPattern. · e448badb
      Ulrich Weigand authored
      The xaddroff pattern is currently (mistakenly) used to recognize
      the *base* register in pre-inc store patterns.  This patch replaces
      those uses by ptr_rc_nor0 (as is elsewhere done to match the base
      register of an address), and removes the now unused ComplexPattern.
      
      llvm-svn: 177731
      e448badb
    • Michel Danzer's avatar
      R600: Use legacy (0 * anything = 0) MUL instructions for pow intrinsics · a2e28156
      Michel Danzer authored
      Fixes wrong lighting in some corner cases with r600g and radeonsi, e.g.
      manifested by failure of two piglit/glean tests and intermittent black
      patches in many apps.
      
      Tested on SI and RS880.
      
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=62012 [radeonsi]
      Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=58150
      
       [r600g]
      
      NOTE: This is a candidate for the Mesa stable branch.
      
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      llvm-svn: 177730
      a2e28156
    • Daniel Jasper's avatar
      Update docs after moving clang-format from clang-tools-extra to cfe. · 41723757
      Daniel Jasper authored
      llvm-svn: 177729
      41723757