SuccessChanges

Summary

  1. Restore diagnostic handler after CodeGenAction::ExecuteAction (details)
  2. [RISCV] Convert VSLIDE(UP|DOWN) nodes to "VL" versions (NFC) (details)
  3. [TTI] Unify FavorPostInc and FavorBackedgeIndex into getPreferredAddressingMode (details)
  4. Revert "[TTI] Unify FavorPostInc and FavorBackedgeIndex into getPreferredAddressingMode" (details)
  5. [LoopLoadElim] Pass ScalarEvolution in old pass manager. PR49141 (details)
  6. Recommit "[TTI] Unify FavorPostInc and FavorBackedgeIndex into getPreferredAddressingMode" (details)
  7. [X86][SSE] Add missing USUBSAT test coverage (details)
  8. [X86][AVX] Regenerate PSUBUS tests for slow/fast shuffle AVX2 targets (details)
  9. [lldb] Remove the legacy FreeBSD plugin (details)
  10. [lldb] Rename FreeBSDRemote to FreeBSD (NFC) (details)
  11. [sanitizer] [arm] Disable some LSAN tests for arm-linux-gnueabihf (details)
  12. Add Semantic check for Flang OpenMP 4.5 - 2.7.1  Do Loop restrictions. (details)
Commit e54811ff7e0bc99f337bcbb569311bb166187322 by marco.antognini
Restore diagnostic handler after CodeGenAction::ExecuteAction

Fix dangling pointer to local variable and address some typos.

Reviewed By: xur

Differential Revision: https://reviews.llvm.org/D96487
The file was modifiedclang/lib/CodeGen/CodeGenAction.cpp
The file was modifiedllvm/include/llvm/IR/LLVMContext.h
Commit 4bd5bd40094c7b8b691cf394d813efc48d82acfd by fraser
[RISCV] Convert VSLIDE(UP|DOWN) nodes to "VL" versions (NFC)

This patch prepares the RISCV VSLIDEUP and VSLIDEDOWN custom nodes to
ones carrying additional mask and vector-length operands. This is
primarily so they can be used by both systems.

This also takes the opportunity to create some helper functions to deal
with the common task of getting the default (unmasked) VL operands.

Reviewed By: craig.topper, arcbbb

Differential Revision: https://reviews.llvm.org/D96505
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.cpp
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoVVLPatterns.td
The file was modifiedllvm/lib/Target/RISCV/RISCVISelLowering.h
Commit cd6de0e8de4a5fd558580be4b1a07116914fc8ed by sjoerd.meijer
[TTI] Unify FavorPostInc and FavorBackedgeIndex into getPreferredAddressingMode

This refactors shouldFavorPostInc() and shouldFavorBackedgeIndex() into
getPreferredAddressingMode() so that we have one interface to steer LSR in
generating the preferred addressing mode.

Differential Revision: https://reviews.llvm.org/D96600
The file was modifiedllvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h
The file was modifiedllvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
The file was modifiedllvm/lib/Analysis/TargetTransformInfo.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.h
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfo.h
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfoImpl.h
Commit effc3b079927a6dd3084b4ff712ec07f926366f0 by sjoerd.meijer
Revert "[TTI] Unify FavorPostInc and FavorBackedgeIndex into getPreferredAddressingMode"

This reverts commit cd6de0e8de4a5fd558580be4b1a07116914fc8ed.
The file was modifiedllvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
The file was modifiedllvm/lib/Analysis/TargetTransformInfo.cpp
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfo.h
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfoImpl.h
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.h
The file was modifiedllvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
Commit e3c759bd583db3ff71ed6607103f75848287af26 by mkazantsev
[LoopLoadElim] Pass ScalarEvolution in old pass manager. PR49141

