1. May 18, 2013
    • Bill Wendling's avatar
      Merging r181600: · 337bb9ff
      Bill Wendling authored
      ------------------------------------------------------------------------
      r181600 | aaronballman | 2013-05-10 07:42:16 -0700 (Fri, 10 May 2013) | 1 line
      
      XFAILing this test on Win32 to unbreak the build bots.
      ------------------------------------------------------------------------
      
      llvm-svn: 182145
      337bb9ff
    • Bill Wendling's avatar
      Merging r182072: · ef5cf2ac
      Bill Wendling authored
      ------------------------------------------------------------------------
      
      llvm-svn: 182141
      ef5cf2ac
  2. May 17, 2013
    • Bill Wendling's avatar
      Merging r181465: · 2ad1df5e
      Bill Wendling authored
      ------------------------------------------------------------------------
      r181465 | rsmith | 2013-05-08 13:32:14 -0700 (Wed, 08 May 2013) | 2 lines
      
      Add missing triple to unit test.
      
      ------------------------------------------------------------------------
      
      llvm-svn: 182037
      2ad1df5e
  3. May 16, 2013
    • Bill Wendling's avatar
      Merging r181529: · c7897580
      Bill Wendling authored
      ------------------------------------------------------------------------
      r181529 | void | 2013-05-09 11:21:45 -0700 (Thu, 09 May 2013) | 8 lines
      
      Simplify the code a bit.
      
      The compact unwind registers were defined in two different
      places. It's better just to place them in the function that uses them
      and specify that this is a 64-bit or 32-bit machine.
      
      No functionality change.
      
      ------------------------------------------------------------------------
      
      llvm-svn: 181956
      c7897580
    • Bill Wendling's avatar
      Merging r181540: · a49a2c67
      Bill Wendling authored
      ------------------------------------------------------------------------
      r181540 | void | 2013-05-09 13:10:38 -0700 (Thu, 09 May 2013) | 11 lines
      
      Generate a compact unwind encoding in the face of a stack alignment push.
      
      We generate a `push' of a random register (%rax) if the stack needs to be
      aligned by the size of that register. However, this could mess up compact unwind
      generation. In particular, we want to still generate compact unwind in the
      presence of this monstrosity.
      
      Check if the push of of the %rax/%eax register. If it is and it's marked with
      the `FrameSetup' flag, then we can generate a compact unwind encoding for the
      function only if the push is the last FrameSetup instruction.
      
      ------------------------------------------------------------------------
      
      llvm-svn: 181955
      a49a2c67
    • Bill Wendling's avatar
      Merging r181580: · 311ad7b3
      Bill Wendling authored
      ------------------------------------------------------------------------
      r181580 | tstellar | 2013-05-09 19:09:45 -0700 (Thu, 09 May 2013) | 10 lines
      
      R600: Remove AMDILPeeopholeOptimizer and replace optimizations with tablegen patterns
      
      The BFE optimization was the only one we were actually using, and it was
      emitting an intrinsic that we don't support.
      
      https://bugs.freedesktop.org/show_bug.cgi?id=64201
      
      
      
      Reviewed-by: default avatarChristian König <christian.koenig@amd.com>
      
      NOTE: This is a candidate for the 3.3 branch.
      ------------------------------------------------------------------------
      
      llvm-svn: 181954
      311ad7b3
    • Bill Wendling's avatar
      Merging r181579: · e091abc2
      Bill Wendling authored
      
      ------------------------------------------------------------------------
      r181579 | tstellar | 2013-05-09 19:09:39 -0700 (Thu, 09 May 2013) | 8 lines
      
      R600: Expand SUB for v2i32/v4i32
      
      Patch by: Aaron Watry
      
      Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
      Signed-off-by: default avatarAaron Watry <awatry@gmail.com>
      
      NOTE: This is a candidate for the 3.3 branch.
      ------------------------------------------------------------------------
      
      llvm-svn: 181953
      e091abc2
    • Bill Wendling's avatar
      Merging r181578: · a3cbd600
      Bill Wendling authored
      
      ------------------------------------------------------------------------
      r181578 | tstellar | 2013-05-09 19:09:34 -0700 (Thu, 09 May 2013) | 10 lines
      
      R600: Expand MUL for v4i32/v2i32
      
      Fixes piglit test for OpenCL builtin mul24, and allows mad24 to run.
      
      Patch by: Aaron Watry
      
      Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
      Signed-off-by: default avatarAaron Watry <awatry@gmail.com>
      
      NOTE: This is a candidate for the 3.3 branch.
      ------------------------------------------------------------------------
      
      llvm-svn: 181952
      a3cbd600
    • Bill Wendling's avatar
      Merging r181577: · 7413960f
      Bill Wendling authored
      
      ------------------------------------------------------------------------
      r181577 | tstellar | 2013-05-09 19:09:29 -0700 (Thu, 09 May 2013) | 10 lines
      
      R600: Expand SRA for v4i32/v2i32
      
      v2: Add v4i32 test
      
      Patch by: Aaron Watry
      
      Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
      Signed-off-by: default avatarAaron Watry <awatry@gmail.com>
      
      NOTE: This is a candidate for the 3.3 branch.
      ------------------------------------------------------------------------
      
      llvm-svn: 181951
      7413960f
    • Bill Wendling's avatar
      Merging r181576: · 3ffe0d57
      Bill Wendling authored
      
      ------------------------------------------------------------------------
      r181576 | tstellar | 2013-05-09 19:09:24 -0700 (Thu, 09 May 2013) | 10 lines
      
      R600: Expand vselect for v4i32 and v2i32
      
      v2: Add vselect v4i32 test
      
      Patch by: Aaron Watry
      
      Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
      Signed-off-by: default avatarAaron Watry <awatry@gmail.com>
      
      NOTE: This is a candidate for the 3.3 branch.
      ------------------------------------------------------------------------
      
      llvm-svn: 181950
      3ffe0d57
    • Bill Wendling's avatar
      Merging r181792: · 61b15554
      Bill Wendling authored
      
      ------------------------------------------------------------------------
      r181792 | tstellar | 2013-05-14 07:42:56 -0700 (Tue, 14 May 2013) | 8 lines
      
      R600/SI: Add processor type for Hainan asic
      
      Patch by: Alex Deucher
      
      Reviewed-by: default avatarTom Stellard <thomas.stellard@amd.com>
      Signed-off-by: default avatarAlex Deucher <alexander.deucher@amd.com>
      
      NOTE: This is a candidate for the 3.3 branch.
      ------------------------------------------------------------------------
      
      llvm-svn: 181949
      61b15554
    • Bill Wendling's avatar
      Merging r181842: · a0519619
      Bill Wendling authored
      ------------------------------------------------------------------------
      r181842 | arnolds | 2013-05-14 15:33:24 -0700 (Tue, 14 May 2013) | 14 lines
      
      ARM ISel: Don't create illegal types during LowerMUL
      
      The transformation happening here is that we want to turn a
      "mul(ext(X), ext(X))" into a "vmull(X, X)", stripping off the extension. We have
      to make sure that X still has a valid vector type - possibly recreate an
      extension to a smaller type. In case of a extload of a memory type smaller than
      64 bit we used create a ext(load()). The problem with doing this - instead of
      recreating an extload - is that an illegal type is exposed.
      
      This patch fixes this by creating extloads instead of ext(load()) sequences.
      
      Fixes PR15970.
      
      radar://13871383
      ------------------------------------------------------------------------
      
      llvm-svn: 181946
      a0519619
    • Bill Wendling's avatar
      Creating release_33 branch · 30ed6cc4
      Bill Wendling authored
      llvm-svn: 181929
      llvm-svn: 181928
      30ed6cc4
    • Hal Finkel's avatar
      Implement PPC counter loops as a late IR-level pass · 25c1992b
      Hal Finkel authored
      The old PPCCTRLoops pass, like the Hexagon pass version from which it was
      derived, could only handle some simple loops in canonical form. We cannot
      directly adapt the new Hexagon hardware loops pass, however, because the
      Hexagon pass contains a fundamental assumption that non-constant-trip-count
      loops will contain a guard, and this is not always true (the result being that
      incorrect negative counts can be generated). With this commit, we replace the
      pass with a late IR-level pass which makes use of SE to calculate the
      backedge-taken counts and safely generate the loop-count expressions (including
      any necessary max() parts). This IR level pass inserts custom intrinsics that
      are lowered into the desired decrement-and-branch instructions.
      
      The most fragile part of this new implementation is that interfering uses of
      the counter register must be detected on the IR level (and, on PPC, this also
      includes any indirect branches in addition to function calls). Also, to make
      all of this work, we need a variant of the mtctr instruction that is marked
      as having side effects. Without this, machine-code level CSE, DCE, etc.
      illegally transform the resulting code. Hopefully, this can be improved
      in the future.
      
      This new pass is smaller than the original (and much smaller than the new
      Hexagon hardware loops pass), and can handle many additional cases correctly.
      In addition, the preheader-creation code has been copied from LoopSimplify, and
      after we decide on where it belongs, this code will be refactored so that it
      can be explicitly shared (making this implementation even smaller).
      
      The new test-case files ctrloop-{le,lt,ne}.ll have been adapted from tests for
      the new Hexagon pass. There are a few classes of loops that this pass does not
      transform (noted by FIXMEs in the files), but these deficiencies can be
      addressed within the SE infrastructure (thus helping many other passes as well).
      
      llvm-svn: 181927
      25c1992b
    • Hal Finkel's avatar
      Fix legalization of SETCC with promoted integer intrinsics · 1f6a7f53
      Hal Finkel authored
      If the input operands to SETCC are promoted, we need to make sure that we
      either use the promoted form of both operands (or neither); a mixture is not
      allowed. This can happen, for example, if a target has a custom promoted
      i1-returning intrinsic (where i1 is not a legal type). In this case, we need to
      use the promoted form of both operands.
      
      This change only augments the behavior of the existing logic in the case where
      the input types (which may or may not have already been legalized) disagree,
      and should not affect existing target code because this case would otherwise
      cause an assert in the SETCC operand promotion code.
      
      This will be covered by (essentially all of the) tests for the new PPCCTRLoops
      infrastructure.
      
      llvm-svn: 181926
      1f6a7f53
    • Bill Wendling's avatar
      Add lldb and polly to the projects to tag. · c6e238c6
      Bill Wendling authored
      llvm-svn: 181925
      c6e238c6
    • Bill Wendling's avatar
      Try to improve performance by using a read/write buffer instead of I/O. · c0540866
      Bill Wendling authored
      The calls to fwrite/fread can be very expensive. GCC avoids this by using a
      buffer to read and write from the file, thus limiting the number of fwrite/fread
      calls.
      
      <rdar://problem/13466086>
      
      llvm-svn: 181924
      c0540866
    • Derek Schuff's avatar
      Fix miscompile due to StackColoring incorrectly merging stack slots (PR15707) · d2c42d76
      Derek Schuff authored
      IR optimisation passes can result in a basic block that contains:
      
        llvm.lifetime.start(%buf)
        ...
        llvm.lifetime.end(%buf)
        ...
        llvm.lifetime.start(%buf)
      
      Before this change, calculateLiveIntervals() was ignoring the second
      lifetime.start() and was regarding %buf as being dead from the
      lifetime.end() through to the end of the basic block.  This can cause
      StackColoring to incorrectly merge %buf with another stack slot.
      
      Fix by removing the incorrect Starts[pos].isValid() and
      Finishes[pos].isValid() checks.
      
      Just doing:
            Starts[pos] = Indexes->getMBBStartIdx(MBB);
            Finishes[pos] = Indexes->getMBBEndIdx(MBB);
      unconditionally would be enough to fix the bug, but it causes some
      test failures due to stack slots not being merged when they were
      before.  So, in order to keep the existing tests passing, treat LiveIn
      and LiveOut separately rather than approximating the live ranges by
      merging LiveIn and LiveOut.
      
      This fixes PR15707.
      Patch by Mark Seaborn.
      
      llvm-svn: 181922
      d2c42d76
    • Bill Wendling's avatar
      Merging r181909: · bcfc4ccc
      Bill Wendling authored
      ------------------------------------------------------------------------
      
      llvm-svn: 181921
      bcfc4ccc
    • Bill Wendling's avatar
      Merging r181750: · fcb02eb0
      Bill Wendling authored
      ------------------------------------------------------------------------
      r181750 | rafael | 2013-05-13 17:44:24 -0700 (Mon, 13 May 2013) | 4 lines
      
      Use atomic instructions on linux thumb v7.
      
      This matches gcc's behaviour. The patch also explicitly parses the version so
      that this keeps working when we add support for v8.
      ------------------------------------------------------------------------
      
      llvm-svn: 181920
      fcb02eb0
    • Bill Wendling's avatar
      Merging r181728: · 27ecc870
      Bill Wendling authored
      ------------------------------------------------------------------------
      r181728 | rafael | 2013-05-13 13:09:47 -0700 (Mon, 13 May 2013) | 6 lines
      
      Use atomic instructions on ARM linux.
      
      This is safe given how the pre-v6 atomic ops funcions in libgcc are
      implemented.
      
      This fixes pr15429.
      ------------------------------------------------------------------------
      
      llvm-svn: 181919
      27ecc870
    • Ashok Thirumurthi's avatar
      Fixed an xpass due to r181841 on Linux with gcc. Note that the clang variant... · 863bd4a5
      Ashok Thirumurthi authored
      Fixed an xpass due to r181841 on Linux with gcc.  Note that the clang variant contains to xfail, and r181841 is a fix for the test.
      
      llvm-svn: 181918
      863bd4a5
    • Greg Clayton's avatar
      <rdar://problem/13128331> · 9aae0a13
      Greg Clayton authored
      Fixed "target symbols add" to correctly extract all module specifications from a dSYM file that is supplied and match the symbol file to a current target module using the UUID values if they are available.
      
      This fixes the case where you add a dSYM file (like "foo.dSYM") which is for a renamed executable (like "bar"). In our case it was "mach_kernel.dSYM" which didn't match "mach_kernel.sys". 
      
      llvm-svn: 181916
      9aae0a13
    • Samuel Benzaquen's avatar
      Test commit · a76d8cd0
      Samuel Benzaquen authored
      llvm-svn: 181915
      a76d8cd0
    • Fariborz Jahanian's avatar
      Objective-C: patch to issue the conversion · 2cb4a957
      Fariborz Jahanian authored
      warning when property-dot syntax is used
      with -Wsign-conversion. // rdar://13855394
      
      llvm-svn: 181914
      2cb4a957
    • Daniel Malea's avatar
      Clean up linux test decorators and add links to known bugs · e8bdd1f5
      Daniel Malea authored
      - s/skipOnLinux/skipIfLinux/ to match style of every other decorator
      - linkify bugizilla/PR numbers in comments
      
      No intended change in functionality.
      
      llvm-svn: 181913
      e8bdd1f5
    • Jim Ingham's avatar
      Fixed a few obvious errors pointed out by the static analyzer. · 5c42d8a8
      Jim Ingham authored
      llvm-svn: 181911
      5c42d8a8
    • Rafael Espindola's avatar
      Cleanup relocation sorting for ELF. · 0f2a6fe6
      Rafael Espindola authored
      We want the order to be deterministic on all platforms. NAKAMURA Takumi
      fixed that in r181864. This patch is just two small cleanups:
      
      * Move the function to the cpp file. It is only passed to array_pod_sort.
      * Remove the ppc implementation which is now redundant
      
      llvm-svn: 181910
      0f2a6fe6
    • Bill Wendling's avatar
      Merging r181524: · 30a989de
      Bill Wendling authored
      ------------------------------------------------------------------------
      r181524 | rafael | 2013-05-09 10:22:59 -0700 (Thu, 09 May 2013) | 4 lines
      
      Don't replace an alias in llvm.used with its target.
      
      When we replace an internal alias with its target, be careful not to
      replace the entry in llvm.used (and llvm.compiler_used).
      ------------------------------------------------------------------------
      
      llvm-svn: 181909
      30a989de
    • Jordan Rose's avatar
      [analyzer] Put back DefaultBool's implicit conversion to bool. · 51918841
      Jordan Rose authored
      DefaultBool is basically just "bool with a default constructor", so it
      really should implicitly convert to bool. In fact, it should convert to
      bool&, so that it could be passed to functions that take bools by reference.
      
      This time, mark the operator bool& as implicit to promise that it's
      deliberate.
      
      llvm-svn: 181908
      51918841
    • NAKAMURA Takumi's avatar
      PPCISelLowering.h: Escape \@ in comments. [-Wdocumentation] · dc9f013a
      NAKAMURA Takumi authored
      llvm-svn: 181907
      dc9f013a
    • NAKAMURA Takumi's avatar
      Whitespace. · dcc66456
      NAKAMURA Takumi authored
      llvm-svn: 181906
      dcc66456
    • Daniel Malea's avatar
      Re-enable tests disabled due to llvm.org/pr14541 · 243b379a
      Daniel Malea authored
      - "platform process list" command works on Linux now
      - "process attach -n" (attach to process by name also works on Linux now)
      
      llvm-svn: 181905
      243b379a
    • Daniel Malea's avatar
      Implement "platform process list" on Linux · 25d7eb0d
      Daniel Malea authored
      - read process information from /proc
      - resolves llvm.org/pr14541 :)
      
      Patch by Mike Sartain!
      
      llvm-svn: 181904
      25d7eb0d
    • Daniel Malea's avatar
      Revert r181833: lldb prompt issue still occurs on buildbot... · 5cb6ea08
      Daniel Malea authored
      Revert r181833: lldb prompt issue still occurs on buildbot (http://lab.llvm.org:8011/builders/lldb-x86_64-linux/builds/4124)
      - maybe consider checking in the 'good' version of libedit to avoid ancient system version
      
      llvm-svn: 181903
      5cb6ea08
    • Daniel Malea's avatar
      Disable test case that causes assertion failure on Linux · 0a693d9d
      Daniel Malea authored
      - filed llvm.org/pr16016
      - fixed URL for llvm.org/pr16000
      
      llvm-svn: 181902
      0a693d9d
    • Michael Gottesman's avatar
      [objc-arc] Fixed a spelling error and made the statistic descriptions be... · b4e7f4d8
      Michael Gottesman authored
      [objc-arc] Fixed a spelling error and made the statistic descriptions be consistent about their usage of periods.
      
      llvm-svn: 181901
      b4e7f4d8
    • Douglas Gregor's avatar
      Add missing #include · 5a4cba0b
      Douglas Gregor authored
      llvm-svn: 181900
      5a4cba0b
    • Daniel Malea's avatar
      Fix cmake builds from checkouts with multiple remotes · e3a0a6ec
      Daniel Malea authored
      - newlines from GetRepositoryPath output were interfering with ninja builds
      - replace newlines with spaces
      - remove *only* trailing spaces from repo path
      
      llvm-svn: 181899
      e3a0a6ec
    • Derek Schuff's avatar
      Support unaligned load/store on more ARM targets · 72ddaba7
      Derek Schuff authored
      This patch matches GCC behavior: the code used to only allow unaligned
      load/store on ARM for v6+ Darwin, it will now allow unaligned load/store for
      v6+ Darwin as well as for v7+ on other targets.
      
      The distinction is made because v6 doesn't guarantee support (but LLVM assumes
      that Apple controls hardware+kernel and therefore have conformant v6 CPUs),
      whereas v7 does provide this guarantee (and Linux behaves sanely).
      
      Overall this should slightly improve performance in most cases because of
      reduced I$ pressure.
      
      Patch by JF Bastien
      
      llvm-svn: 181897
      72ddaba7