1. Oct 29, 2018
    • Andrea Di Biagio's avatar
      [llvm-mca] Lower to mca::Instructon before the pipeline is run. · df4d65dd
      Andrea Di Biagio authored
      Before this change, the lowering of instructions from llvm::MCInst to
      mca::Instruction was done as part of the first stage of the pipeline (i.e. the
      FetchStage).  In particular, FetchStage was responsible for picking the next
      instruction from the source sequence, and lower it to an mca::Instruction with
      the help of an object of class InstrBuilder.
      
      The dependency on InstrBuilder was problematic for a number of reasons. Class
      InstrBuilder only knows how to lower from llvm::MCInst to mca::Instruction.
      That means, it is hard to support a different scenario where instructions
      in input are not instances of class llvm::MCInst. Even if we managed to
      specialize InstrBuilder, and generalize most of its internal logic, the
      dependency on InstrBuilder in FetchStage would have caused more troubles (other
      than complicating the pipeline logic).
      
      With this patch, the lowering step is done before the pipeline is run. The
      pipeline is no longer responsible for lowering from MCInst to mca::Instruction.
      As a consequence of this, the FetchStage no longer needs to interact with an
      InstrBuilder. The mca::SourceMgr class now simply wraps a reference to a
      sequence of mca::Instruction objects.
      This simplifies the logic of FetchStage, and increases the usability of it.  As
      a result, on a debug build, we see a 7-9% speedup; on a release build, the
      speedup is around 3-4%.
      
      llvm-svn: 345500
      df4d65dd
    • Greg Bedwell's avatar
      [llvm-mca][UpdateTestChecks] Don't try to align blocks that have already been... · 38a53896
      Greg Bedwell authored
      [llvm-mca][UpdateTestChecks] Don't try to align blocks that have already been subject to alignment in update_mca_test_checks.py
      
      This fixes PR39466.
      
      llvm-svn: 345499
      38a53896
    • George Rimar's avatar
      [LLDB] - Fix outdated comment. NFC. · 3423a6d5
      George Rimar authored
      llvm-svn: 345498
      3423a6d5
    • Andrew Savonichev's avatar
      [OpenCL] Fix serialization of OpenCLExtensionDecls · 52d674d9
      Andrew Savonichev authored
      Summary:
      I recently discovered that adding the following code into `opencl-c.h` causes
      failure of `test/Headers/opencl-c-header.cl`:
      ```
      #pragma OPENCL EXTENSION cl_my_ext : begin
      void cl_my_ext_foobarbaz();
      #pragma OPENCL EXTENSIOn cl_my_ext : end
      ```
      
      Clang crashes at the assertion is `ASTReader::getGlobalSubmoduleID()`:
      ```
      assert(I != M.SubmoduleRemap.end() && "Invalid index into submodule index remap");
      ```
      
      The root cause of the problem that to deserialize `OPENCL_EXTENSION_DECLS`
      section `ASTReader` needs to deserialize a Decl contained in it. In turn,
      deserializing a Decl requires information about whether this declaration is
      part of a (sub)module, but this information is not read yet because it is
      located further in a module file.
      
      Reviewers: Anastasia, yaxunl, JDevlieghere
      
      Reviewed By: Anastasia
      
      Subscribers: sidorovd, cfe-commits, asavonic
      
      Differential Revision: https://reviews.llvm.org/D53200
      
      llvm-svn: 345497
      52d674d9
    • Gabor Marton's avatar
      [ASTImporter] Import overrides before importing the rest of the chain · 7a0841ef
      Gabor Marton authored
      Summary:
      During method import we check for structural eq of two methods.
      In the structural eq check we check for their isVirtual() flag. That
      flag, however, may depend on the number of overrides. Before this
      change we imported the overrides *after* we had imported the rest of the
      redecl chain.  So, during the import of another decl from the chain
      IsVirtual() gave false result.
      
      Writing tests for this is not really possible, because there is no way
      to remove an overridden method via the AST API.
      (We should access the private ASTContext::OverriddenMethods container.)
      Also, we should do the remove in the middle of the import process.
      
      Reviewers: a_sidorin, a.sidorin
      
      Subscribers: rnkovacs, dkrupp, Szelethus, cfe-commits
      
      Differential Revision: https://reviews.llvm.org/D53704
      
      llvm-svn: 345496
      7a0841ef
    • James Henderson's avatar
      [llvm-objdump] Add '--full-contents' as alias for '-s' · b55b6587
      James Henderson authored
      This fixes PR39404.
      
      Reviewed By: jhenderson
      
      Patch by Xing Guo
      
      Differential Revision: https://reviews.llvm.org/D53576
      
      llvm-svn: 345495
      b55b6587
    • Kamil Rytarowski's avatar
      Mark test/tsan/getline_nohang as XFAIL for NetBSD · 0ef090ca
      Kamil Rytarowski authored
      llvm-svn: 345493
      0ef090ca
    • Kamil Rytarowski's avatar
      Disable the GNU strerror_r TSan test for NetBSD · 43d1653f
      Kamil Rytarowski authored
      Revert older change that was incorrect in this test.
      It was already reverted in the past after an attempt to port it to Darwin.
      
      While there, mark FreeBSD as unsupported as well.
      
      llvm-svn: 345492
      43d1653f
    • Sjoerd Meijer's avatar
      [ARM][NFC] Fix test inlineasm-X-allocation.ll · d208461e
      Sjoerd Meijer authored
      Differential Revision: https://reviews.llvm.org/D53748
      
      llvm-svn: 345491
      d208461e
    • Kamil Rytarowski's avatar
      Mark test/tsan/ignore_lib5 as unsupported for NetBSD · 52676983
      Kamil Rytarowski authored
      ReadProcMaps() on NetBSD does not handle >=1MB of memory layout information.
      
      llvm-svn: 345490
      52676983
    • Dean Michael Berris's avatar
      [XRay] Guard call to postCurrentThreadFCT() · e01d25ef
      Dean Michael Berris authored
      Summary:
      Some cases where `postCurrentThreadFCT()` are not guarded by our
      recursion guard. We've observed that sometimes these can lead to
      deadlocks when some functions (like memcpy()) gets outlined and the
      version of memcpy is XRay-instrumented, which can be materialised by the
      compiler in the implementation of lower-level components used by the
      profiling runtime.
      
      This change ensures that all calls to `postCurrentThreadFCT` are guarded
      by our thread-recursion guard, to prevent deadlocks.
      
      Reviewers: mboerger, eizan
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53805
      
      llvm-svn: 345489
      e01d25ef
    • Craig Topper's avatar
      [X86] Force floating point values in constant pool decoding to print in... · aa5eb2fb
      Craig Topper authored
      [X86] Force floating point values in constant pool decoding to print in scientific notation so they can't be confused with integers.
      
      When the floating point constants are whole numbers they have no decimal point so look like integers, but mean something very different in something like an 'and' instruction.
      
      Ideally we would just print a decimal point and a 0, but I couldn't see how to make APFloat::toString do that.
      
      llvm-svn: 345488
      aa5eb2fb
    • Erik Pilkington's avatar
      Revert "Support for groups of attributes in #pragma clang attribute" · b287a015
      Erik Pilkington authored
      This reverts commit r345486.
      
      Looks like it causes some old versions of GCC to crash, I'll see if I can
      work around it and recommit...
      
      llvm-svn: 345487
      b287a015
    • Erik Pilkington's avatar
      Support for groups of attributes in #pragma clang attribute · a7cc6b36
      Erik Pilkington authored
      This commit enables pushing an empty #pragma clang attribute push, then adding
      multiple attributes to it, then popping them all with #pragma clang attribute
      pop, just like #pragma clang diagnostic. We still support the current way of
      adding these, #pragma clang attribute push(__attribute__((...))), by treating it
      like a combined push/attribute. This is needed to create macros like:
      
      DO_SOMETHING_BEGIN(attr1, attr2, attr3)
      // ...
      DO_SOMETHING_END
      
      rdar://45496947
      
      Differential revision: https://reviews.llvm.org/D53621
      
      llvm-svn: 345486
      a7cc6b36
    • Dean Michael Berris's avatar
      [XRay] Use more portable control block · 36d97466
      Dean Michael Berris authored
      Summary:
      In D53560, we assumed a specific layout for memory without using an
      explicit structure. This follow-up change uses more portable layout
      control by using unions in a struct, and consolidating the memory
      management code in the buffer queue.
      
      We also take the opportunity to improve the documentation on the types
      and operations, along with simplifying some of the logic in the buffer
      queue implementation.
      
      Reviewers: mboerger, eizan
      
      Subscribers: jfb, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53802
      
      llvm-svn: 345485
      36d97466
    • Craig Topper's avatar
      [X86] Recognize constant splats in LowerFCOPYSIGN. · 42aa8714
      Craig Topper authored
      llvm-svn: 345484
      42aa8714
    • Craig Topper's avatar
      [X86] Add test case to show failure to handle splat vectors in the constant... · 8164f392
      Craig Topper authored
      [X86] Add test case to show failure to handle splat vectors in the constant check in LowerFCOPYSIGN.
      
      llvm-svn: 345483
      8164f392
    • Saleem Abdulrasool's avatar
      Revert "Revert "DebugInfo: reduce DIE range verification on object files"" · ec77a651
      Saleem Abdulrasool authored
      This reverts commit 836c763dadbd9478fa35b1a291a38bf17aa206ba.  Default
      initialize the values that MSAN caught.
      
      llvm-svn: 345482
      ec77a651
    • Craig Topper's avatar
      [SelectionDAG] Fix bad indentation. NFC · 7a18b4bc
      Craig Topper authored
      llvm-svn: 345481
      7a18b4bc
    • Clement Courbet's avatar
      [llvm-exegesis] Fix SNB counter definition and handling. · 4d837fce
      Clement Courbet authored
      Summary: SNB is the only one that has P23 as a single proc res.
      
      Reviewers: gchatelet
      
      Subscribers: tschuett, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53766
      
      llvm-svn: 345480
      4d837fce
    • Saleem Abdulrasool's avatar
      AST: extend MS decoration handling for extended vectors · 21568183
      Saleem Abdulrasool authored
      We correctly handled extended vectors of non-floating point types.
      However, we have the Intel style builtins which MSVC also supports which
      do overlap in sizes with the floating point extended vectors.  This
      would result in overloading of floating point extended vector types
      which matched sizes (e.g. <3 x float> would be backed by a <4 x float>
      and thus match sizes) to be mangled similarly.  Extended vectors are a
      clang extension which live outside of the builtins, so mangle them all
      similarly.  This change just extends the current scheme to treat
      floating point types similar to the way that we treat other types
      currently.
      
      This now allows the swift runtime to be built for Windows again.
      
      llvm-svn: 345479
      21568183
  2. Oct 28, 2018
    • Simon Pilgrim's avatar
      [TargetLowering] Move i64/vXi64 to f32/vXf32 UINT_TO_FP handling to... · 3497d536
      Simon Pilgrim authored
      [TargetLowering] Move i64/vXi64 to f32/vXf32 UINT_TO_FP handling to TargetLowering::expandUINT_TO_FP.
      
      llvm-svn: 345478
      3497d536
    • Bruno Ricci's avatar
      [AST] Fix an use-of-uninitialized bug introduced in CaseStmt · 4ab7371e
      Bruno Ricci authored
      SwitchCaseBits.CaseStmtIsGNURange needs to be initialized first.
      
      llvm-svn: 345477
      4ab7371e
    • Roman Lebedev's avatar
      [X86][NFC] sse42-schedule.ll: disable XOP for BdVer2 tests · 1c340bc7
      Roman Lebedev authored
      Else we are clearly testing the wrong instruction.
      
      llvm-svn: 345476
      1c340bc7
    • Roman Lebedev's avatar
      [X86][NFC] sse41-schedule.ll: disable XOP for BdVer2 tests · 3adf88b7
      Roman Lebedev authored
      Else we are clearly testing the wrong instruction.
      
      llvm-svn: 345475
      3adf88b7
    • Roman Lebedev's avatar
      [X86][NFC] sse2-schedule.ll: disable XOP for BdVer2 tests · cc554e44
      Roman Lebedev authored
      Else we are clearly testing the wrong instruction.
      
      llvm-svn: 345474
      cc554e44
    • Simon Pilgrim's avatar
      [VectorLegalizer] Enable TargetLowering::expandFP_TO_UINT support. · 9b77f0c2
      Simon Pilgrim authored
      Add vector support to TargetLowering::expandFP_TO_UINT.
      
      This exposes an issue in X86TargetLowering::LowerVSELECT which was assuming that the select mask was the same width as the LHS/RHS ops - as long as the result is a sign splat we can easily sext/trunk this.
      
      llvm-svn: 345473
      9b77f0c2
    • Bruno Ricci's avatar
      [AST] Don't store data for GNU range case statement if not needed · 5b305717
      Bruno Ricci authored
      Don't store the data for case statements of the form LHS ... RHS if not
      needed. This cuts the size of CaseStmt by 1 pointer + 1 SourceLocation in
      the common case.
      
      Also use the newly available space in the bit-fields of Stmt to store the
      keyword location of SwitchCase and move the small accessor
      SwitchCase::getSubStmt to the header.
      
      Differential Revision: https://reviews.llvm.org/D53609
      
      Reviewed By: rjmccall
      
      llvm-svn: 345472
      5b305717
    • Dean Michael Berris's avatar
      [XRay] Refcount backing store for buffers · 299e9b8b
      Dean Michael Berris authored
      Summary:
      This change implements the ref-counting for backing stores associated
      with generational buffer management. We do this as an implementation
      detail of the buffer queue, instead of exposing this to the interface.
      
      This change allows us to keep the buffer queue interface and usage model
      the same.
      
      Depends on D53551.
      
      Reviewers: mboerger, eizan
      
      Subscribers: jfb, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53560
      
      llvm-svn: 345471
      299e9b8b
    • Brad Smith's avatar
      Reapply Pass the nopie flag to the linker when linking with -pg. · 704247c3
      Brad Smith authored
      llvm-svn: 345470
      704247c3
    • Craig Topper's avatar
      [DAGCombiner] Better constant vector support for FCOPYSIGN. · c4b785ae
      Craig Topper authored
      Enable constant folding when both operands are vectors of constants.
      
      Turn into FNEG/FABS when the RHS is a splat constant vector.
      
      llvm-svn: 345469
      c4b785ae
    • Craig Topper's avatar
      [X86] Add test cases showing missed opportunities for optimizing vector... · f206447d
      Craig Topper authored
      [X86] Add test cases showing missed opportunities for optimizing vector fcopysign when the RHS is a splat constant.
      
      llvm-svn: 345468
      f206447d
    • Fangrui Song's avatar
      [utils] collect_and_build_with_pgo.py: revert part already fixed in rL345461 · ab7a3ad4
      Fangrui Song authored
      The change was inadvertently included in my last commit.
      
      llvm-svn: 345467
      ab7a3ad4
    • Fangrui Song's avatar
      [utils] Fix _run_benchmark in collect_and_build_with_pgo.py · 442e17ca
      Fangrui Song authored
      Summary: Also fix a FIXME in _build_stage1_clang: clang llvm-profdata profile are sufficient
      
      Reviewers: george.burgess.iv
      
      Subscribers: llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D53795
      
      llvm-svn: 345466
      442e17ca
    • Renato Golin's avatar
      Revert r344172: [LV] Add a new reduction pattern match · 53bd4f48
      Renato Golin authored
      This patch has caused fast-math issues in the reduction pattern.
      
      Will re-work and land again.
      
      llvm-svn: 345465
      53bd4f48
    • Bruno Ricci's avatar
      [AST] Only store the needed data in IfStmt · b1cc94b2
      Bruno Ricci authored
      Only store the needed data in IfStmt. This cuts the size of IfStmt
      by up to 3 pointers + 1 SourceLocation. The order of the children
      is intentionally kept the same even though it would be more
      convenient to put the optional trailing objects last. Additionally
      use the newly available space in the bit-fields of Stmt to store
      the location of the "if".
      
      The result of this is that for the common case of an
      if statement of the form:
      
      if (some_cond)
        some_statement
      
      the size of IfStmt is brought down to 8 bytes + 2 pointers,
      instead of 8 bytes + 5 pointers + 2 SourceLocation.
      
      Differential Revision: https://reviews.llvm.org/D53607
      
      Reviewed By: rjmccall
      
      llvm-svn: 345464
      b1cc94b2
    • Roman Lebedev's avatar
      AMD BdVer2 (Piledriver) Initial Scheduler model · a5baf867
      Roman Lebedev authored
      Summary:
      # Overview
      This is somewhat partial.
      * Latencies are good {F7371125}
        * All of these remaining inconsistencies //appear// to be noise/noisy/flaky.
      * NumMicroOps are somewhat good {F7371158}
        * Most of the remaining inconsistencies are from `Ld` / `Ld_ReadAfterLd` classes
      * Actual unit occupation (pipes, `ResourceCycles`) are undiscovered lands, i did not really look there.
        They are basically verbatum copy from `btver2`
      * Many `InstRW`. And there are still inconsistencies left...
      
      To be noted:
      I think this is the first new schedule profile produced with the new next-gen tools like llvm-exegesis!
      
      # Benchmark
      I realize that isn't what was suggested, but i'll start with some "internal" public real-world benchmark i understand - [[ https://github.com/darktable-org/rawspeed | RawSpeed raw image decoding library ]].
      Diff (the exact clang from trunk without/with this patch):
      ```
      Comparing /home/lebedevri/rawspeed/build-old/src/utilities/rsbench/rsbench to /home/lebedevri/rawspeed/build-new/src/utilities/rsbench/rsbench
      Benchmark                                                                                        Time             CPU      Time Old      Time New       CPU Old       CPU New
      -----------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      Canon/EOS 5D Mark II/09.canon.sraw1.cr2/threads:8/real_time_pvalue                             0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Canon/EOS 5D Mark II/09.canon.sraw1.cr2/threads:8/real_time_mean                              -0.0607         -0.0604           234           219           233           219
      Canon/EOS 5D Mark II/09.canon.sraw1.cr2/threads:8/real_time_median                            -0.0630         -0.0626           233           219           233           219
      Canon/EOS 5D Mark II/09.canon.sraw1.cr2/threads:8/real_time_stddev                            +0.2581         +0.2587             1             2             1             2
      Canon/EOS 5D Mark II/10.canon.sraw2.cr2/threads:8/real_time_pvalue                             0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Canon/EOS 5D Mark II/10.canon.sraw2.cr2/threads:8/real_time_mean                              -0.0770         -0.0767           144           133           144           133
      Canon/EOS 5D Mark II/10.canon.sraw2.cr2/threads:8/real_time_median                            -0.0767         -0.0763           144           133           144           133
      Canon/EOS 5D Mark II/10.canon.sraw2.cr2/threads:8/real_time_stddev                            -0.4170         -0.4156             1             0             1             0
      Canon/EOS 5DS/2K4A9927.CR2/threads:8/real_time_pvalue                                          0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Canon/EOS 5DS/2K4A9927.CR2/threads:8/real_time_mean                                           -0.0271         -0.0270           463           450           463           450
      Canon/EOS 5DS/2K4A9927.CR2/threads:8/real_time_median                                         -0.0093         -0.0093           453           449           453           449
      Canon/EOS 5DS/2K4A9927.CR2/threads:8/real_time_stddev                                         -0.7280         -0.7280            13             4            13             4
      Canon/EOS 5DS/2K4A9928.CR2/threads:8/real_time_pvalue                                          0.0004          0.0004      U Test, Repetitions: 25 vs 25
      Canon/EOS 5DS/2K4A9928.CR2/threads:8/real_time_mean                                           -0.0065         -0.0065           569           565           569           565
      Canon/EOS 5DS/2K4A9928.CR2/threads:8/real_time_median                                         -0.0077         -0.0077           569           564           569           564
      Canon/EOS 5DS/2K4A9928.CR2/threads:8/real_time_stddev                                         +1.0077         +1.0068             2             5             2             5
      Canon/EOS 5DS/2K4A9929.CR2/threads:8/real_time_pvalue                                          0.0220          0.0199      U Test, Repetitions: 25 vs 25
      Canon/EOS 5DS/2K4A9929.CR2/threads:8/real_time_mean                                           +0.0006         +0.0007           312           312           312           312
      Canon/EOS 5DS/2K4A9929.CR2/threads:8/real_time_median                                         +0.0031         +0.0032           311           312           311           312
      Canon/EOS 5DS/2K4A9929.CR2/threads:8/real_time_stddev                                         -0.7069         -0.7072             4             1             4             1
      Canon/EOS 10D/CRW_7673.CRW/threads:8/real_time_pvalue                                          0.0004          0.0004      U Test, Repetitions: 25 vs 25
      Canon/EOS 10D/CRW_7673.CRW/threads:8/real_time_mean                                           -0.0015         -0.0015           141           141           141           141
      Canon/EOS 10D/CRW_7673.CRW/threads:8/real_time_median                                         -0.0010         -0.0011           141           141           141           141
      Canon/EOS 10D/CRW_7673.CRW/threads:8/real_time_stddev                                         -0.1486         -0.1456             0             0             0             0
      Canon/EOS 40D/_MG_0154.CR2/threads:8/real_time_pvalue                                          0.6139          0.8766      U Test, Repetitions: 25 vs 25
      Canon/EOS 40D/_MG_0154.CR2/threads:8/real_time_mean                                           -0.0008         -0.0005            60            60            60            60
      Canon/EOS 40D/_MG_0154.CR2/threads:8/real_time_median                                         -0.0006         -0.0002            60            60            60            60
      Canon/EOS 40D/_MG_0154.CR2/threads:8/real_time_stddev                                         -0.1467         -0.1390             0             0             0             0
      Canon/EOS 77D/IMG_4049.CR2/threads:8/real_time_pvalue                                          0.0137          0.0137      U Test, Repetitions: 25 vs 25
      Canon/EOS 77D/IMG_4049.CR2/threads:8/real_time_mean                                           +0.0002         +0.0002           275           275           275           275
      Canon/EOS 77D/IMG_4049.CR2/threads:8/real_time_median                                         -0.0015         -0.0014           275           275           275           275
      Canon/EOS 77D/IMG_4049.CR2/threads:8/real_time_stddev                                         +3.3687         +3.3587             0             2             0             2
      Canon/PowerShot G1/crw_1693.crw/threads:8/real_time_pvalue                                     0.4041          0.3933      U Test, Repetitions: 25 vs 25
      Canon/PowerShot G1/crw_1693.crw/threads:8/real_time_mean                                      +0.0004         +0.0004            67            67            67            67
      Canon/PowerShot G1/crw_1693.crw/threads:8/real_time_median                                    -0.0000         -0.0000            67            67            67            67
      Canon/PowerShot G1/crw_1693.crw/threads:8/real_time_stddev                                    +0.1947         +0.1995             0             0             0             0
      Fujifilm/GFX 50S/20170525_0037TEST.RAF/threads:8/real_time_pvalue                              0.0074          0.0001      U Test, Repetitions: 25 vs 25
      Fujifilm/GFX 50S/20170525_0037TEST.RAF/threads:8/real_time_mean                               -0.0092         +0.0074           547           542            25            25
      Fujifilm/GFX 50S/20170525_0037TEST.RAF/threads:8/real_time_median                             -0.0054         +0.0115           544           541            25            25
      Fujifilm/GFX 50S/20170525_0037TEST.RAF/threads:8/real_time_stddev                             -0.4086         -0.3486             8             5             0             0
      Fujifilm/X-Pro2/_DSF3051.RAF/threads:8/real_time_pvalue                                        0.3320          0.0000      U Test, Repetitions: 25 vs 25
      Fujifilm/X-Pro2/_DSF3051.RAF/threads:8/real_time_mean                                         +0.0015         +0.0204           218           218            12            12
      Fujifilm/X-Pro2/_DSF3051.RAF/threads:8/real_time_median                                       +0.0001         +0.0203           218           218            12            12
      Fujifilm/X-Pro2/_DSF3051.RAF/threads:8/real_time_stddev                                       +0.2259         +0.2023             1             1             0             0
      GoPro/HERO6 Black/GOPR9172.GPR/threads:8/real_time_pvalue                                      0.0000          0.0001      U Test, Repetitions: 25 vs 25
      GoPro/HERO6 Black/GOPR9172.GPR/threads:8/real_time_mean                                       -0.0209         -0.0179            96            94            90            88
      GoPro/HERO6 Black/GOPR9172.GPR/threads:8/real_time_median                                     -0.0182         -0.0155            95            93            90            88
      GoPro/HERO6 Black/GOPR9172.GPR/threads:8/real_time_stddev                                     -0.6164         -0.2703             2             1             2             1
      Kodak/DCS Pro 14nx/D7465857.DCR/threads:8/real_time_pvalue                                     0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Kodak/DCS Pro 14nx/D7465857.DCR/threads:8/real_time_mean                                      -0.0098         -0.0098           176           175           176           175
      Kodak/DCS Pro 14nx/D7465857.DCR/threads:8/real_time_median                                    -0.0126         -0.0126           176           174           176           174
      Kodak/DCS Pro 14nx/D7465857.DCR/threads:8/real_time_stddev                                    +6.9789         +6.9157             0             2             0             2
      Nikon/D850/Nikon-D850-14bit-lossless-compressed.NEF/threads:8/real_time_pvalue                 0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Nikon/D850/Nikon-D850-14bit-lossless-compressed.NEF/threads:8/real_time_mean                  -0.0237         -0.0238           474           463           474           463
      Nikon/D850/Nikon-D850-14bit-lossless-compressed.NEF/threads:8/real_time_median                -0.0267         -0.0267           473           461           473           461
      Nikon/D850/Nikon-D850-14bit-lossless-compressed.NEF/threads:8/real_time_stddev                +0.7179         +0.7178             3             5             3             5
      Olympus/E-M1MarkII/Olympus_EM1mk2__HIRES_50MP.ORF/threads:8/real_time_pvalue                   0.6837          0.6554      U Test, Repetitions: 25 vs 25
      Olympus/E-M1MarkII/Olympus_EM1mk2__HIRES_50MP.ORF/threads:8/real_time_mean                    -0.0014         -0.0013          1375          1373          1375          1373
      Olympus/E-M1MarkII/Olympus_EM1mk2__HIRES_50MP.ORF/threads:8/real_time_median                  +0.0018         +0.0019          1371          1374          1371          1374
      Olympus/E-M1MarkII/Olympus_EM1mk2__HIRES_50MP.ORF/threads:8/real_time_stddev                  -0.7457         -0.7382            11             3            10             3
      Panasonic/DC-G9/P1000476.RW2/threads:8/real_time_pvalue                                        0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Panasonic/DC-G9/P1000476.RW2/threads:8/real_time_mean                                         -0.0080         -0.0289            22            22            10            10
      Panasonic/DC-G9/P1000476.RW2/threads:8/real_time_median                                       -0.0070         -0.0287            22            22            10            10
      Panasonic/DC-G9/P1000476.RW2/threads:8/real_time_stddev                                       +1.0977         +0.6614             0             0             0             0
      Panasonic/DC-GH5/_T012014.RW2/threads:8/real_time_pvalue                                       0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Panasonic/DC-GH5/_T012014.RW2/threads:8/real_time_mean                                        +0.0132         +0.0967            35            36            10            11
      Panasonic/DC-GH5/_T012014.RW2/threads:8/real_time_median                                      +0.0132         +0.0956            35            36            10            11
      Panasonic/DC-GH5/_T012014.RW2/threads:8/real_time_stddev                                      -0.0407         -0.1695             0             0             0             0
      Panasonic/DC-GH5S/P1022085.RW2/threads:8/real_time_pvalue                                      0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Panasonic/DC-GH5S/P1022085.RW2/threads:8/real_time_mean                                       +0.0331         +0.1307            13            13             6             6
      Panasonic/DC-GH5S/P1022085.RW2/threads:8/real_time_median                                     +0.0430         +0.1373            12            13             6             6
      Panasonic/DC-GH5S/P1022085.RW2/threads:8/real_time_stddev                                     -0.9006         -0.8847             1             0             0             0
      Pentax/645Z/IMGP2837.PEF/threads:8/real_time_pvalue                                            0.0016          0.0010      U Test, Repetitions: 25 vs 25
      Pentax/645Z/IMGP2837.PEF/threads:8/real_time_mean                                             -0.0023         -0.0024           395           394           395           394
      Pentax/645Z/IMGP2837.PEF/threads:8/real_time_median                                           -0.0029         -0.0030           395           394           395           393
      Pentax/645Z/IMGP2837.PEF/threads:8/real_time_stddev                                           -0.0275         -0.0375             1             1             1             1
      Phase One/P65/CF027310.IIQ/threads:8/real_time_pvalue                                          0.0232          0.0000      U Test, Repetitions: 25 vs 25
      Phase One/P65/CF027310.IIQ/threads:8/real_time_mean                                           -0.0047         +0.0039           114           113            28            28
      Phase One/P65/CF027310.IIQ/threads:8/real_time_median                                         -0.0050         +0.0037           114           113            28            28
      Phase One/P65/CF027310.IIQ/threads:8/real_time_stddev                                         -0.0599         -0.2683             1             1             0             0
      Samsung/NX1/2016-07-23-142101_sam_9364.srw/threads:8/real_time_pvalue                          0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Samsung/NX1/2016-07-23-142101_sam_9364.srw/threads:8/real_time_mean                           +0.0206         +0.0207           405           414           405           414
      Samsung/NX1/2016-07-23-142101_sam_9364.srw/threads:8/real_time_median                         +0.0204         +0.0205           405           414           405           414
      Samsung/NX1/2016-07-23-142101_sam_9364.srw/threads:8/real_time_stddev                         +0.2155         +0.2212             1             1             1             1
      Samsung/NX30/2015-03-07-163604_sam_7204.srw/threads:8/real_time_pvalue                         0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Samsung/NX30/2015-03-07-163604_sam_7204.srw/threads:8/real_time_mean                          -0.0109         -0.0108           147           145           147           145
      Samsung/NX30/2015-03-07-163604_sam_7204.srw/threads:8/real_time_median                        -0.0104         -0.0103           147           145           147           145
      Samsung/NX30/2015-03-07-163604_sam_7204.srw/threads:8/real_time_stddev                        -0.4919         -0.4800             0             0             0             0
      Samsung/NX3000/_3184416.SRW/threads:8/real_time_pvalue                                         0.0000          0.0000      U Test, Repetitions: 25 vs 25
      Samsung/NX3000/_3184416.SRW/threads:8/real_time_mean                                          -0.0149         -0.0147           220           217           220           217
      Samsung/NX3000/_3184416.SRW/threads:8/real_time_median                                        -0.0173         -0.0169           221           217           220           217
      Samsung/NX3000/_3184416.SRW/threads:8/real_time_stddev                                        +1.0337         +1.0341             1             3             1             3
      Sony/DSLR-A350/DSC05472.ARW/threads:8/real_time_pvalue                                         0.0001          0.0001      U Test, Repetitions: 25 vs 25
      Sony/DSLR-A350/DSC05472.ARW/threads:8/real_time_mean                                          -0.0019         -0.0019           194           193           194           193
      Sony/DSLR-A350/DSC05472.ARW/threads:8/real_time_median                                        -0.0021         -0.0021           194           193           194           193
      Sony/DSLR-A350/DSC05472.ARW/threads:8/real_time_stddev                                        -0.4441         -0.4282             0             0             0             0
      Sony/ILCE-7RM2/14-bit-compressed.ARW/threads:8/real_time_pvalue                                0.0000          0.4263      U Test, Repetitions: 25 vs 25
      Sony/ILCE-7RM2/14-bit-compressed.ARW/threads:8/real_time_mean                                 +0.0258         -0.0006            81            83            19            19
      Sony/ILCE-7RM2/14-bit-compressed.ARW/threads:8/real_time_median                               +0.0235         -0.0011            81            82            19            19
      Sony/ILCE-7RM2/14-bit-compressed.ARW/threads:8/real_time_stddev                               +0.1634         +0.1070             1             1             0             0
      ```
      {F7443905}
      If we look at the `_mean`s, the time column, the biggest win is `-7.7%` (`Canon/EOS 5D Mark II/10.canon.sraw2.cr2`),
      and the biggest loose is `+3.3%` (`Panasonic/DC-GH5S/P1022085.RW2`);
      Overall: mean `-0.7436%`, median `-0.23%`, `cbrt(sum(time^3))` = `-8.73%`
      Looks good so far i'd say.
      
      llvm-exegesis details:
      {F7371117} {F7371125}
      {F7371128} {F7371144} {F7371158}
      
      Reviewers: craig.topper, RKSimon, andreadb, courbet, avt77, spatel, GGanesh
      
      Reviewed By: andreadb
      
      Subscribers: javed.absar, gbedwell, jfb, llvm-commits
      
      Differential Revision: https://reviews.llvm.org/D52779
      
      llvm-svn: 345463
      a5baf867
    • Roman Lebedev's avatar
      [NFC][X86] Baseline tests for AMD BdVer2 (Piledriver) Scheduler model · a5192187
      Roman Lebedev authored
      Adding the baseline tests in a preparatory NFC commit,
      so that the actual commit shows the *diff*.
      
      Yes, i'm aware that a few of these codegen-based sched tests
      are testing wrong instructions, i will fix that afterwards.
      
      For https://reviews.llvm.org/D52779
      
      llvm-svn: 345462
      a5192187
    • George Burgess IV's avatar
      [utils] Run tests in the proper directory. · e61b0d77
      George Burgess IV authored
      The intent here was to run check-llvm/check-clang in the instrumented
      clang's build directory, not the maybe-not-yet-created uninstrumented
      clang's. Oops. :)
      
      llvm-svn: 345461
      e61b0d77
    • Bruno Ricci's avatar
      [AST] Refactor PredefinedExpr · 17ff026b
      Bruno Ricci authored
      Make the following changes to PredefinedExpr:
      
      1. Move PredefinedExpr below StringLiteral so that it can use its definition.
      2. Rename IdentType to IdentKind to be more in line with clang's conventions,
         and propagate the change to its users.
      3. Move the location and the IdentKind into the newly available space of
         the bit-fields of Stmt.
      4. Only store the function name when needed. When parsing all of Boost,
         of the 1357 PredefinedExpr 919 have no function name.
      
      Differential Revision: https://reviews.llvm.org/D53605
      
      Reviewed By: rjmccall
      
      llvm-svn: 345460
      17ff026b