Loop canonicalization may end up deleting blocks from CFG. And
Scalar Evolution may still keep cached referenced to those blocks
unless updated properly.
The file was addedllvm/test/Transforms/LoopLoadElim/pr-49141.ll
The file was modifiedllvm/lib/Transforms/Scalar/LoopLoadElimination.cpp
Commit 357237e93ec1c75302bf11975cfadc8fc2220a55 by sjoerd.meijer
Recommit "[TTI] Unify FavorPostInc and FavorBackedgeIndex into getPreferredAddressingMode"

This reverts commit effc3b079927a6dd3084b4ff712ec07f926366f0, with the build
problem fixed.
The file was modifiedllvm/lib/Analysis/TargetTransformInfo.cpp
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
The file was modifiedllvm/lib/Target/Hexagon/HexagonTargetTransformInfo.h
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfoImpl.h
The file was modifiedllvm/lib/Target/ARM/ARMTargetTransformInfo.h
The file was modifiedllvm/lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LoopStrengthReduce.cpp
The file was modifiedllvm/include/llvm/Analysis/TargetTransformInfo.h
Commit 7f0ed92667249b48e2064c0e67cc256b6141752b by llvm-dev
[X86][SSE] Add missing USUBSAT test coverage

Before we start removing combineSubToSubus (PR40111) - make sure we have actually have test coverage for SUB(X,TRUNC(UMIN(ZEXT(X),Y))) -> USUBSAT(X,TRUNC(UMIN(Y,C)))) patterns
The file was modifiedllvm/test/CodeGen/X86/psubus.ll
Commit f32dc6bb42fd24517289fd1e3418994daa4fec20 by llvm-dev
[X86][AVX] Regenerate PSUBUS tests for slow/fast shuffle AVX2 targets

update_llc_test_checks.py isn't reporting when we don't have a usable prefix for a particular run any more - so we lost all AVX2 testing!
The file was modifiedllvm/test/CodeGen/X86/psubus.ll
Commit cd443398566b953642ead7c81528ab5b4e211eb9 by mgorny
[lldb] Remove the legacy FreeBSD plugin

The new FreeBSDRemote plugin has reached feature parity with the legacy
plugin, so we can finally remove the latter.  The new plugin will
be renamed to FreeBSD in a separate commit to avoid confusion.

Differential Revision: https://reviews.llvm.org/D96555
The file was removedlldb/source/Plugins/Process/FreeBSD/POSIXStopInfo.cpp
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_powerpc.h
The file was removedlldb/source/Plugins/Process/FreeBSD/ProcessMonitor.h
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIX.h
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_mips64.h
The file was removedlldb/source/Plugins/Process/FreeBSD/ProcessMonitor.cpp
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_x86.h
The file was removedlldb/source/Plugins/Process/FreeBSD/CMakeLists.txt
The file was modifiedlldb/source/Plugins/Process/CMakeLists.txt
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_mips64.cpp
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_x86.cpp
The file was removedlldb/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.cpp
The file was modifiedlldb/tools/lldb-server/CMakeLists.txt
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_powerpc.cpp
The file was removedlldb/source/Plugins/Process/FreeBSD/ProcessFreeBSD.h
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm.h
The file was modifiedlldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.h
The file was removedlldb/source/Plugins/Process/FreeBSD/POSIXStopInfo.h
The file was removedlldb/source/Plugins/Process/FreeBSD/FreeBSDThread.h
The file was removedlldb/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm64.h
The file was modifiedlldb/source/Plugins/Platform/FreeBSD/PlatformFreeBSD.cpp
The file was removedlldb/source/Plugins/Process/FreeBSD/RegisterContextPOSIXProcessMonitor_arm.cpp
Commit bee4d6efe1781365cb82dcc94ad959309354af6f by mgorny
[lldb] Rename FreeBSDRemote to FreeBSD (NFC)

