1. Nov 07, 2015
    • Matt Arsenault's avatar
      AMDGPU: Create emergency stack slots during frame lowering · 0c90e950
      Matt Arsenault authored
      Test has a bogus verifier error which will be fixed by later commits.
      
      llvm-svn: 252327
      0c90e950
    • Zachary Turner's avatar
      Don't use module internal implementation details in our decorators. · 5cb8e67b
      Zachary Turner authored
      We tried implementing something akin to a conditionalExpectedFailure
      decorator for unittest2.  We did this by making use of some
      implementation details of the unittest2 module.  In an effort to make
      this work with unittest, this patch removes the reliance on the
      implementation details.  I have a hard time wrapping my head around
      how this all works with the deeply nested decorators, but the spirit
      of the patch here is to do do the following: If the condition function
      is true, use the original unittest2.expectedFailure decorator.  Otherwise
      don't use any decorator, just call the test function.
      
      Differential Revision: http://reviews.llvm.org/D14406
      Reviewed By: tberghammer, labath
      
      llvm-svn: 252326
      5cb8e67b
    • Zachary Turner's avatar
      Make Windows always use multiprocessing-pool. · f0c3f68e
      Zachary Turner authored
      We still see "Too many file handles" errors on Windows even with
      lower numbers of cores.  It's not clear what the right balance is,
      and the bar seems to move as more tests get added.  So just use
      the strategy that works until we can investigate more deeply.
      
      llvm-svn: 252325
      f0c3f68e
    • Matt Arsenault's avatar
      AMDGPU: Remove unused scratch resource operands · 08f14de2
      Matt Arsenault authored
      The SGPR spill pseudos don't actually use them.
      
      llvm-svn: 252324
      08f14de2
    • Matt Arsenault's avatar
      AMDGPU: Add pass to detect used kernel features · 3931948b
      Matt Arsenault authored
      Mark kernels that use certain features that require user
      SGPRs to support with kernel attributes. We need to know
      before instruction selection begins because it impacts
      the kernel calling convention lowering.
      
      For now this only detects the workitem intrinsics.
      
      llvm-svn: 252323
      3931948b
    • Matt Arsenault's avatar
      AMDGPU: Fix hardcoded alignment of spill. · 4dc7a5a5
      Matt Arsenault authored
      Instead of forcing 4 alignment when spilled, set register class
      alignments.
      
      llvm-svn: 252322
      4dc7a5a5
    • Matt Arsenault's avatar
      AMDGPU: Hack for VS_32 register pressure · 623e6fd4
      Matt Arsenault authored
      For some reason VS_32 ends up factoring into the pressure heuristics
      even though we should never see a virtual register with this class.
      
      When SGPRs are reserved for register spilling, this for some reason
      triggers reg-crit scheduling.
      
      Setting isAllocatable = 0 may help with this since that seems to remove
      it from the default implementation's generated table.
      
      llvm-svn: 252321
      623e6fd4
    • Teresa Johnson's avatar
      Restore "Move metadata linking after lazy global materialization/linking." · 1063293a
      Teresa Johnson authored
      Summary:
      This reverts commit r251965.
      
      Restore "Move metadata linking after lazy global materialization/linking."
      
      This restores commit r251926, with fixes for the LTO bootstrapping bot
      failure.
      
      The bot failure was caused by references from debug metadata to
      otherwise unreferenced globals. Previously, this caused the lazy linking
      to link in their defs, which is unnecessary. With this patch, because
      lazy linking is complete when we encounter the metadata reference, the
      materializer created a declaration. For definitions such as aliases and
      comdats, it is illegal to have a declaration. Furthermore, metadata
      linking should not change code generation. Therefore, when linking of
      global value bodies is complete, the materializer will simply return
      nullptr as the new reference for the linked metadata.
      
      This change required fixing a different test to ensure there was a
      real reference to a linkonce global that was only being reference from
      metadata.
      
      Note that the new changes to the only-needed-named-metadata.ll test
      illustrate an issue with llvm-link -only-needed handling of comdat
      groups, whereby it may result in an incomplete comdat group. I note this
      in the test comments, but the issue is orthogonal to this patch (it can
      be reproduced without any metadata at head).
      
      Reviewers: dexonsmith, rafael, tra
      
      Subscribers: tobiasvk, joker.eph, llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D14447
      
      llvm-svn: 252320
      1063293a
    • Teresa Johnson's avatar
      Restore "Move metadata linking after lazy global materialization/linking." · 189b2526
      Teresa Johnson authored
      This reverts commit r251965.
      
      llvm-svn: 252319
      189b2526
    • Reid Kleckner's avatar
      [WinEH] Mark funclet entries and exits as clobbering all registers · b8fd162f
      Reid Kleckner authored
      Summary:
      In this implementation, LiveIntervalAnalysis invents a few register
      masks on basic block boundaries that preserve no registers. The nice
      thing about this is that it prevents the prologue inserter from thinking
      it needs to spill all XMM CSRs, because it doesn't see any explicit
      physreg defs in the MI.
      
      Reviewers: MatzeB, qcolombet, JosephTremoulet, majnemer
      
      Subscribers: MatzeB, llvm-commits
      
      Differential Revision: http://reviews.llvm.org/D14407
      
      llvm-svn: 252318
      b8fd162f
    • Chad Rosier's avatar
      [LIR] Simplify code by making DataLayout globally accessible. NFC. · 43f9b489
      Chad Rosier authored
      llvm-svn: 252317
      43f9b489
    • Jun Bum Lim's avatar
      [AArch64]Enable the narrow ld promotion only on profitable microarchitectures · 22fe15ee
      Jun Bum Lim authored
      The benefit from converting narrow loads into a wider load (r251438) could be
      micro-architecturally dependent, as it assumes that a single load with two bitfield
      extracts is cheaper than two narrow loads. Currently, this conversion is
      enabled only in cortex-a57 on which performance benefits were verified.
      
      llvm-svn: 252316
      22fe15ee
  2. Nov 06, 2015