SuccessChanges

Summary

  1. [llvm] Add build bots for ml-driven optimization policies. (details)
  2. build.py: Return commit sha as the branch name if we are in detached HEAD state (details)
Commit f745b8309563affae8eeea031cf58ad83acd1709 by mtrofin
[llvm] Add build bots for ml-driven optimization policies.

RFC: http://lists.llvm.org/pipermail/llvm-dev/2020-April/140763.html

Reviewers: davidxl, gkistanova

Differential Revision: https://reviews.llvm.org/D81044
The file was modifiedbuildbot/osuosl/master/config/builders.py (diff)
The file was modifiedbuildbot/osuosl/master/config/status.py (diff)
The file was modifiedbuildbot/osuosl/master/config/slaves.py (diff)
Commit 233e18cc425679e363bb63988f1a8007e3419e63 by Azharuddin Mohammed
build.py: Return commit sha as the branch name if we are in detached HEAD state
The file was modifiedzorg/jenkins/monorepo_build.py (diff)

Summary

  1. [Reassociate] Teach ConvertShiftToMul to preserve nsw flag if the shift amount is not bitwidth - 1. (details)
  2. Fix undefined behaviour when trying to deref nullptr. (details)
  3. [Docs] Add the entry for `Advanced builds` in UserGuide.rst (details)
  4. [docs] HowToUpdateDebugInfo: Minor cleanups (details)
  5. Make linter happy (details)
  6. Revert "[Fuchsia] Rely on linker switch rather than dead code ref for profile runtime" (details)
  7. [Fuchsia] Rely on linker switch rather than dead code ref for profile runtime (details)
  8. [Statepoint] Switch RS4GC to using gc-live bundle form (details)
  9. [Analyzer][NoUncountedMembersChecker] Fix crash for C structs (details)
  10. [mlir][Linalg] Add a hoistViewAllocOps helper function (details)
  11. [WebAssembly] Fix a testcase to be independent of the sysroot default (details)
  12. [docs] Referenced llvm workflow in HowToAddABuilder (details)
Commit 3ad8fbd20592303445af55222e1d846b96d27126 by craig.topper
[Reassociate] Teach ConvertShiftToMul to preserve nsw flag if the shift amount is not bitwidth - 1.

Multiply and shl have different signed overflow behavior in
some cases. But it looks like we should be ok as long as the
shift amount is less than bitwidth - 1.

Alive2: http://volta.cs.utah.edu:8080/z/MM4WZP

Differential Revision: https://reviews.llvm.org/D81189
The file was modifiedllvm/lib/Transforms/Scalar/Reassociate.cpp
The file was modifiedllvm/test/Transforms/Reassociate/wrap-flags.ll
Commit 4e3d4622b1e7bd419815510e5f7cd0f96595b2a3 by a.bataev
Fix undefined behaviour when trying to deref nullptr.
The file was modifiedclang/lib/CodeGen/CodeGenFunction.h
Commit f9ea86eaa1a3ba18973666c4de56dfde8d488574 by Yuanfang Chen
[Docs] Add the entry for `Advanced builds` in UserGuide.rst

Also add a link to it from ThinLTO.rst.
The file was modifiedllvm/docs/UserGuides.rst
The file was modifiedclang/docs/ThinLTO.rst
Commit 24660ea11cb1d4090c68d06ef2a9ba4b9895794f by Vedant Kumar
[docs] HowToUpdateDebugInfo: Minor cleanups

