1. Nov 07, 2015
    • 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