Started 6 days 15 hr ago
Took 1 hr 15 min on green-dragon-22

Success Build rL:371635 - C:371635 - #554 (Sep 11, 2019 9:29:20 AM)

Revisions
  • http://llvm.org/svn/llvm-project/llvm/trunk : 371635
  • http://llvm.org/svn/llvm-project/cfe/trunk : 371635
  • http://llvm.org/svn/llvm-project/compiler-rt/trunk : 371628
  • http://llvm.org/svn/llvm-project/debuginfo-tests/trunk : 364589
  • http://llvm.org/svn/llvm-project/zorg/trunk : 371613
  • http://llvm.org/svn/llvm-project/libcxx/trunk : 371324
  • http://llvm.org/svn/llvm-project/clang-tools-extra/trunk : 371504
Changes
  1. Reland "clang-misexpect: Profile Guided Validation of Performance Annotations in LLVM"

    This patch contains the basic functionality for reporting potentially
    incorrect usage of __builtin_expect() by comparing the developer's
    annotation against a collected PGO profile. A more detailed proposal and
    discussion appears on the CFE-dev mailing list
    (http://lists.llvm.org/pipermail/cfe-dev/2019-July/062971.html) and a
    prototype of the initial frontend changes appear here in D65300

    We revised the work in D65300 by moving the misexpect check into the
    LLVM backend, and adding support for IR and sampling based profiles, in
    addition to frontend instrumentation.

    We add new misexpect metadata tags to those instructions directly
    influenced by the llvm.expect intrinsic (branch, switch, and select)
    when lowering the intrinsics. The misexpect metadata contains
    information about the expected target of the intrinsic so that we can
    check against the correct PGO counter when emitting diagnostics, and the
    compiler's values for the LikelyBranchWeight and UnlikelyBranchWeight.
    We use these branch weight values to determine when to emit the
    diagnostic to the user.

    A future patch should address the comment at the top of
    LowerExpectIntrisic.cpp to hoist the LikelyBranchWeight and
    UnlikelyBranchWeight values into a shared space that can be accessed
    outside of the LowerExpectIntrinsic pass. Once that is done, the
    misexpect metadata can be updated to be smaller.

    In the long term, it is possible to reconstruct portions of the
    misexpect metadata from the existing profile data. However, we have
    avoided this to keep the code simple, and because some kind of metadata
    tag will be required to identify which branch/switch/select instructions
    are influenced by the use of llvm.expect

    Patch By: paulkirth
    Differential Revision: https://reviews.llvm.org/D66324 (detail/ViewSVN)
    by phosek
  2. Revert [InstCombine] Use SimplifyFMulInst to simplify multiply in fma.

    This introduces additional rounding error in some cases. See D67434.

    This reverts r371518 (git commit 18a1f0818b659cee13865b4fad2648d85984a4ed) (detail/ViewSVN)
    by fhahn
  3. [Clang][Bundler] Fix for a potential memory leak [NFC]

    Bundler leaks memory if it is called with -type=o but given input isn't an object file (though it has to have a known binary type like IR, archive, etc...). Memory leak is happening when binary object returned by the createBinary(...) call cannot be casted to an ObjectFile type. In this case returned BinaryOrErr object releases ownership of the binary, but no one is taking it (see line 626).

    Differential Revision: https://reviews.llvm.org/D67416 (detail/ViewSVN)
    by sdmitriev
  4. [OPENMP] Update the diagnosis message for canonical loop form, by Chi
    Chun Chen.

    The previous patch (https://reviews.llvm.org/D54441) support the
    relational-op != very well for openmp canonical loop form, however,
    it didn't update the diagnosis message. So this patch is simply
    update the diagnosis message by adding !=, update the test
    related to it, and update the section number for canonical loop
    form for OpenMP 5.0 in comment.

    Differential Revision: https://reviews.llvm.org/D66559 (detail/ViewSVN)
    by abataev
  5. [InstSimplify] Pass SimplifyQuery into simplifyUnsignedRangeCheck() and use it for isKnownNonZero()

    This was actually the original intention in D67332,
    but i messed up and forgot about it.
    This patch was originally part of D67411, but precommitting this. (detail/ViewSVN)
    by lebedevri
  6. [NFC][InstSimplify] Add extra test for D67411 with @llvm.assume (detail/ViewSVN)
    by lebedevri

Started by an SCM change (5 times)

This run spent:

  • 57 min waiting;
  • 1 hr 15 min build duration;
  • 2 hr 13 min total from scheduled to completion.
LLVM/Clang Warnings: 1 warning.
    Test Result (no failures)