FailedChanges

Changes from Git (git http://labmaster3.local/git/llvm-project.git)

Summary

  1. [GlobalISel] Add a `X, Y = G_UNMERGE(G_ZEXT Z)` -> X = G_ZEXT Z; Y = 0 combine (details)
  2. [Coroutines] Fix a typo in documentation (details)
  3. [DebugInfo] Remove dots from getFilenameByIndex return value (details)
  4. [lld][WebAssembly] Allow globals imports via import_name/import_module (details)
  5. [DebugInfo] Fix methods of AsmPrinter to emit values corresponding to the DWARF format (1/19). (details)
  6. [DebugInfo] Fix DIE value emitters to be compatible with DWARF64 (2/19). (details)
  7. [DebugInfo] Add new emitting methods for values which depend on the DWARF format (3/19). (details)
  8. [DebugInfo] Add the -dwarf64 switch to llc and other internal tools (4/19). (details)
  9. [DebugInfo] Fix emitting DWARF64 compilation units (5/19). (details)
  10. [DebugInfo] Use a common method to determine a suitable form for section offsts (6/19). (details)
  11. [DebugInfo] Fix emitting the DW_AT_location attribute for 64-bit DWARFv3 (7/19). (details)
  12. [DebugInfo] Fix emitting DWARF64 .debug_str_offsets sections (8/19). (details)
  13. [DebugInfo] Fix emitting DWARF64 DWO compilation units and string offset tables (9/19). (details)
  14. [DebugInfo] Fix emitting DWARF64 type units (10/19). (details)
  15. [DebugInfo] Fix emitting DWARF64 .debug_aranges sections (11/19). (details)
  16. [DebugInfo] Fix emitting pre-v5 name lookup tables in the DWARF64 format (12/19). (details)
  17. [DebugInfo] Fix emitting DWARF64 .debug_rnglists sections (13/19). (details)
  18. [DebugInfo] Fix emitting DWARF64 .debug_loclists sections (14/19). (details)
  19. [DebugInfo] Fix emitting DWARF64 .debug_addr sections (15/19). (details)
  20. [DebugInfo] Fix emitting DWARF64 .debug_names sections (16/19). (details)
  21. [DebugInfo] Fix emitting DWARF64 .debug_macro[.dwo] sections (17/19). (details)
  22. [DebugInfo] Make the offset of string pool entries 64-bit (18/19). (details)
  23. [DebugInfo] Make offsets of dwarf units 64-bit (19/19). (details)
  24. [BinaryFormat/MachO] Add a missing constant. (details)
  25. [llvm-readobj] [ARMWinEH] Print ARM64 packed unwind info (details)
  26. [LLD] Allow configuring default ld.lld backend (details)
  27. [Windows][Polly] Disable LLVMPolly module for all compilers on Windows (details)
  28. [NFC][lsan][fuzzer] Relax fuzzer-leak.test (details)
  29. [X86] Pre-commit test cases for D87593 (details)
  30. [NFC][Asan] Don't use MetaData for size (details)
  31. [NFC][Asan] Remove from_memalign and rz_log (details)
  32. Revert "[Sema] Address-space sensitive index check for unbounded arrays" (details)
  33. [NFC][Asan] Reorder bitfields (details)
  34. [Asan] Cleanup kAllocBegMagic setup (details)
  35. [NFC][Asan] Return uptr as before D87646 (details)
  36. [NFC][Asan] Remove chunk pointer from metadata (details)
  37. [SVE] Fix isLoadInvariantInLoop for scalable vectors (details)
  38. [doc] Fix broken link (details)
  39. [DebugInfo] Support both forward and backward slashes in tests (details)
  40. [Support] Make building with snmalloc work (details)
  41. [MVE] Rename of tests making them consistent with tail-predication tests. NFC. (details)
  42. GlobalISel/IRTranslator resetTargetOptions based on function attributes (details)
  43. [lib/Object] - Refine interface of ELFFile<ELFT>. NFCI. (details)
  44. [NFC][DebugInfo] Use consistent regex group spelling (details)
  45. [llvm-readobj/elf] - Simplify and refine the implementation which dumps .stack_sizes (details)
  46. [X86] detectAVGPattern - accept non-pow2 vectors by padding. (details)
  47. [MVE] fix typo in llvm debug message. NFC. (details)
  48. [Transforms][Coroutines] Add missing header path to CMakeLists.txt (details)
  49. [SelectionDAG] Remove unused FP constant in getNegatedExpression (details)
  50. [ARM] Corrected condition in isSaturatingConditional (details)
  51. [X86] Update SSE/AVX integer MINMAX intrinsics to emit llvm.smax.* etc. (PR46851) (details)
  52. Revert "[InstCombine] Simplify select operand based on equality condition" (details)
  53. [mlir][integration_test] Linalg Conv folder renamed to CPU (details)
  54. [mlir] check for failures when packing function sigunatures in std->llvm conversion (details)
  55. Recommit "[ConstraintSystem] Add helpers to deal with linear constraints." (details)
  56. SelectionDAGBuilder.h - remove unnecessary includes. NFCI. (details)
  57. StatepointLowering.cpp - remove unnecessary includes. NFCI. (details)
  58. SpillPlacement.cpp - remove unnecessary includes. NFCI. (details)
  59. Revert "RegAllocFast: Record internal state based on register units" (details)
  60. [lldb/cmake] Fix testing support library dependencies (details)
  61. [lldb] Improve qemu interop for aarch64 (details)
  62. [Scalarizer] Avoid changing name of non-instructions (details)
  63. [ARM][MVE] Tail-predication: use unsigned SCEV ranges for tripcount (details)
Commit b3afad046301d8bb1f4471aceaad704b87de3a69 by qcolombet
[GlobalISel] Add a `X, Y = G_UNMERGE(G_ZEXT Z)` -> X = G_ZEXT Z; Y = 0 combine

Add a combiner helper to transform unmerge of zext into one zext and
a constant 0

Differential Revision: https://reviews.llvm.org/D87427
The file was modifiedllvm/include/llvm/CodeGen/GlobalISel/CombinerHelper.h
The file was modifiedllvm/test/CodeGen/AArch64/GlobalISel/combine-unmerge.mir
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/srem.i32.ll
The file was modifiedllvm/lib/CodeGen/GlobalISel/CombinerHelper.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/udiv.i32.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/shl-ext-reduce.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/urem.i32.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/sdiv.i32.ll
The file was modifiedllvm/include/llvm/Target/GlobalISel/Combine.td
Commit 1f837265eb082441337a42420bf415a99c3f4baa by xun
[Coroutines] Fix a typo in documentation

In the example, the variable that's crossing suspend point was referred wrongly, fix it.

Differential Revision: https://reviews.llvm.org/D83563
The file was modifiedllvm/docs/Coroutines.rst
Commit 042c23506869b4ae9a49d2c4bc5ea6e6baeabe78 by phosek
[DebugInfo] Remove dots from getFilenameByIndex return value

When concatenating directory with filename in getFilenameByIndex, we
might end up with a path that contains extra dots. For example, if the
input is /path and ./example, we would return /path/./example. Run
sys::path::remove_dots on the output to eliminate unnecessary dots.

Differential Revision: https://reviews.llvm.org/D87657
The file was modifiedllvm/test/tools/llvm-symbolizer/frame-fortran.s
The file was modifiedllvm/lib/DebugInfo/DWARF/DWARFDebugLine.cpp
Commit 2c12b056bececd3fce3d5a3b731b4ff8fa6dfbbb by sbc
[lld][WebAssembly] Allow globals imports via import_name/import_module

This feature already exists but was limited to function
symbols.

Differential Revision: https://reviews.llvm.org/D87666
The file was modifiedlld/wasm/Relocations.cpp
The file was modifiedlld/test/wasm/mutable-globals.s
Commit 380e746bcca87baa5c746854b44d6a5cea6f7bde by ikudrin
[DebugInfo] Fix methods of AsmPrinter to emit values corresponding to the DWARF format (1/19).

These methods are used to emit values which are 32-bit in DWARF32 and
64-bit in DWARF64. The patch fixes them so that they choose the length
automatically, depending on the DWARF format set in the Context.

Differential Revision: https://reviews.llvm.org/D87008
The file was addedllvm/unittests/CodeGen/TestAsmPrinter.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
The file was addedllvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
The file was addedllvm/unittests/CodeGen/TestAsmPrinter.h
The file was modifiedllvm/include/llvm/CodeGen/AsmPrinter.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
The file was modifiedllvm/unittests/CodeGen/CMakeLists.txt
Commit a8058c6f8d1d3a360986f05b74f548995b384fcd by ikudrin
[DebugInfo] Fix DIE value emitters to be compatible with DWARF64 (2/19).

DW_FORM_sec_offset and DW_FORM_strp imply values of different sizes with
DWARF32 and DWARF64. The patch fixes DIE value classes to use correct
sizes when emitting their values. For DIELocList it ensures that the
requested DWARF form matches the current DWARF format because that class
uses a method that selects the size automatically.

Differential Revision: https://reviews.llvm.org/D87009
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DIE.cpp
The file was addedllvm/unittests/CodeGen/DIETest.cpp
The file was modifiedllvm/unittests/CodeGen/CMakeLists.txt
Commit c3c501f5d79130fe9bbe4f6ca689f2d83f92373e by ikudrin
[DebugInfo] Add new emitting methods for values which depend on the DWARF format (3/19).

These methods are going to be used in subsequent patches.

Differential Revision: https://reviews.llvm.org/D87010
The file was modifiedllvm/include/llvm/CodeGen/AsmPrinter.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinter.cpp
The file was modifiedllvm/unittests/CodeGen/AsmPrinterDwarfTest.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AsmPrinterDwarf.cpp
Commit 982b31fad2983eef08dbbddb2d58c635bdf6cf08 by ikudrin
[DebugInfo] Add the -dwarf64 switch to llc and other internal tools (4/19).

The patch adds a switch to enable emitting debug info in the 64-bit
DWARF format. Most emitter for sections will be updated in the subsequent
patches, whereas for .debug_line and .debug_frame the emitters are in
the MC library, which is already updated.

For now, the switch is enabled only for 64-bit ELF targets.

Differential Revision: https://reviews.llvm.org/D87011
The file was addedllvm/test/DebugInfo/X86/debug-line-dwarf64.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
The file was addedllvm/test/DebugInfo/X86/dwarf64-support.ll
The file was addedllvm/test/DebugInfo/X86/debug-frame-dwarf64.ll
Commit 5dd1c59188988a030dfc80bd20729534f3a41b46 by ikudrin
[DebugInfo] Fix emitting DWARF64 compilation units (5/19).

The patch also adds a method to choose an appropriate DWARF form
to represent section offsets according to the version and the format
of producing debug info.

Differential Revision: https://reviews.llvm.org/D87014
The file was modifiedllvm/unittests/CodeGen/DIETest.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
The file was addedllvm/test/DebugInfo/X86/debug-info-dwarf64.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DIE.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
Commit cae7c1eb781d591aa3d16ec6bc3a8fe1ace6e4ef by ikudrin
[DebugInfo] Use a common method to determine a suitable form for section offsts (6/19).

This is mostly an NFC patch because the involved methods are used when
emitting DWO files, which is incompatible with DWARFv3, or for platforms
where DWARF64 is not supported yet.

Differential Revision: https://reviews.llvm.org/D87015
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DIE.cpp
The file was modifiedllvm/unittests/CodeGen/DIETest.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
Commit 26f1f18831342e9c5e137e68d067d7383d72f30d by ikudrin
[DebugInfo] Fix emitting the DW_AT_location attribute for 64-bit DWARFv3 (7/19).

The patch uses a common method to determine the appropriate form for
the value of the attribute.

Differential Revision: https://reviews.llvm.org/D87016
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfCompileUnit.cpp
The file was modifiedllvm/test/DebugInfo/X86/DW_AT_location-reference.ll
Commit 383d34c077ae7f845bf751936f59f12598e60b3e by ikudrin
[DebugInfo] Fix emitting DWARF64 .debug_str_offsets sections (8/19).

The patch fixes calculating the size of the table and emitting the unit
length field.

Differential Revision: https://reviews.llvm.org/D87017
The file was addedllvm/test/DebugInfo/X86/debug-str-offsets-dwarf64.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp
Commit 924dc5807690f9ee0a84e407e8cb943511845bf5 by ikudrin
[DebugInfo] Fix emitting DWARF64 DWO compilation units and string offset tables (9/19).

These two fixes are better to go together because llvm-dwarfdump is
unable to dump a table when another one is malformed.

Differential Revision: https://reviews.llvm.org/D87018
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp
The file was addedllvm/test/DebugInfo/X86/debug-str-offsets-dwo-dwarf64.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
The file was addedllvm/test/DebugInfo/X86/debug-info-dwo-dwarf64.ll
Commit 18f23b3ecc6d0cec31c655b7ae9054cf0edf630e by ikudrin
[DebugInfo] Fix emitting DWARF64 type units (10/19).

The patch fixes emitting the offset to the type DIE. All other fields
are already fixed in previous patches.

Differential Revision: https://reviews.llvm.org/D87021
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfUnit.h
The file was addedllvm/test/DebugInfo/X86/debug-types-dwarf64.ll
Commit b118030f3fa68b308d149d7d4303e0623ead0463 by ikudrin
[DebugInfo] Fix emitting DWARF64 .debug_aranges sections (11/19).

The patch fixes calculating the size of the table and emitting
the fields which depend on the DWARF format by using methods that
choose appropriate sizes automatically.

Differential Revision: https://reviews.llvm.org/D87012
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
The file was addedllvm/test/DebugInfo/X86/debug-aranges-dwarf64.ll
Commit 03b09c6b68bbce80bea47db40ad85809d363b260 by ikudrin
[DebugInfo] Fix emitting pre-v5 name lookup tables in the DWARF64 format (12/19).

The transition is done by using methods of AsmPrinter which
automatically emit values in compliance with the selected DWARF format.

Differential Revision: https://reviews.llvm.org/D87013
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
The file was addedllvm/test/DebugInfo/X86/debug-pubtables-dwarf64.ll
Commit f9b242fe24f764166f818b3260c0635fc0bef6e9 by ikudrin
[DebugInfo] Fix emitting DWARF64 .debug_rnglists sections (13/19).

The size of the offsets in the table depends on the DWARF format.

Differential Revision: https://reviews.llvm.org/D87019
The file was modifiedllvm/test/DebugInfo/X86/split-dwarf-v5-ranges.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Commit 3158d3dd4b7e5c6e2aff7c81355757d26579f1a3 by ikudrin
[DebugInfo] Fix emitting DWARF64 .debug_loclists sections (14/19).

The size of the offsets in the table depends on the DWARF format.

Differential Revision: https://reviews.llvm.org/D87020
The file was modifiedllvm/test/CodeGen/X86/debug-loclists.ll
The file was modifiedllvm/test/CodeGen/X86/debug-loclists-lto.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
Commit 00ce54689d30fd65c49ebc87a21841e834f2d086 by ikudrin
[DebugInfo] Fix emitting DWARF64 .debug_addr sections (15/19).

The patch fixes emitting the header of the table. The content is
independent of the DWARF format.

Differential Revision: https://reviews.llvm.org/D87022
The file was addedllvm/test/DebugInfo/X86/debug-addr-dwarf64.ll
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AddressPool.cpp
Commit a93dd26d8ced81d7d2e9a239a4cc33aaf0ba7c89 by ikudrin
[DebugInfo] Fix emitting DWARF64 .debug_names sections (16/19).

The patch fixes emitting the unit length field in the header of
the table and offsets to the entry pool. Note that while the patch
changes the common method to emit offsets, in fact, nothing is changed
for Apple accelerator tables, because we do not yet support DWARF64 for
those targets.

Differential Revision: https://reviews.llvm.org/D87023
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
The file was addedllvm/test/DebugInfo/X86/debug-names-dwarf64.ll
Commit 7e1e4e81cbcac6156005a31d90b604714c92298c by ikudrin
[DebugInfo] Fix emitting DWARF64 .debug_macro[.dwo] sections (17/19).

The patch fixes emitting flags and the debug_line_offset field in
the header, as well as the reference to the macro string for
a pre-standard GNU .debug_macro extension.

Differential Revision: https://reviews.llvm.org/D87024
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfDebug.cpp
The file was addedllvm/test/DebugInfo/X86/debug-macro-dwarf64.ll
Commit 8c19ac23bdefceaaf119add8d693e89a6f7d3d81 by ikudrin
[DebugInfo] Make the offset of string pool entries 64-bit (18/19).

The string pool is shared among several units in the case of LTO,
and it potentially can exceed the limit of 4GiB for an extremely
large application. As it is now possible to emit 64-bit debugging
info, the limitation can be removed.

Differential Revision: https://reviews.llvm.org/D87025
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfStringPool.h
The file was modifiedllvm/include/llvm/CodeGen/DwarfStringPoolEntry.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfStringPool.cpp
The file was modifiedllvm/include/llvm/CodeGen/NonRelocatableStringpool.h
Commit a845ebd6333d95d58bd6ab18c6ff8bb79686c664 by ikudrin
[DebugInfo] Make offsets of dwarf units 64-bit (19/19).

In the case of LTO, several DWARF units can be emitted in one section.
For an extremely large application, they may exceed the limit of 4GiB
for 32-bit offsets. As it is now possible to emit 64-bit debugging info,
the patch enables storing the larger offsets.

Differential Revision: https://reviews.llvm.org/D87026
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DwarfFile.cpp
The file was modifiedllvm/unittests/DebugInfo/DWARF/DwarfGenerator.cpp
The file was modifiedllvm/include/llvm/CodeGen/DIE.h
The file was modifiedllvm/lib/CodeGen/AsmPrinter/DIE.cpp
The file was modifiedllvm/lib/CodeGen/AsmPrinter/AccelTable.cpp
Commit 26c293c23d3b5cf4135fce0b1e61b70d6c4dd930 by ditaliano
[BinaryFormat/MachO] Add a missing constant.

Reference:
https://opensource.apple.com/source/cctools/cctools-949.0.1/include/mach-o/loader.h.auto.html
The file was modifiedllvm/include/llvm/BinaryFormat/MachO.h
Commit 7b416c5e3683d7120e4ce390e669f89b6a72d423 by martin
[llvm-readobj] [ARMWinEH] Print ARM64 packed unwind info

In addition to printing the individual fields, synthesize and
print the corresponding prolog for the unwind info (in reverse
order, to match how it's printed for non-packed unwind info).

Differential Revision: https://reviews.llvm.org/D87370
The file was modifiedllvm/include/llvm/Support/ARMWinEH.h
The file was modifiedllvm/tools/llvm-readobj/ARMWinEHPrinter.h
The file was addedllvm/test/tools/llvm-readobj/COFF/arm64-packed-unwind.s
The file was modifiedllvm/tools/llvm-readobj/ARMWinEHPrinter.cpp
Commit 61e0b2b4c5fbbea01bb40f28ea0222b87166ccdf by martin
[LLD] Allow configuring default ld.lld backend

The motivation for this is ld.lld --help targeting MinGW which
currently prints help for the ELF backend unless -m i386pe{,p} is
added. This confuses build systems that grep through linker help to
find supported flags.

This matches LD from Binutils which always prints help for MinGW
when configured to target it.

After this change, the backend can still be overridden to any
supported ELF/MinGW target by using correct -m <arch>.

Differential Revision: https://reviews.llvm.org/D87418
The file was modifiedlld/tools/lld/lld.cpp
The file was modifiedlld/CMakeLists.txt
Commit e71cda21d71c4c92731ec7fe8345d04395a630b7 by martin
[Windows][Polly] Disable LLVMPolly module for all compilers on Windows

Before this patch, the cmake disabled loadable modules when compiling
with Visual Studio. However, the reason for this is a limitation of the
Windows DLLs, thus this restriction should apply to any compiler for the
Windows platform, such as MinGW, Cygwin, icc, etc.

Differential Revision: https://reviews.llvm.org/D87524
The file was modifiedpolly/lib/CMakeLists.txt
The file was modifiedpolly/cmake/CMakeLists.txt
Commit 3023f057d83a5920e39c647b7eaf677676b3a191 by Vitaly Buka
[NFC][lsan][fuzzer] Relax fuzzer-leak.test

With lsan we can't guarantee to catch leak on the same iteration.
The file was modifiedcompiler-rt/test/fuzzer/fuzzer-leak.test
Commit c6aadd2b72cf38142f137278a483fea7eb9bd16f by craig.topper
[X86] Pre-commit test cases for D87593

The memory operand for these is incorrect.
The file was modifiedllvm/test/CodeGen/X86/vmaskmov-offset.ll
Commit d74e1f3a5119ba6b2b6f49a3e5cfab10ea903d93 by Vitaly Buka
[NFC][Asan] Don't use MetaData for size

Now we have enough space in the ChunkHeader.
45 bit is enough for kMaxAllowedMallocSize.

Depends on D87642.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D87643
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp
Commit cad961bb24d3b1ec63571e8cac6aa8b16245f95b by Vitaly Buka
[NFC][Asan] Remove from_memalign and rz_log

Before D87643 they where used to optimize UsedSize(). Which was
called frequently from leak scanner.
It was also used for calls from QuarantineCallback
but we have heavy get_allocator().Deallocate call there anyway.

Depends on D87643.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D87644
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp
Commit c8ddf27ddbbe140d8acbcf1b2d3fdfbba253d02c by Chris.Hamilton
Revert "[Sema] Address-space sensitive index check for unbounded arrays"

This reverts commit da55e9ba1273284f1af61bceeaeb25e487838034.

Build bots uncovered coverage gap in testing.  Change not ready.
The file was modifiedclang/lib/Sema/SemaChecking.cpp
The file was modifiedclang/test/SemaCXX/constant-expression-cxx1y.cpp
The file was removedclang/test/Sema/unbounded-array-bounds.c
The file was modifiedclang/test/Sema/const-eval.c
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
Commit a61bb7f0980805ef13ca188892ba17f386a2347d by Vitaly Buka
[NFC][Asan] Reorder bitfields

Depends on D87644.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D87645
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp
Commit 08507d83be15387c85edb538517b66add9dc6295 by Vitaly Buka
[Asan] Cleanup kAllocBegMagic setup

Make it atomic.
Wrap it into class.
Set it late after chunk is initialized.
Reset it soon when the chunk is still valid.

Depends on D87645.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D87646
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp
Commit 4540d3baad06e060ba1e42c8fb60ba8c32308db5 by Vitaly Buka
[NFC][Asan] Return uptr as before D87646
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp
Commit 943b0c8bffc55eba4cebaaffc4bd33856e271e94 by Vitaly Buka
[NFC][Asan] Remove chunk pointer from metadata

kAllocBegMagic should be enough.
kAllocBegMagic is already set for the Secondary allocations.
kAllocBegMagic is good enough for the Primary, but it's even safer for
the Secondary allocator as all allocated block are from mmap.

Depends on D87646.

Reviewed By: morehouse

Differential Revision: https://reviews.llvm.org/D87647
The file was modifiedcompiler-rt/lib/asan/asan_allocator.cpp
Commit 69cccb3189d6e0535ab78411a37cfcccf06a58a7 by david.sherwood
[SVE] Fix isLoadInvariantInLoop for scalable vectors

I've amended the isLoadInvariantInLoop function to bail out for
scalable vectors for now since the invariant.start intrinsic is only
ever generated by the clang frontend for thread locals or struct
and class constructors, neither of which support sizeless types.
In addition, the intrinsic itself does not currently support the
concept of a scaled size, which makes it impossible to compare
the sizes of different scalable objects, e.g. <vscale x 32 x i8>
and <vscale x 16 x i8>.

Added new tests here:

  Transforms/LICM/AArch64/sve-load-hoist.ll
  Transforms/LICM/hoisting.ll

Differential Revision: https://reviews.llvm.org/D87227
The file was addedllvm/test/Transforms/LICM/AArch64/sve-load-hoist.ll
The file was modifiedllvm/lib/IR/Verifier.cpp
The file was modifiedllvm/lib/Transforms/Scalar/LICM.cpp
The file was addedllvm/test/Transforms/LICM/AArch64/lit.local.cfg
The file was modifiedllvm/test/Transforms/LICM/hoisting.ll
Commit e15996b5c6e9609c5902cae12455f43d7ba97a0f by sguelton
[doc] Fix broken link
The file was modifiedllvm/docs/tutorial/MyFirstLanguageFrontend/LangImpl03.rst
Commit c1f2fb5184ca79e9d53d51355b380c5441191878 by phosek
[DebugInfo] Support both forward and backward slashes in tests

This addresses test failure revealed by 042c23506869.
The file was modifiedlld/test/wasm/debuginfo.test
The file was modifiedlld/test/ELF/conflict-debug-variable2.s
The file was modifiedlld/test/COFF/duplicate-dwarf.s
The file was modifiedlld/test/COFF/undefined-symbol-dwarf.s
Commit 7b58eb50d96b80323504d87ca2f39ee3d7abc7d5 by hans
[Support] Make building with snmalloc work

Differential revision: https://reviews.llvm.org/D87471
The file was modifiedllvm/lib/Support/CMakeLists.txt
Commit 487412988cea99c94f2c58f8fa9eff34600fe684 by sjoerd.meijer
[MVE] Rename of tests making them consistent with tail-predication tests. NFC.
The file was removedllvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-reduce.ll
The file was addedllvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-reduce.ll
The file was addedllvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-basic.ll
The file was removedllvm/test/CodeGen/Thumb2/LowOverheadLoops/basic-tail-pred.ll
Commit 9b4fa854343166dd88e4f2e135239bbf1ce0a16c by petar.avramovic
GlobalISel/IRTranslator resetTargetOptions based on function attributes

Update TargetMachine.Options with function attributes before we start
to generate MIR instructions. This allows access to correct function
attributes via TargetMachine.Options (it used to access attributes of
the function that was translated first).
This affects some existing tests with "no-nans-fp-math" attribute.
Follow-up on D87456.

Differential Revision: https://reviews.llvm.org/D87511
The file was modifiedllvm/lib/CodeGen/GlobalISel/IRTranslator.cpp
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/frem.ll
Commit 4845531fa88cb0f104b5afc5d99abded22623c53 by grimar
[lib/Object] - Refine interface of ELFFile<ELFT>. NFCI.

`ELFFile<ELFT>` has many methods that take pointers,
though they assume that arguments are never null and
hence could take references instead.

This patch performs such clean-up.

Differential revision: https://reviews.llvm.org/D87385
The file was modifiedlld/ELF/Arch/MipsArchTree.cpp
The file was modifiedllvm/tools/llvm-objdump/ELFDump.cpp
The file was modifiedllvm/tools/llvm-readobj/DwarfCFIEHPrinter.h
The file was modifiedlld/ELF/Arch/RISCV.cpp
The file was modifiedllvm/lib/Object/ELF.cpp
The file was modifiedllvm/tools/llvm-objcopy/ELF/Object.cpp
The file was modifiedlld/ELF/Arch/Mips.cpp
The file was modifiedlld/ELF/InputFiles.cpp
The file was modifiedlld/ELF/Relocations.cpp
The file was modifiedllvm/tools/obj2yaml/elf2yaml.cpp
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/include/llvm/Object/ELFObjectFile.h
The file was modifiedllvm/tools/llvm-readobj/ARMEHABIPrinter.h
The file was modifiedlld/ELF/Arch/Hexagon.cpp
The file was modifiedlld/ELF/InputSection.cpp
The file was modifiedlld/ELF/Driver.cpp
The file was modifiedlld/ELF/Arch/PPC64.cpp
The file was modifiedllvm/include/llvm/Object/ELF.h
The file was modifiedlld/ELF/Arch/AMDGPU.cpp
The file was modifiedllvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
The file was modifiedllvm/lib/InterfaceStub/ELFObjHandler.cpp
Commit 58938b544b728ccf90462a7e4854e8a533eb9296 by phosek
[NFC][DebugInfo] Use consistent regex group spelling

This is a follow up to c1f2fb5184ca.
The file was modifiedlld/test/ELF/conflict-debug-variable2.s
The file was modifiedlld/test/wasm/debuginfo.test
Commit bccd2ec3e216fed04c46df7077462165435703a1 by grimar
[llvm-readobj/elf] - Simplify and refine the implementation which dumps .stack_sizes

Our implementation of stack sizes section dumping heavily uses `ELFObjectFile<ELFT>`,
while the rest of the code uses `ELFFile<ELFT>`.

That APIs are very different. `ELFObjectFile<ELFT>` is very generic
and has `SectionRef`, `RelocationRef`, `SymbolRef` and other generic concepts.
The `ELFFile<ELFT>` class works directly with `Elf_Shdr`, `Elf_Rel[a]`, `Elf_Sym` etc,
what is probably much cleaner for ELF dumper.

Also, `ELFObjectFile<ELFT>` API does not always provide a way to check
for possible errors. E.g. the implementation of `symbol_end()` does not verify the `sh_size`:

```
template <class ELFT>
basic_symbol_iterator ELFObjectFile<ELFT>::symbol_end() const {
  const Elf_Shdr *SymTab = DotSymtabSec;
  if (!SymTab)
    return symbol_begin();
  DataRefImpl Sym = toDRI(SymTab, SymTab->sh_size / sizeof(Elf_Sym));
  return basic_symbol_iterator(SymbolRef(Sym, this));
}
```
There are many other examples which makes me thing we might win from
switching to `ELFFile<ELFT>` API, where we heavily validate an input data already.

This patch is the first step in this direction. I've converted the large portion of the code
to use `ELFFile<ELFT>`.

Differential revision: https://reviews.llvm.org/D87362
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
Commit fc446935d724e87be515eb465293d82e040eb571 by llvm-dev
[X86] detectAVGPattern - accept non-pow2 vectors by padding.

Drop the pow2 vector limitation for AVG generation by padding the vector to the next pow2, creating the PAVG nodes and then extracting the final subvector.

Fixes some poor codegen that has been annoying me for years.....
The file was modifiedllvm/test/CodeGen/X86/avg.ll
The file was modifiedllvm/lib/Target/X86/X86ISelLowering.cpp
Commit b4b1b84106a03d7b6374090bc0ff04b3a77a0862 by sjoerd.meijer
[MVE] fix typo in llvm debug message. NFC.
The file was modifiedllvm/lib/Target/ARM/MVETailPredication.cpp
Commit 5f13d6c1eef7fa4264d143af6e7bafbb74937ccd by llvm-dev
[Transforms][Coroutines] Add missing header path to CMakeLists.txt

Helps Visual Studio check include dependencies.
The file was modifiedllvm/lib/Transforms/Coroutines/CMakeLists.txt
Commit 2508ef014e8b01006de4e5ee6fd451d1f68d550f by qiucofan
[SelectionDAG] Remove unused FP constant in getNegatedExpression

960cbc53 immediately removes nodes that won't be used to avoid
compilation time explosion. This patch adds the removal to constants to
fix PR47517.

Reviewed By: RKSimon, steven.zhang

Differential Revision: https://reviews.llvm.org/D87614
The file was modifiedllvm/lib/CodeGen/SelectionDAG/TargetLowering.cpp
The file was addedllvm/test/CodeGen/X86/pr47517.ll
Commit 1119bf95be94950da602b268dc96dbb2110cbe15 by meera.nakrani
[ARM] Corrected condition in isSaturatingConditional

Fixed a small error in an if condition to prevent usat/ssat being generated if (upper constant + 1) is not a
power of 2.
The file was modifiedllvm/test/CodeGen/ARM/usat.ll
The file was modifiedllvm/lib/Target/ARM/ARMISelLowering.cpp
Commit 9eab73fa17f5920178a87ee8a5021f4fd6f0f5ef by llvm-dev
[X86] Update SSE/AVX integer MINMAX intrinsics to emit llvm.smax.* etc. (PR46851)

We're now getting close to having the necessary analysis/combines etc. for the new generic llvm smax/smin/umax/umin intrinsics.

This patch updates the SSE/AVX integer MINMAX intrinsics to emit the generic equivalents instead of the icmp+select code pattern.

Differential Revision: https://reviews.llvm.org/D87603
The file was modifiedclang/test/CodeGen/X86/avx512bw-builtins.c
The file was modifiedllvm/test/CodeGen/X86/avx2-intrinsics-fast-isel.ll
The file was modifiedllvm/test/CodeGen/X86/sse2-intrinsics-fast-isel.ll
The file was modifiedllvm/lib/IR/AutoUpgrade.cpp
The file was modifiedclang/test/CodeGen/X86/sse41-builtins.c
The file was modifiedclang/test/CodeGen/X86/sse2-builtins.c
The file was modifiedclang/test/CodeGen/X86/avx2-builtins.c
The file was modifiedclang/test/CodeGen/X86/avx512vl-builtins.c
The file was modifiedclang/test/CodeGen/X86/avx512f-builtins.c
The file was modifiedclang/test/CodeGen/X86/avx512vlbw-builtins.c
The file was modifiedclang/lib/CodeGen/CGBuiltin.cpp
The file was modifiedclang/test/CodeGen/X86/avx512-reduceMinMaxIntrin.c
The file was modifiedllvm/test/CodeGen/X86/sse41-intrinsics-fast-isel.ll
Commit b768546fe0cc1d320857a6e080d4c796efb0c00c by benny.kra
Revert "[InstCombine] Simplify select operand based on equality condition"

This reverts commit cfff88c03cf9e9b72906a41fd11e06721d54f293. Sends
instcombine into an infinite loop.

```
define i1 @foo(i32 %arg, i32 %arg1) {
bb:
  %tmp = udiv i32 %arg, %arg1
  %tmp2 = mul nsw i32 %tmp, %arg1
  %tmp3 = icmp eq i32 %tmp2, %arg
  %tmp4 = select i1 %tmp3, i32 %tmp, i32 undef
  %tmp5 = icmp sgt i32 %tmp4, 255
  ret i1 %tmp5
}
```
The file was modifiedllvm/test/Transforms/InstCombine/select.ll
The file was modifiedllvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
The file was modifiedllvm/test/Transforms/InstCombine/select-binop-cmp.ll
The file was modifiedllvm/test/Transforms/InstCombine/rem.ll
Commit c20852300a35a33cb6bf47028f3c95a2640dab9f by limo
[mlir][integration_test] Linalg Conv folder renamed to CPU

Changing directory name to reflect naming convention discussed here:
https://llvm.discourse.group/t/vectorops-rfc-add-suite-of-integration-tests-for-vector-dialect-operations/1213

Differential Revision: https://reviews.llvm.org/D87678
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-conv-3d-call.mlir
The file was removedmlir/integration_test/Dialect/Linalg/Conv/test-conv-3d-call.mlir
The file was removedmlir/integration_test/Dialect/Linalg/Conv/test-conv-3d-ndhwc-call.mlir
The file was removedmlir/integration_test/Dialect/Linalg/Conv/test-conv-2d-nhwc-call.mlir
The file was removedmlir/integration_test/Dialect/Linalg/Conv/test-conv-1d-nwc-call.mlir
The file was removedmlir/integration_test/Dialect/Linalg/Conv/test-conv-2d-call.mlir
The file was removedmlir/integration_test/Dialect/Linalg/Conv/test-conv-3d-ncdhw-call.mlir
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-conv-3d-ncdhw-call.mlir
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-conv-3d-ndhwc-call.mlir
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-conv-2d-nhwc-call.mlir
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-conv-2d-call.mlir
The file was removedmlir/integration_test/Dialect/Linalg/Conv/test-conv-1d-call.mlir
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-conv-2d-nchw-call.mlir
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-conv-1d-call.mlir
The file was removedmlir/integration_test/Dialect/Linalg/Conv/test-conv-1d-ncw-call.mlir
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-conv-1d-nwc-call.mlir
The file was addedmlir/integration_test/Dialect/Linalg/CPU/test-conv-1d-ncw-call.mlir
The file was removedmlir/integration_test/Dialect/Linalg/Conv/test-conv-2d-nchw-call.mlir
Commit 967c7b6936a66878919568b94643c942cc7de69e by zinenko
[mlir] check for failures when packing function sigunatures in std->llvm conversion

When packing function results into a structure during the standard-to-llvm
dialect conversion, do not assume the conversion was successful and propagate
nullptr as error state.

Fixes PR45184.

Reviewed By: nicolasvasilache

Differential Revision: https://reviews.llvm.org/D87605
The file was modifiedmlir/test/Conversion/StandardToLLVM/invalid.mlir
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
Commit cd4edf94cd43754954aff0ddabd704de0f8f7ac0 by flo
Recommit "[ConstraintSystem] Add helpers to deal with linear constraints."

This patch recommits "[ConstraintSystem] Add helpers to deal with linear constraints."
(it reverts the revert commit 8da6ae4ce1b686c5c13698e4c5ee937811fda6f7).

The reason for the revert was using __builtin_multiply_overflow, which
is not available for all compilers. The patch has been updated to use
MulOverflow from MathExtras.h
The file was addedllvm/unittests/Analysis/ConstraintSystemTest.cpp
The file was addedllvm/include/llvm/Analysis/ConstraintSystem.h
The file was modifiedllvm/lib/Analysis/CMakeLists.txt
The file was modifiedllvm/unittests/Analysis/CMakeLists.txt
The file was addedllvm/lib/Analysis/ConstraintSystem.cpp
The file was addedllvm/utils/convert-constraint-log-to-z3.py
Commit bee79cdcc6aa855f4abcaa1f7e7f9df54538496b by llvm-dev
SelectionDAGBuilder.h - remove unnecessary includes. NFCI.

Reduce to forward declarations and move implicit dependencies down to the cpp files.
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGISel.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
The file was modifiedllvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
Commit 1abb4461ea03f1166c13c4dd5fa349d41d02be6a by llvm-dev
StatepointLowering.cpp - remove unnecessary includes. NFCI.

These are all directly included in StatepointLowering.h
The file was modifiedllvm/lib/CodeGen/SelectionDAG/StatepointLowering.cpp
Commit 6c1f2a34fbcaa57c3dc0de3f9e4da58da7f328b6 by llvm-dev
SpillPlacement.cpp - remove unnecessary includes. NFCI.

These are all directly included in SpillPlacement.h
The file was modifiedllvm/lib/CodeGen/SpillPlacement.cpp
Commit a21387c65470417c58021f8d3194a4510bb64f46 by hans
Revert "RegAllocFast: Record internal state based on register units"

This seems to have caused incorrect register allocation in some cases,
breaking tests in the Zig standard library (PR47278).

As discussed on the bug, revert back to green for now.

> Record internal state based on register units. This is often more
> efficient as there are typically fewer register units to update
> compared to iterating over all the aliases of a register.
>
> Original patch by Matthias Braun, but I've been rebasing and fixing it
> for almost 2 years and fixed a few bugs causing intermediate failures
> to make this patch independent of the changes in
> https://reviews.llvm.org/D52010.

This reverts commit 66251f7e1de79a7c1620659b7f58352b8c8e892e, and
follow-ups 931a68f26b9a3de853807ffad7b2cd0a2dd30922
and 0671a4c5087d40450603d9d26cf239f1a8b1367e. It also adjust some
test expectations.
The file was modifiedllvm/test/CodeGen/X86/extend-set-cc-uses-dbg.ll
The file was modifiedllvm/test/CodeGen/X86/pr44749.ll
The file was modifiedllvm/test/CodeGen/X86/fast-isel-nontemporal.ll
The file was modifiedllvm/test/CodeGen/X86/mixed-ptr-sizes.ll
The file was modifiedllvm/test/CodeGen/X86/swift-return.ll
The file was modifiedllvm/test/CodeGen/AArch64/arm64-vcvt_f.ll
The file was modifiedllvm/test/CodeGen/PowerPC/vsx.ll
The file was modifiedllvm/test/CodeGen/SPARC/fp16-promote.ll
The file was modifiedllvm/test/DebugInfo/X86/op_deref.ll
The file was modifiedllvm/test/CodeGen/X86/2009-04-14-IllegalRegs.ll
The file was modifiedllvm/test/CodeGen/X86/crash-O0.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/spill-m0.ll
The file was modifiedllvm/test/CodeGen/Mips/implicit-sret.ll
The file was modifiedllvm/test/CodeGen/X86/pr30430.ll
The file was modifiedllvm/lib/CodeGen/RegAllocFast.cpp
The file was modifiedllvm/test/CodeGen/AArch64/fast-isel-sp-adjust.ll
The file was modifiedllvm/test/CodeGen/Mips/atomic-min-max.ll
The file was modifiedllvm/test/CodeGen/X86/atomic32.ll
The file was modifiedllvm/test/CodeGen/X86/regalloc-fast-missing-live-out-spill.mir
The file was modifiedllvm/test/CodeGen/X86/atomic-unordered.ll
The file was modifiedllvm/test/CodeGen/X86/avx-load-store.ll
The file was modifiedllvm/test/CodeGen/X86/pr30813.ll
The file was modifiedllvm/test/CodeGen/X86/pr32284.ll
The file was modifiedllvm/test/CodeGen/X86/pr47000.ll
The file was modifiedllvm/test/CodeGen/X86/avx512-mask-zext-bugfix.ll
The file was modifiedllvm/test/CodeGen/Mips/GlobalISel/llvm-ir/fptosi_and_fptoui.ll
The file was modifiedllvm/test/CodeGen/X86/pr27591.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/wwm-reserved.ll
The file was modifiedllvm/test/CodeGen/X86/pr34592.ll
The file was modifiedllvm/test/CodeGen/ARM/legalize-bitcast.ll
The file was modifiedllvm/test/CodeGen/X86/pr39733.ll
The file was modifiedllvm/test/CodeGen/AArch64/popcount.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/partial-sgpr-to-vgpr-spills.ll
The file was modifiedllvm/test/CodeGen/PowerPC/popcount.ll
The file was modifiedllvm/test/CodeGen/X86/pr32345.ll
The file was modifiedllvm/test/CodeGen/PowerPC/addegluecrash.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/indirect-addressing-term.ll
The file was modifiedllvm/test/CodeGen/X86/lvi-hardening-loads.ll
The file was modifiedllvm/test/CodeGen/X86/pr1489.ll
The file was modifiedllvm/test/CodeGen/X86/pr32340.ll
The file was modifiedllvm/test/CodeGen/Mips/atomic.ll
The file was modifiedllvm/test/CodeGen/X86/pr32451.ll
The file was modifiedllvm/test/CodeGen/X86/atomic64.ll
The file was modifiedllvm/test/CodeGen/AArch64/arm64-fast-isel-conversion-fallback.ll
The file was modifiedllvm/test/CodeGen/X86/pr32241.ll
The file was modifiedllvm/test/CodeGen/AArch64/arm64-fast-isel-conversion.ll
The file was modifiedllvm/test/CodeGen/X86/swifterror.ll
Commit 0a2213c6eb24c9deec738e30509815e5bddd860c by pavel
[lldb/cmake] Fix testing support library dependencies

lldbUtilityHelpers does not depend on lldbSymbolHelpers. Remove that
dependency, and add direct lldbSymbolHelpers dependencies where needed.
The file was modifiedlldb/unittests/SymbolFile/DWARF/CMakeLists.txt
The file was modifiedlldb/unittests/TestingSupport/CMakeLists.txt
The file was modifiedlldb/unittests/Expression/CMakeLists.txt
Commit af3789a188116e400dd021bae54d91dc543aca7d by pavel
[lldb] Improve qemu interop for aarch64

qemu calls the "fp" and "lr" registers via their generic names
(x29/x30). This mismatch manifested itself as not being able to unwind
or display values of some local variables.
The file was addedlldb/test/API/functionalities/gdb_remote_client/basic_eh_frame-aarch64.yaml
The file was modifiedlldb/source/Plugins/ABI/AArch64/ABIAArch64.cpp
The file was modifiedlldb/source/Plugins/ABI/AArch64/ABIAArch64.h
The file was addedlldb/test/API/functionalities/gdb_remote_client/TestQemuAArch64TargetXml.py
Commit aa8be5aeead7ad894270aa025e7165169c1a54d2 by bjorn.a.pettersson
[Scalarizer] Avoid changing name of non-instructions

The "takeName" logic in ScalarizerVisitor::gather did not consider
that the value vector could refer to non-instructions, such as
global variables. This patch make sure that we avoid changing the
name of a value if it isn't an instruction.

Reviewed By: lebedev.ri

Differential Revision: https://reviews.llvm.org/D87685
The file was addedllvm/test/Transforms/Scalarizer/global-bug-2.ll
The file was modifiedllvm/lib/Transforms/Scalar/Scalarizer.cpp
Commit 635b87511ec3d6d2fa8f65a3ed1876f01367584e by sjoerd.meijer
[ARM][MVE] Tail-predication: use unsigned SCEV ranges for tripcount

Loop tripcount expressions have a positive range, so use unsigned SCEV ranges
for them.

Differential Revision: https://reviews.llvm.org/D87608
The file was modifiedllvm/lib/Target/ARM/MVETailPredication.cpp