1. Oct 15, 2014
    • Jan Vesely's avatar
      R600: Add new intrinsic to read work dimensions · 86187d23
      Jan Vesely authored
      
      
      v2: Add SI lowering
          Add test
      
      v3: Place work dimensions after the kernel arguments.
      v4: Calculate offset while lowering arguments
      v5: rebase
      v6: change prefix to AMDGPU
      
      Reviewed-by: default avatarTom Stellard <tom@stellard.net>
      Signed-off-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
      llvm-svn: 219705
      86187d23
    • Jan Vesely's avatar
      R600: FMA is VecALU only instruction · df196963
      Jan Vesely authored
      
      
      Reviewed-by: default avatarTom Stellard <tom@stellard.net>
      Signed-off-by: default avatarJan Vesely <jan.vesely@rutgers.edu>
      llvm-svn: 219704
      df196963
    • Reed Kotler's avatar
      Finish getting Mips fast-isel to match up with AArch64 fast-isel · d4ea29e6
      Reed Kotler authored
      Summary:
      In order to facilitate use of common code, checking by reviewers of other fast-isel ports, and hopefully to eventually move most of Mips and other fast-isel ports into target independent code, I've tried to get the two implementations to line up.
      
      There is no functional code change. Just methods moved in the file to be in the same order as in AArch64.
      
      Test Plan: No functional change.
      
      Reviewers: dsanders
      
      Reviewed By: dsanders
      
      Subscribers: llvm-commits, aemerson, rfuhler
      
      Differential Revision: http://reviews.llvm.org/D5692
      
      llvm-svn: 219703
      d4ea29e6
    • David Blaikie's avatar
      DebugInfo: Ensure that all debug location scope chains from instructions... · 3dfe4788
      David Blaikie authored
      DebugInfo: Ensure that all debug location scope chains from instructions within a function, lead to the function itself.
      
      Let me tell you a tale...
      
      Originally committed in r211723 after discovering a nasty case of weird
      scoping due to inlining, this was reverted in r211724 after it fired in
      ASan/compiler-rt.
      
      (minor diversion where I accidentally committed/reverted again in
      r211871/r211873)
      
      After further testing and fixing bugs in ArgumentPromotion (r211872) and
      Inlining (r212065) it was recommitted in r212085. Reverted in r212089
      after the sanitizer buildbots still showed problems.
      
      Fixed another bug in ArgumentPromotion (r212128) found by this
      assertion.
      
      Recommitted in r212205, reverted in r212226 after it crashed some more
      on sanitizer buildbots.
      
      Fix clang some more in r212761.
      
      Recommitted in r212776, reverted in r212793. ASan failures.
      Recommitted in r213391, reverted in r213432, trying to reproduce flakey
      ASan build failure.
      
      Fixed bugs in r213805 (ArgPromo + DebugInfo), r213952
      (LiveDebugVariables strips dbg_value intrinsics in functions not
      described by debug info).
      
      Recommitted in r214761, reverted in r214999, flakey failure on Windows
      buildbot.
      
      Fixed DeadArgElimination + DebugInfo bug in r219210.
      
      Recommitted in r219215, reverted in r219512, failure on ObjC++ atomic
      properties in the test-suite on Darwin.
      
      Fixed ObjC++ atomic properties issue in Clang in r219690.
      
      [This commit is provided 'as is' with no hope that this is the last time
      I commit this change either expressed or implied]
      
      llvm-svn: 219702
      3dfe4788
    • Ed Maste's avatar
      Skip asan test on FreeBSD · c08a5632
      Ed Maste authored
      The build fails due to missing asan runtime in the FreeBSD base system.
      Instead of marking it expected fail, just skip until we have the runtime
      available.
      
      llvm.org/pr21136
      
      llvm-svn: 219701
      c08a5632
    • Rafael Espindola's avatar
      Remove method that is identical to the base class one. · c5747791
      Rafael Espindola authored
      llvm-svn: 219700
      c5747791
    • Alexey Samsonov's avatar
      [UBSan] XFAIL test added in r219642 on Darwin · 37efdf00
      Alexey Samsonov authored
      llvm-svn: 219699
      37efdf00
    • Matt Arsenault's avatar
      R600/SI: Use DS offsets for constant addresses · e775f5fe
      Matt Arsenault authored
      Use 0 as the base address for a constant address, so if
      we have a constant address we can save moves and form
      read2/write2s.
      
      llvm-svn: 219698
      e775f5fe
    • Saleem Abdulrasool's avatar
      CodeGen: correct block mangling in ObjC · 3b434476
      Saleem Abdulrasool authored
      Mangling for blocks defined within blocks in an ObjectiveC context were also
      broken by SVN r219393.  Because the code in mangleName assumed that the code was
      either C or C++, we would trigger assertions when trying to mangle the inner
      blocks in an ObjectiveC context.
      
      Add a test and use the ObjectiveC specific mangling when dealing with an
      ObjectiveC method declaration.
      
      llvm-svn: 219697
      3b434476
    • Saleem Abdulrasool's avatar
      CodeGen: correct mangling for blocks · 64ab4de4
      Saleem Abdulrasool authored
      This addresses a regression introduced with SVN r219393.  A block may be
      contained within another block.  In such a scenario, we would end up within a
      BlockDecl, which is not a NamedDecl (as the names are synthesised).  The cast to
      a NamedDecl of the DeclContext would then assert as the types are unrelated.
      
      Restore the mangling behaviour to that prior to SVN r219393.  If the current
      block is contained within a BlockDecl, walk up to the parent DeclContext,
      recursively, until we have a non-BlockDecl.  This is expected to be a NamedDecl.
      Add in a couple of asserts to ensure that the assumption that we only encounter
      a block within a NamedDecl or a BlockDecl.
      
      llvm-svn: 219696
      64ab4de4
    • David Blaikie's avatar
      Revert "Fix stuff... again." · 24026502
      David Blaikie authored
      Accidental commit.
      
      This reverts commit r219693.
      
      llvm-svn: 219695
      24026502
    • David Blaikie's avatar
      Revert some parts of r196288 that were confusing and untested. · e75f963c
      David Blaikie authored
      If we figure out why they should be here, let's add some testing of some
      kind so we can better demonstrate why it's needed.
      
      llvm-svn: 219694
      e75f963c
    • David Blaikie's avatar
      Fix stuff... again. · 27549023
      David Blaikie authored
      llvm-svn: 219693
      27549023
    • David Blaikie's avatar
      Formatting for prior commit · 8e90d221
      David Blaikie authored
      llvm-svn: 219692
      8e90d221
    • Ulrich Weigand's avatar
      [SystemZ] Address review comments for r219679 · 804a3e65
      Ulrich Weigand authored
      llvm-svn: 219691
      804a3e65
    • David Blaikie's avatar
      DebugInfo: Don't leak location information from one function into the prologue... · 8e6c36eb
      David Blaikie authored
      DebugInfo: Don't leak location information from one function into the prologue of the next function.
      
      CodeGenFunction objects aren't really designed to be reused for more
      than one function, and doing so can leak debug info location information
      from one function into the prologue of the next.
      
      Add an assertion in to catch reuses of CodeGenFunction, which
      surprisingly only caught the ObjC atomic getter/setter cases. Fix those
      and add a test to demonstrate the issue.
      
      The test is a bit slim, because we're just testing for the absence of a
      debug location on the prologue instructions, which by itself probably
      wouldn't be the end of the world - but the particular debug location
      that was ending up there was for the previous function's last
      instruction. This produced debug info for another function within this
      function, which is something I'm trying to remove all cases of as its a
      substantial source of bugs, especially around inlining (see r219215).
      
      llvm-svn: 219690
      8e6c36eb
    • Todd Fiala's avatar
      Fix dotest.py test runner exit code to return non-zero on failure/error. · d7e27eac
      Todd Fiala authored
      This addresses this bug:
      http://www.llvm.org/bugs/show_bug.cgi?id=21267
      
      Which has been broken since svn r215256 on Aug 8 2014.
      
      DO NOT REVERT THIS COMMIT EVEN IF IT CREATES TEST FAILURES.
      
      The test failures are a result of accumulation of hidden failures
      that were masked by the bug this change fixes.  Most of our test
      runners as part of build testing rely on dotest.py returning non-zero to indicate
      some kind of errant test run.  Thus, we have been flying blind
      since Aug 8 2014.
      
      llvm-svn: 219689
      d7e27eac
    • Hal Finkel's avatar
      [LVI] Check for @llvm.assume dominating the edge branch · a3f23e37
      Hal Finkel authored
      When LazyValueInfo uses @llvm.assume intrinsics to provide edge-value
      constraints, we should check for intrinsics that dominate the edge's branch,
      not just any potential context instructions. An assumption that dominates the
      edge's branch represents a truth on that edge. This is specifically useful, for
      example, if multiple predecessors assume a pointer to be nonnull, allowing us
      to simplify a later null comparison.
      
      The test case, and an initial patch, were provided by Philip Reames. Thanks!
      
      llvm-svn: 219688
      a3f23e37
  2. Oct 14, 2014