1. Jul 25, 2019
  2. Jul 24, 2019
    • Sanjay Patel's avatar
      [SDAG] convert (sub x, 1) to (add x, -1) in ctpop expansion; NFC · 10dad95a
      Sanjay Patel authored
      We canonicalize to the add form, so create that directly for efficiency.
      
      llvm-svn: 366914
      10dad95a
    • Matt Arsenault's avatar
      AMDGPU: Only allow FP types for format buffer intrinics · 0bf5f708
      Matt Arsenault authored
      The code already somewhat assumes this is the case anyway.
      
      llvm-svn: 366913
      0bf5f708
    • David Tenty's avatar
      [AIX][lit] Don't depend on psutil on AIX · b9179ff8
      David Tenty authored
      Summary:
      On AIX psutil can run into problems with permissions to read the process
      tree, which causes problems for python timeout tests which need to kill off
      a test and it's children.
      
      This patch adds a workaround by invoking shell via subprocess and using a
      platform specific option to ps to list all the descendant processes so we can
      kill them. We add some checks so lit can tell whether timeout tests are
      supported with out exposing whether we are utilizing the psutil
      implementation or the alternative.
      
      Reviewers: hubert.reinterpretcast, andusy, davide, delcypher
      
      Reviewed By: delcypher
      
      Subscribers: davide, delcypher, christof, lldb-commits, libcxx-commits, llvm-commits
      
      Tags: #lldb, #libc, #llvm
      
      Differential Revision: https://reviews.llvm.org/D64251
      
      llvm-svn: 366912
      b9179ff8
    • Anton Afanasyev's avatar
      [Support] Fix `-ftime-trace-granularity` option · 4fdcabf2
      Anton Afanasyev authored
      Summary:
      Move `-ftime-trace-granularity` option to frontend options. Without patch
      this option is showed up in the help for any tool that links libSupport.
      
      Reviewers: sammccall
      
      Subscribers: hiraditya, cfe-commits, llvm-commits
      
      Tags: #clang, #llvm
      
      Differential Revision: https://reviews.llvm.org/D65202
      
      llvm-svn: 366911
      4fdcabf2
    • David Green's avatar
      [ARM] Better AND's for MVE compares · 69fba743
      David Green authored
      Add a number of folds to convert and(vcmp, vcmp) into a single VPT block, where
      the second vcmp becomes predicated on the first.
      
      The VCMP; VPST; VCMP will eventually be converted to VPT; VCMP in the
      VPTBlockPass.
      
      Differential Revision: https://reviews.llvm.org/D65058
      
      llvm-svn: 366910
      69fba743
    • David Green's avatar
      [ARM] MVE floating point compares and selects · 4fc78c49
      David Green authored
      Much like integers, this adds MVE floating point compares and select. It
      requires a lot more buildvector/shuffle code because we may need to expand the
      compares without mve.fp, and requires support for and/or because of the way we
      lower llvm condition codes.
      
      Some original code by David Sherwood
      
      Differential Revision: https://reviews.llvm.org/D65054
      
      llvm-svn: 366909
      4fc78c49
    • Owen Reynolds's avatar
      [llvm-ar][test] Fix move operation tests · 18c26713
      Owen Reynolds authored
      This fixes two tests that did not remove existing archives
      before testing due to mistyped archive names.
      
      llvm-svn: 366908
      18c26713
    • David Green's avatar
      [ARM] Basic And/Or/Xor handling for MVE predicates · a4a4698c
      David Green authored
      This adds some basic, "worst case" handling for MVE predicate Or/And/Xor. It
      does this by going into and out of GPRs, doing the operation on scalars.
      
      Code by David Sherwood.
      
      Differential Revision: https://reviews.llvm.org/D65053
      
      llvm-svn: 366907
      a4a4698c
    • Paul Robinson's avatar
      Silence a conversion warning after r366887. NFC · c7046c91
      Paul Robinson authored
      llvm-svn: 366906
      c7046c91
    • Simi Pallipurath's avatar
      [ARM] Make sure that the constant pool does not keep in the middle of an IT block. · 724888af
      Simi Pallipurath authored
      This change make sure that llvm does not emit an invalid IT block
      by putting the constant pool in the middle of an IT block.
      
      We have code to try to avoid putting a constant island in the middle of an
      IT block, but it only works if we see an IT between the one currently
      referencing CPE and possible insertion point. If the first instruction
      we look at is the VLDRD after the IT , we never see the IT and does not
      realize that the instruction doing the load could be in an IT block itself.
      
      Differential Revision: https://reviews.llvm.org/D64621
      
      Change-Id: I24cecb37cded75e8992870bd997f6226853bd920
      llvm-svn: 366905
      724888af
    • Sjoerd Meijer's avatar
      Test commit. NFC. · a19f5a76
      Sjoerd Meijer authored
      Removed 2 trailing whitespaces in 2 files that used to be in different
      repos to test my new github monorepo workflow.
      
      llvm-svn: 366904
      a19f5a76
    • Pavel Labath's avatar
      Fix @skipIfSanitized decorator · 3a12e73f
      Pavel Labath authored
      To run the test the decorator function should return None, not False.
      Returning anything other than None skips the test.
      
      llvm-svn: 366903
      3a12e73f
    • Jay Foad's avatar
      [InstSimplify] Rename SimplifyFPUnOp and SimplifyFPBinOp · 565c5432
      Jay Foad authored
      Summary:
      SimplifyFPBinOp is a variant of SimplifyBinOp that lets you specify
      fast math flags, but the name is misleading because both functions
      can simplify both FP and non-FP ops. Instead, overload SimplifyBinOp
      so that you can optionally specify fast math flags.
      
      Likewise for SimplifyFPUnOp.
      
      Reviewers: spatel
      
      Reviewed By: spatel
      
      Subscribers: xbolva00, cameron.mcinally, eraman, hiraditya, haicheng, zzheng, llvm-commits
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D64902
      
      llvm-svn: 366902
      565c5432
    • Sanjay Patel's avatar
      [InstCombine] add tests for load narrowing; NFC · 36240744
      Sanjay Patel authored
      Baseline results for D64432.
      
      llvm-svn: 366901
      36240744
    • Sam McCall's avatar
      [clangd] Add categories to help options, and only show clangd options. · 9842310a
      Sam McCall authored
      Summary:
      Restricting the categories prevents extra unwanted options from creeping into
      help (D60663), and removes a bunch of noise from --help-hidden.
      
      While here, remove `static` from the opts in favor of an anon namespace, to
      reduce the noise level.
      
      Reviewers: hokein
      
      Subscribers: ilya-biryukov, MaskRay, jkorous, arphaman, kadircet, cfe-commits
      
      Tags: #clang
      
      Differential Revision: https://reviews.llvm.org/D65200
      
      llvm-svn: 366900
      9842310a
    • Thomas Preud'homme's avatar
      [FileCheck] Use ASSERT for fatal unit tests · 168a6dc9
      Thomas Preud'homme authored
      Summary:
      A number of EXPECT statements in FileCheck's unit tests are dependent
      from results of other values being tested. This commit changes those
      earlier test to use ASSERT instead of EXPECT to avoid cascade errors
      when they are all related to the same issue.
      
      Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk
      
      Subscribers: JonChesterfield, rogfer01, hfinkel, kristina, rnk, tra, arichardson, grimar, dblaikie, probinson, llvm-commits, hiraditya
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D64921
      
      > llvm-svn: 366862
      
      llvm-svn: 366899
      168a6dc9
    • Thomas Preud'homme's avatar
      [FileCheck]] Canonicalize caret location testing · a83dfd92
      Thomas Preud'homme authored
      Summary:
      Testing of caret location in diagnostic message is currently made with
      CHECK directive with the following general format:
      CHECK: {{^         \^$}}
      
      James Henderson suggested the following would be more readable:
      CHECK: {{^}}         ^{{$}}
      
      and when whole lines can be matched (as is the case for command-line
      testing where error messages do not include path):
      CHECK:         ^
      using the option --match-full-lines.
      
      This commit implements these 2 changes on all existing caret position
      tests. It also aligns the caret to the character it is trying to match
      in the above line.
      
      Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk
      
      Subscribers: JonChesterfield, rogfer01, hfinkel, kristina, rnk, tra, arichardson, grimar, dblaikie, probinson, llvm-commits, hiraditya
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D64923
      
      > llvm-svn: 366861
      
      llvm-svn: 366898
      a83dfd92
    • Thomas Preud'homme's avatar
      FileCheck [8/12]: Define numeric var from expr · 4cd9b853
      Thomas Preud'homme authored
      Summary:
      This patch is part of a patch series to add support for FileCheck
      numeric expressions. This specific patch lift the restriction for a
      numeric expression to either be a variable definition or a numeric
      expression to try to match.
      
      This commit allows a numeric variable to be set to the result of the
      evaluation of a numeric expression after it has been matched
      successfully. When it happens, the variable is allowed to be used on
      the same line since its value is known at match time.
      
      It also makes use of this possibility to reuse the parsing code to
      parse a command-line definition by crafting a mirror string of the
      -D option with the equal sign replaced by a colon sign, e.g. for option
      '-D#NUMVAL=10' it creates the string
      '-D#NUMVAL=10 (parsed as [[#NUMVAL:10]])' where the numeric expression
      is parsed to define NUMVAL. This result in a few tests needing updating
      for the location diagnostics on top of the tests for the new feature.
      
      It also enables empty numeric expression which match any number without
      defining a variable. This is done here rather than in commit #5 of the
      patch series because it requires to dissociate automatic regex insertion
      in RegExStr from variable definition which would make commit #5 even
      bigger than it already is.
      
      Copyright:
          - Linaro (changes up to diff 183612 of revision D55940)
          - GraphCore (changes in later versions of revision D55940 and
                       in new revision created off D55940)
      
      Reviewers: jhenderson, chandlerc, jdenny, probinson, grimar, arichardson, rnk
      
      Subscribers: hiraditya, llvm-commits, probinson, dblaikie, grimar, arichardson, tra, rnk, kristina, hfinkel, rogfer01, JonChesterfield
      
      Tags: #llvm
      
      Differential Revision: https://reviews.llvm.org/D60388
      
      > llvm-svn: 366860
      
      llvm-svn: 366897
      4cd9b853
    • George Rimar's avatar
      [llvm-objdump] - Import the test/Object/X86/no-start-symbol.test test case and... · 7d79b552
      George Rimar authored
      [llvm-objdump] - Import the test/Object/X86/no-start-symbol.test test case and rewrite it to use YAML.
      
      This patch removes test/Object/X86/no-start-symbol.test (rewrites
      it to use YAML and moves it to llvm-objdump tests folder).
      
      (This test was initially introduced in rL239039, but now there
      is no reason to keep the precompiled binary it seems).
      
      DIfferential revision: https://reviews.llvm.org/D65136
      
      llvm-svn: 366896
      7d79b552