SuccessChanges

Summary

  1. [llvm-reduce] Skip terminators when reducing instructions. (details)
  2. [NFC][InstCombine] Add tests for negation of freeze (details)
  3. [InstCombine] Negator: freeze is freely negatible if it's operand is negatible (details)
  4. Update FIR registration to not rely on the global MLIR dialect registry (NFC) (details)
  5. [flang][openacc] Fix wait-argument for wait clause + add tests (details)
  6. [clang][Driver] Implement AddClangSystemIncludeArgs and HasNativeLLVMSupport for the OpenBSD clang driver. (details)
Commit 51a82828fb291fc8f7768711c4b769157d5f0227 by flo
[llvm-reduce] Skip terminators when reducing instructions.

Removing terminators will result in invalid IR, making further
reductions pointless. I do not think there is any valid use case where
we actually want to create invalid IR as part of a reduction.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D86210
The file was modifiedllvm/test/Reduce/remove-funcs.ll
The file was modifiedllvm/test/Reduce/remove-instructions.ll
The file was addedllvm/test/Reduce/do-not-remove-terminator.ll
The file was modifiedllvm/tools/llvm-reduce/deltas/ReduceInstructions.cpp
Commit b899d13a0f157a43295d0906fe761d39c8cf467f by lebedev.ri
[NFC][InstCombine] Add tests for negation of freeze
The file was modifiedllvm/test/Transforms/InstCombine/sub-of-negatible.ll
Commit f6decfa36d89a308ef6769a38b836d1352c10fb4 by lebedev.ri
[InstCombine] Negator: freeze is freely negatible if it's operand is negatible
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineNegator.cpp
The file was modifiedllvm/test/Transforms/InstCombine/sub-of-negatible.ll
Commit f6615b2ddb3d046cc7a99ec74ee032ea21a1d27a by joker.eph
Update FIR registration to not rely on the global MLIR dialect registry (NFC)

MLIR is removing "soon" the global dialect registry, this patch is
transitionning FIR to not rely on it anymore.
The file was modifiedflang/tools/tco/tco.cpp
The file was modifiedflang/include/flang/Optimizer/Dialect/FIRDialect.h
Commit 86bbf8e6fc2bf6396c1efae556bacda054f90b33 by clementval
[flang][openacc] Fix wait-argument for wait clause + add tests

This patch fix the usage of the wait-argument in a clause and add several tests and fix the unparsing of
the wait-argument.

Reviewed By: sscalpone

Differential Revision: https://reviews.llvm.org/D86325
The file was modifiedflang/test/Semantics/acc-clause-validity.f90
The file was modifiedflang/lib/Parser/openacc-parsers.cpp
The file was modifiedflang/lib/Parser/unparse.cpp
Commit 2b37174b9a5db235e493cb72e4454cc08a1b1791 by brad
[clang][Driver] Implement AddClangSystemIncludeArgs and HasNativeLLVMSupport for the OpenBSD clang driver.

If not overridden, AddClangSystemIncludeArgs's implementation is empty, so by
default, no system include args are added to the Clang driver. This means that
invoking Clang without the frontend must include a manual -I/usr/include flag,
which is inconsistent behavior. Therefore, override and implement this method
to match. Some boilerplate is also borrowed for handling of the other driver
flags.

While we are here, also override and enable HasNativeLLVMSupport.

Patch by: 3405691582 (dana koch)

Differential Revision: https://reviews.llvm.org/D86412
The file was modifiedclang/lib/Driver/ToolChains/OpenBSD.h
The file was modifiedclang/lib/Driver/ToolChains/OpenBSD.cpp
The file was modifiedclang/lib/Frontend/InitHeaderSearch.cpp