UnstableChanges

Summary

  1. [NFC][SimplifyCFG] Add tests for `FoldTwoEntryPHINode()` with prof md (details)
  2. [Bazel] Swap stray td_srcs to deps (details)
  3. [lld/mac] Fix comment typo in new start-end.s test (details)
  4. [libc] Accommodate Fuchsia's death test framework in fenv tests. (details)
  5. [SCEV] Fix bug involving zero step and non-invariant RHS in trip count logic (details)
  6. [cmake] Export LLVM_HOST_TRIPLE in the LLVMConfig.cmake (details)
  7. [Attributor][FIX] checkForAllInstructions, correctly handle declarations (details)
Commit 1f341aedc923ad5bc7654eabc07429a388c0fc0c by lebedev.ri
[NFC][SimplifyCFG] Add tests for `FoldTwoEntryPHINode()` with prof md
The file was addedllvm/test/Transforms/SimplifyCFG/fold-two-entry-phi-node-with-two-blocks-profmd.ll
The file was modifiedllvm/test/Transforms/SimplifyCFG/speculatively-execute-block-profmd.ll
The file was addedllvm/test/Transforms/SimplifyCFG/fold-two-entry-phi-node-with-one-block-profmd.ll
Commit 3f2c1e99e44d028d5e9dd685f3c568f2661f2f68 by gcmn
[Bazel] Swap stray td_srcs to deps

This is the last instance of td_srcs in MLIR core build files. `deps` is
generally preferred. There are still some cases where `td_srcs` is
useful where creating a td_library would just be another layer of
indirection, so not (yet) dropping it entirely.

Differential Revision: https://reviews.llvm.org/D106716
The file was modifiedutils/bazel/llvm-project-overlay/mlir/test/BUILD.bazel
Commit 92c085e7c45298a4f4e96f50b21f39ce309279fa by thakis
[lld/mac] Fix comment typo in new start-end.s test
The file was modifiedlld/test/MachO/start-end.s
Commit c24c18bba61fa4e9e5513b70cd133ec39eaf9e25 by sivachandra
[libc] Accommodate Fuchsia's death test framework in fenv tests.

Fuchsia's death test framework runs the closure which can die in a
different thread. Hence, the FP exceptions which cause the closure to
die should be enalbed in the closure.

Reviewed By: michaelrj

Differential Revision: https://reviews.llvm.org/D106683
The file was modifiedlibc/test/src/fenv/feholdexcept_test.cpp
The file was modifiedlibc/test/src/fenv/enabled_exceptions_test.cpp
Commit 4a3dc7dc9a03ff4864a0e2cd31b15848481c322b by listmail
[SCEV] Fix bug involving zero step and non-invariant RHS in trip count logic

Eli pointed out the issue when reviewing D104140. The max trip count logic makes an assumption that the value of IV changes. When the step is zero, the nowrap fact becomes trivial, and thus there's nothing preventing the loop from being nearly infinite. (The "nearly" part is because mustprogress may disallow an infinite loop while still allowing 999999999 iterations before RHS happens to allow an exit.)

This is very difficult to see in practice. You need a means to produce a loop varying RHS in a mustprogress loop which doesn't allow the loop to be infinite. In most cases, LICM or SCEV are smart enough to remove the loop varying expressions.

Differential Revision: https://reviews.llvm.org/D106327
The file was modifiedllvm/test/Analysis/ScalarEvolution/trip-count-unknown-stride.ll
The file was modifiedllvm/lib/Analysis/ScalarEvolution.cpp
Commit 328bb2caae810d484422a13c279939c03ac8c6b3 by stilis
[cmake] Export LLVM_HOST_TRIPLE in the LLVMConfig.cmake

This is referenced in several of the cmake files that are part of an llvm install and it is also useful by downstream components such as onnx-mlir.

Differential Revision: https://reviews.llvm.org/D106686
The file was modifiedllvm/cmake/modules/LLVMConfig.cmake.in
Commit 0cd964ff254888d563659f4f8f39c934732aa487 by kuterdinel
[Attributor][FIX] checkForAllInstructions, correctly handle declarations

checkForAllInstructions was not handling declarations correctly.
It should have been returning false when it gets called on a declaration

The patch also fixes a test case for AAFunctionReachability for it to be able
to pass after the changes to the checkForAllinstructions.

Differential Revision: https://reviews.llvm.org/D106625
The file was modifiedllvm/lib/Transforms/IPO/Attributor.cpp
The file was modifiedllvm/unittests/Transforms/IPO/AttributorTest.cpp