SuccessChanges

Summary

  1. [NFC][lsan][fuzzer] Relax fuzzer-leak.test (details)
  2. [X86] Pre-commit test cases for D87593 (details)
  3. [NFC][Asan] Don't use MetaData for size (details)
  4. [NFC][Asan] Remove from_memalign and rz_log (details)
  5. Revert "[Sema] Address-space sensitive index check for unbounded arrays" (details)
  6. [NFC][Asan] Reorder bitfields (details)
  7. [Asan] Cleanup kAllocBegMagic setup (details)
  8. [NFC][Asan] Return uptr as before D87646 (details)
  9. [NFC][Asan] Remove chunk pointer from metadata (details)
  10. [SVE] Fix isLoadInvariantInLoop for scalable vectors (details)
  11. [doc] Fix broken link (details)
  12. [DebugInfo] Support both forward and backward slashes in tests (details)
  13. [Support] Make building with snmalloc work (details)
  14. [MVE] Rename of tests making them consistent with tail-predication tests. NFC. (details)
  15. GlobalISel/IRTranslator resetTargetOptions based on function attributes (details)
  16. [lib/Object] - Refine interface of ELFFile<ELFT>. NFCI. (details)
  17. [NFC][DebugInfo] Use consistent regex group spelling (details)
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/test/Sema/const-eval.c
The file was removedclang/test/Sema/unbounded-array-bounds.c
The file was modifiedclang/test/SemaCXX/constant-expression-cxx1y.cpp
The file was modifiedclang/include/clang/Basic/DiagnosticSemaKinds.td
The file was modifiedclang/lib/Sema/SemaChecking.cpp
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/lit.local.cfg
The file was addedllvm/test/Transforms/LICM/AArch64/sve-load-hoist.ll
The file was modifiedllvm/lib/Transforms/Scalar/LICM.cpp
The file was modifiedllvm/test/Transforms/LICM/hoisting.ll
The file was modifiedllvm/lib/IR/Verifier.cpp
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/COFF/duplicate-dwarf.s
The file was modifiedlld/test/ELF/conflict-debug-variable2.s
The file was modifiedlld/test/COFF/undefined-symbol-dwarf.s
The file was modifiedlld/test/wasm/debuginfo.test
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 addedllvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-pred-reduce.ll
The file was removedllvm/test/CodeGen/Thumb2/LowOverheadLoops/tail-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/frem.ll
The file was modifiedllvm/test/CodeGen/AMDGPU/GlobalISel/fmed3.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-objcopy/ELF/Object.cpp
The file was modifiedlld/ELF/InputFiles.cpp
The file was modifiedllvm/tools/llvm-objdump/ELFDump.cpp
The file was modifiedlld/ELF/Arch/Hexagon.cpp
The file was modifiedlld/ELF/Arch/Mips.cpp
The file was modifiedllvm/lib/InterfaceStub/ELFObjHandler.cpp
The file was modifiedllvm/include/llvm/Object/ELF.h
The file was modifiedllvm/tools/llvm-readobj/ARMEHABIPrinter.h
The file was modifiedlld/ELF/Arch/RISCV.cpp
The file was modifiedllvm/tools/llvm-readobj/DwarfCFIEHPrinter.h
The file was modifiedlld/ELF/Relocations.cpp
The file was modifiedlld/ELF/Driver.cpp
The file was modifiedllvm/include/llvm/Object/ELFObjectFile.h
The file was modifiedllvm/lib/ExecutionEngine/JITLink/ELF_x86_64.cpp
The file was modifiedlld/ELF/Arch/AMDGPU.cpp
The file was modifiedllvm/lib/Object/ELF.cpp
The file was modifiedllvm/tools/llvm-readobj/ELFDumper.cpp
The file was modifiedllvm/tools/obj2yaml/elf2yaml.cpp
The file was modifiedlld/ELF/Arch/PPC64.cpp
The file was modifiedlld/ELF/InputSection.cpp
Commit 58938b544b728ccf90462a7e4854e8a533eb9296 by phosek
[NFC][DebugInfo] Use consistent regex group spelling

This is a follow up to c1f2fb5184ca.
The file was modifiedlld/test/wasm/debuginfo.test
The file was modifiedlld/test/ELF/conflict-debug-variable2.s