1. Jul 12, 2015
    • Simon Pilgrim's avatar
      Trim trailing whitespaces. NFC. · ae5cd277
      Simon Pilgrim authored
      llvm-svn: 241990
      ae5cd277
    • Simon Pilgrim's avatar
      [X86][SSE] Vectorized v4i32 non-uniform shifts. · 64cc4ad0
      Simon Pilgrim authored
      While the v4i32 shl operation is already vectorized using a cvttps2dq/pmulld pattern, the lshr/ashr opeations are still scalarized.
      
      This patch adds vectorization support for non-uniform v4i32 shift operations - it splats constant shift amounts to allow them to use the immediate sse shift instructions, or extracts/zero-extends non-constant shift amounts. The individual results are then blended together.
      
      Differential Revision: http://reviews.llvm.org/D11063
      
      llvm-svn: 241989
      64cc4ad0
    • Nico Weber's avatar
      elf: Make error output from AtomSection<ELFT>::write() deterministic. · d08eca01
      Nico Weber authored
      The function uses parallel_for() and then writes error messages from the
      parallel loop's body.  This produces nondetermistic error messages.  Instead,
      copy error messages to a vector and sort it by the atom's file offsets before
      printing all error messages after the parallel_for().  This results in a few
      string copies, but only in the error case.  (And passing tests seem more
      important than performance.)
      
      This makes tests elf/AArch64/rel-prel16-overflow.test and
      elf/AArch64/rel-prel32-overflow.test pass on Windows: Both tests check that
      atom error messages are emitted in a certain order, and on Windows they
      happened to be emitted in a different order before this patch.
      
      llvm-svn: 241988
      d08eca01
    • David Majnemer's avatar
      [LICM] Don't try to sink values out of loops without any exits · 6bc83e0f
      David Majnemer authored
      There is no suitable basic block to sink instructions in loops without
      exits.  The only way an instruction in a loop without exits can be used
      is as an incoming value to a PHI.  In such cases, the incoming block for
      the corresponding value is unreachable.
      
      This fixes PR24013.
      
      Differential Revision: http://reviews.llvm.org/D10903
      
      llvm-svn: 241987
      6bc83e0f
    • Birunthan Mohanathas's avatar
      clang-format: Add Mozilla brace breaking style · 305fa9c2
      Birunthan Mohanathas authored
      Differential Revision: http://reviews.llvm.org/D10883
      
      llvm-svn: 241986
      305fa9c2
    • Hal Finkel's avatar
      [PowerPC] Make use of the TargetRecip system · cbf08925
      Hal Finkel authored
      r238842 added the TargetRecip system for controlling use of reciprocal
      estimates for sqrt and division using a set of parameters that can be set by
      the frontend. Clang now supports a sophisticated -mrecip option, and this will
      allow that option to effectively control the relevant code-generation
      functionality of the PPC backend.
      
      llvm-svn: 241985
      cbf08925
    • Hal Finkel's avatar
      [PowerPC] Support the nest parameter attribute · 965cea56
      Hal Finkel authored
      This adds support for the 'nest' attribute, which allows the static chain
      register to be set for functions calls under non-Darwin PPC/PPC64 targets. r11
      is the chain register (which the PPC64 ELF ABI calls the "environment
      pointer"). For indirect calls under PPC64 ELFv1, this would normally be loaded
      from the function descriptor, but providing an explicit 'nest' parameter will
      override that process and use the value provided.
      
      This allows __builtin_call_with_static_chain to work as expected on PowerPC.
      
      llvm-svn: 241984
      965cea56
  2. Jul 11, 2015