1. Nov 29, 2016
  2. Nov 28, 2016
    • Alexey Bataev's avatar
      [OPENMP] Fix for PR31137: Wrong DSA for members in struct. · 7fcacd8e
      Alexey Bataev authored
      If member expression is used in the task region and the base expression
      is a DeclRefExp and the variable used in this ref expression is private,
      it should be marked as implicitly firstprivate inside this region. Patch
      fixes this issue.
      
      llvm-svn: 288039
      7fcacd8e
    • Pavel Labath's avatar
      Fix floating point register reads x86_64 linux on targets with no AVX support · 6ec13991
      Pavel Labath authored
      Summary:
      On for 64-bit targets, the correct register set to read the fxsave are is
      NT_PRFPREG (only 32-bit targets need NT_PRXFPREG, presumably for historic
      reasons). Reference:
      <https://github.com/torvalds/linux/blob/v4.8/arch/x86/kernel/ptrace.c#L1261>.
      
      Reviewers: tberghammer, valentinagiusti
      
      Subscribers: lldb-commits
      
      Differential Revision: https://reviews.llvm.org/D27161
      
      llvm-svn: 288038
      6ec13991
    • Simon Pilgrim's avatar
      3def9e11
    • Daniel Cederman's avatar
      Test commit · 59168e28
      Daniel Cederman authored
      llvm-svn: 288036
      59168e28
    • Nirav Dave's avatar
      Revert "[DAG] Improve loads-from-store forwarding to handle TokenFactor" · a4133617
      Nirav Dave authored
      This reverts commit r287773 which caused issues with ppc64le builds.
      
      llvm-svn: 288035
      a4133617
    • NAKAMURA Takumi's avatar
      ClangMoveTests.cpp: Fix a bogus comparison of iterator. · 5843abc9
      NAKAMURA Takumi authored
      msc Debug build detected it.
      
      llvm-svn: 288034
      5843abc9
    • Ulrich Weigand's avatar
      [SystemZ] Fix build bot fallout from r288030 · a29bf16e
      Ulrich Weigand authored
      Remove unused variable that came in due to a copy-and-paste bug
      and caused build bot failures.
      
      llvm-svn: 288033
      a29bf16e
    • Pavel Labath's avatar
      XFAIL: TestNoreturnUnwind on android x86_64 · 1776986d
      Pavel Labath authored
      llvm-svn: 288032
      1776986d
    • Ulrich Weigand's avatar
      [SystemZ] Support execution hint instructions · 84404f30
      Ulrich Weigand authored
      This adds assembler support for the instructions provided by the
      execution-hint facility (NIAI and BP(R)P).  This required adding
      support for the new relocation types for 12-bit and 24-bit PC-
      relative offsets used by the BP(R)P instructions.
      
      llvm-svn: 288031
      84404f30
    • Ulrich Weigand's avatar
      [SystemZ] Support load-and-trap instructions · 2d9e3d9d
      Ulrich Weigand authored
      This adds support for the instructions provided with the
      load-and-trap facility.
      
      llvm-svn: 288030
      2d9e3d9d
    • Ulrich Weigand's avatar
      [SystemZ] Add remaining branch instructions · 75839913
      Ulrich Weigand authored
      This patch adds assembler support for the remaining branch instructions:
      the non-relative branch on count variants, and all variants of branch
      on index.
      
      The only one of those that can be readily exploited for code generation
      is BRCTH (branch on count using a high 32-bit register as count).  Do
      use it, however, it is necessary to also introduce a hew CHIMux pseudo
      to allow comparisons of a 32-bit value agains a short immediate to go
      into a high register as well (implemented via CHI/CIH).
      
      This causes a bit of codegen changes overall, but those have proven to
      be neutral (or even beneficial) in performance measurements.
      
      llvm-svn: 288029
      75839913
    • Ulrich Weigand's avatar
      [SystemZ] Improve use of conditional instructions · 524f276c
      Ulrich Weigand authored
      This patch moves formation of LOC-type instructions from (late)
      IfConversion to the early if-conversion pass, and in some cases
      additionally creates them directly from select instructions
      during DAG instruction selection.
      
      To make early if-conversion work, the patch implements the
      canInsertSelect / insertSelect callbacks.  It also implements
      the commuteInstructionImpl and FoldImmediate callbacks to
      enable generation of the full range of LOC instructions.
      
      Finally, the patch adds support for all instructions of the
      load-store-on-condition-2 facility, which allows using LOC
      instructions also for high registers.
      
      Due to the use of the GRX32 register class to enable high registers,
      we now also have to handle the cases where there are still no single
      hardware instructions (conditional move from a low register to a high
      register or vice versa).  These are converted back to a branch sequence
      after register allocation.  Since the expandRAPseudos callback is not
      allowed to create new basic blocks, this requires a simple new pass,
      modelled after the ARM/AArch64 ExpandPseudos pass.
      
      Overall, this patch causes significantly more LOC-type instructions
      to be used, and results in a measurable performance improvement.
      
      llvm-svn: 288028
      524f276c
    • Pavel Labath's avatar
      skip android in @skipIfHostIncompatibleWithRemote · 79724fc0
      Pavel Labath authored
      The current implementation of the decorator does not skip if the android target
      arch is the same as host arch (as in both cases the platform comes out as linux).
      Nonetheless android x86_64 binaries are not compatible with linux ones.
      
      Technically this should be "skip if target is android and host is *not* android",
      but currently nobody runs lldb test suite on an android host, so we don't even
      have a way of specifying that the host is android.
      
      llvm-svn: 288027
      79724fc0
    • Pavel Labath's avatar
      Fix a crash in ProcessPOSIXLog · 4fd57542
      Pavel Labath authored
      We are getting a null pointer for the list of categories here (presumably due to
      the args refactor).
      
      llvm-svn: 288026
      4fd57542
    • Malcolm Parsons's avatar
      [Sema] Set range end of constructors and destructors in template instantiations · 57ae8575
      Malcolm Parsons authored
      Summary:
      clang-tidy checks frequently use source ranges of functions.
      The source range of constructors and destructors in template instantiations
      is currently a single token.
      The factory method for constructors and destructors does not allow the
      end source location to be specified.
      Set end location manually after creating instantiation.
      
      Reviewers: aaron.ballman, rsmith, arphaman
      
      Subscribers: arphaman, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D26849
      
      llvm-svn: 288025
      57ae8575
    • James Molloy's avatar
      [InlineCost] Reduce inline thresholds to compensate for cost changes · 6bed13c5
      James Molloy authored
      In r286814, the algorithm for calculating inline costs changed. This
      caused more inlining to take place which is especially apparent
      in optsize and minsize modes.
      
      As the cost calculation removed a skewed behaviour (we were inconsistent
      about the cost of calls) it isn't possible to update the thresholds to
      get exactly the same behaviour as before. However, this threshold change
      accounts for the very common case where an inline candidate has no
      calls within it. In this case, r286814 would inline around 5-6 more (IR)
      instructions.
      
      The changes to -Oz have been heavily benchmarked. The "obvious" value
      for the inline threshold at -Oz is zero, but due to inaccuracies in the
      inline heuristics this can actually cause code size increases due to
      not inlining key thunk functions (that then disappear). Experimentally,
      5 was the sweet spot for code size over the test-suite.
      
      For -Os, this change removes the outlier results shown up by green dragon
      (http://104.154.54.203/db_default/v4/nts/13248).
      
      Fixes D26848.
      
      llvm-svn: 288024
      6bed13c5