- Change the reference to salvageDebugInfoOrUndef to salvageDebugInfo
  (in accordance with https://reviews.llvm.org/D78369).

- Reorganize a few sections in preparation for an upcoming change that
  attempts to specify rules for updating debug locations.

- Fix some intra-document links.

- Some spelling / wording fixes.
The file was modifiedllvm/docs/HowToUpdateDebugInfo.rst
Commit 284934fbc1f564c5fb756376f43f9b57d5dfed46 by julian.lettner
Make linter happy
The file was modifiedcompiler-rt/lib/sanitizer_common/tests/sanitizer_mac_test.cpp
Commit e1ab90001a0bac1d1bebe4116ce0e89567138283 by phosek
Revert "[Fuchsia] Rely on linker switch rather than dead code ref for profile runtime"

This reverts commit d51054217403b47f452619e11318bd214749a845 since
it broke several bots.
The file was modifiedclang/lib/Driver/ToolChains/Fuchsia.h
The file was modifiedclang/test/Driver/fuchsia.c
The file was modifiedllvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
The file was modifiedllvm/test/Instrumentation/InstrProfiling/linkage.ll
The file was modifiedclang/lib/Driver/ToolChains/Fuchsia.cpp
Commit b16ed493ddc22a100341b1e7d9b11282a8994e96 by phosek
[Fuchsia] Rely on linker switch rather than dead code ref for profile runtime

Follow the model used on Linux, where the clang driver passes the
linker a -u switch to force the profile runtime to be linked in,
rather than having every TU emit a dead function with a reference.

Differential Revision: https://reviews.llvm.org/D79835
The file was addedclang/test/Driver/Inputs/resource_dir_with_per_target_subdir/lib/x86_64-fuchsia/libclang_rt.profile.a
The file was modifiedllvm/test/Instrumentation/InstrProfiling/linkage.ll
The file was modifiedclang/lib/Driver/ToolChains/Fuchsia.h
The file was modifiedclang/test/Driver/fuchsia.c
The file was modifiedclang/lib/Driver/ToolChains/Fuchsia.cpp
The file was modifiedllvm/lib/Transforms/Instrumentation/InstrProfiling.cpp
The file was addedclang/test/Driver/Inputs/resource_dir_with_per_target_subdir/lib/aarch64-fuchsia/libclang_rt.profile.a
Commit 3d40c7518985d65fb91b6d73130fe7597bc7555a by listmail
[Statepoint] Switch RS4GC to using gc-live bundle form

Now that we have an operand based form for the GC arguments to a statepoint intrinsic, update RS4GC to use it and update tests to reflect. This is pretty straight forward. I nearly landed without review, but figured a second set of eyes didn't hurt.

Differential Revision: https://reviews.llvm.org/D81121
The file was modifiedllvm/test/Transforms/RewriteStatepointsForGC/scalar-base-vector.ll
The file was modifiedllvm/lib/IR/IRBuilder.cpp
The file was modifiedllvm/test/Transforms/RewriteStatepointsForGC/statepoint-format.ll
The file was modifiedllvm/test/Transforms/RewriteStatepointsForGC/rematerialize-derived-pointers.ll
The file was modifiedllvm/lib/Transforms/Scalar/RewriteStatepointsForGC.cpp
The file was modifiedllvm/test/Transforms/RewriteStatepointsForGC/gc-relocate-creation.ll
The file was modifiedllvm/test/Transforms/RewriteStatepointsForGC/basic.ll
The file was modifiedllvm/test/Transforms/RewriteStatepointsForGC/scalar-base-vector-2.ll
The file was modifiedllvm/test/Transforms/RewriteStatepointsForGC/statepoint-attrs.ll
The file was modifiedllvm/test/Transforms/RewriteStatepointsForGC/base-pointers-4.ll
Commit a95c08db122ef33576cd8f35094afcd1ea668d68 by Jan Korous
[Analyzer][NoUncountedMembersChecker] Fix crash for C structs

Fixes https://bugs.llvm.org/show_bug.cgi?id=46177
Fixes second bug reported in https://bugs.llvm.org/show_bug.cgi?id=46142
The file was modifiedclang/lib/StaticAnalyzer/Checkers/WebKit/NoUncountedMembersChecker.cpp
Commit 3463d9835b02a2c1b22fabadb4ba1a175fea6dad by ntv
[mlir][Linalg] Add a hoistViewAllocOps helper function

This revision adds a helper function to hoist alloc/dealloc pairs and
alloca op out of immediately enclosing scf::ForOp if both conditions are true:
   1. all operands are defined outside the loop.
   2. all uses are ViewLikeOp or DeallocOp.

This is now considered Linalg-specific and will be generalized on a per-need basis.

Differential Revision: https://reviews.llvm.org/D81152
The file was addedmlir/include/mlir/Dialect/Linalg/Transforms/Hoisting.h
The file was addedmlir/lib/Dialect/Linalg/Transforms/Hoisting.cpp
The file was modifiedmlir/test/lib/Transforms/CMakeLists.txt
The file was addedmlir/test/Dialect/Linalg/hoisting.mlir
The file was modifiedmlir/tools/mlir-opt/mlir-opt.cpp
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/CMakeLists.txt
The file was addedmlir/test/lib/Transforms/TestLinalgHoisting.cpp
Commit 072192d54aa0a5c4bb694be8280dd4fef495b582 by sunfish
[WebAssembly] Fix a testcase to be independent of the sysroot default

As a followup to D62922, add a sysroot command-line option to this test
to ensure that the output is independent of any default sysroot options,
and adjust the reactor test to be more consistent with the command test.
The file was modifiedclang/test/Driver/wasm-toolchain.c
Commit fa42620afbbd5736777d5bfe4a1beab1ce4c6606 by mtrofin
[docs] Referenced llvm workflow in HowToAddABuilder

Reviewers: gkistanova, dblaikie

Subscribers: llvm-commits

Tags: #llvm

Differential Revision: https://reviews.llvm.org/D81046
The file was modifiedllvm/docs/HowToAddABuilder.rst