Differential Revision: https://reviews.llvm.org/D96557
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_x86_64.cpp
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD.cpp
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_arm64.h
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_arm64.cpp
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_mips64.cpp
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeThreadFreeBSD.cpp
The file was modifiedlldb/source/Plugins/Process/CMakeLists.txt
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.h
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_arm.cpp
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeThreadFreeBSD.h
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/CMakeLists.txt
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD.h
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.h
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.h
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_x86_64.h
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_arm.h
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD.cpp
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeProcessFreeBSD.cpp
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.h
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeThreadFreeBSD.h
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_arm.cpp
The file was addedlldb/source/Plugins/Process/FreeBSD/CMakeLists.txt
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeProcessFreeBSD.cpp
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_x86_64.cpp
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_arm64.cpp
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.cpp
The file was modifiedlldb/tools/lldb-server/CMakeLists.txt
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_arm64.h
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD.h
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_mips64.h
The file was modifiedlldb/tools/lldb-server/lldb-gdbserver.cpp
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_x86_64.h
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_mips64.h
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_arm.h
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeThreadFreeBSD.cpp
The file was removedlldb/source/Plugins/Process/FreeBSDRemote/NativeRegisterContextFreeBSD_powerpc.cpp
The file was addedlldb/source/Plugins/Process/FreeBSD/NativeRegisterContextFreeBSD_powerpc.cpp
Commit b9d3234c70588e6591f3607da39cc03bded160fd by adhemerval.zanella
[sanitizer] [arm] Disable some LSAN tests for arm-linux-gnueabihf

Reinstate D90628 since the fix done by D96337 does not change the outcome
of the https://bugs.llvm.org/show_bug.cgi?id=48052
The file was modifiedcompiler-rt/test/lsan/TestCases/do_leak_check_override.cpp
The file was modifiedcompiler-rt/test/lsan/TestCases/use_after_return.cpp
The file was modifiedcompiler-rt/test/lsan/TestCases/ignore_object.c
The file was modifiedcompiler-rt/test/lsan/TestCases/Linux/use_tls_pthread_specific_dynamic.cpp
The file was modifiedcompiler-rt/test/lsan/TestCases/disabler.c
The file was modifiedcompiler-rt/test/lsan/TestCases/Linux/cleanup_in_tsd_destructor.c
Commit 20e3a6cb6270b68139f74529ab8efdfad1263533 by yhegde
Add Semantic check for Flang OpenMP 4.5 - 2.7.1  Do Loop restrictions.
Implementation of Do loop iteration variable check, Do while loop check, Do loop cycle restrictions.
Also to check whether the ordered clause is present on the loop construct if any ordered region ever
binds to a loop region arising from the loop construct.

Files:

check-omp-structure.h
check-omp-structure.cpp
resolve-directives.cpp

Testcases:

omp-do06-positivecases.f90
omp-do06.f90
omp-do08.f90
omp-do09.f90
omp-do10.f90
omp-do11.f90
omp-do12.f90
omp-do13.f90
omp-do14.f90
omp-do15.f90
omp-do16.f90
omp-do17.f90

Reviewed by: Kiran Chandramohan @kiranchandramohan , Valentin Clement @clementval

Differential Revision: https://reviews.llvm.org/D92732
The file was addedflang/test/Semantics/omp-do13.f90
The file was modifiedflang/test/Semantics/omp-do10.f90
The file was modifiedflang/lib/Semantics/check-omp-structure.cpp
The file was modifiedflang/lib/Semantics/resolve-directives.cpp
The file was addedflang/test/Semantics/omp-do11.f90
The file was addedflang/test/Semantics/omp-do17.f90
The file was modifiedflang/test/Semantics/omp-do09.f90
The file was addedflang/test/Semantics/omp-do15.f90
The file was addedflang/test/Semantics/omp-do06-positivecases.f90
The file was modifiedflang/test/Semantics/omp-do08.f90
The file was modifiedflang/lib/Semantics/check-omp-structure.h
The file was addedflang/test/Semantics/omp-do14.f90
The file was addedflang/test/Semantics/omp-do16.f90
The file was modifiedflang/test/Semantics/omp-do06.f90
The file was addedflang/test/Semantics/omp-do12.f90