SuccessChanges

Summary

  1. s[mlir] Tighten computation of inferred SubView result type. (details)
  2. [WebAssembly] Use the new crt1-command.o if present. (details)
  3. Remove test code that cause MSAN failure. (details)
  4. [lldb] Add step target to ThreadPlanStepInRange constructor (details)
  5. ObjectFileELF: Test whether reloc_header is non-null instead of asserting. (details)
  6. [flang][fir][NFC] Move BoxType to TableGen type definition (details)
  7. [Sanitizer] Fix sanitizer tests without reducing optimization levels (details)
  8. [NFC] Extract function which registers sanitizer passes (details)
  9. [RISCV] Add a pattern for a scalable vector mask vnot. (details)
  10. [Msan, NewPM] Reduce size of msan binaries (details)
  11. [NFC,memprof] Update test after D96319 (details)
  12. [tests] Autogen a few tests for ease of update (details)
  13. [tests] precommit a tests for D96534 (and other range quality items) (details)
  14. [tests] Autogen update test to remove whitespace diffs (details)
Commit 5bc4f8846c07bc3b355c8f303416784a10d1a298 by nicolas.vasilache
s[mlir] Tighten computation of inferred SubView result type.

The AffineMap in the MemRef inferred by SubViewOp may have uncompressed symbols which result in type mismatch on otherwise unused symbols. Make the computation of the AffineMap compress those unused symbols which results in better canonical types.
Additionally, improve the error message to report which inferred type was expected.

Differential Revision: https://reviews.llvm.org/D96551
The file was modifiedmlir/include/mlir/Dialect/StandardOps/IR/Ops.h
The file was modifiedmlir/lib/Dialect/Linalg/Transforms/Fusion.cpp
The file was modifiedmlir/test/IR/core-ops.mlir
The file was modifiedmlir/include/mlir/IR/BuiltinTypes.h
The file was modifiedmlir/include/mlir/IR/AffineExpr.h
The file was modifiedmlir/lib/IR/AffineExpr.cpp
The file was modifiedmlir/include/mlir/IR/AffineMap.h
The file was modifiedmlir/test/IR/invalid-ops.mlir
The file was modifiedmlir/lib/IR/AffineMap.cpp
The file was modifiedmlir/lib/Dialect/StandardOps/IR/Ops.cpp
The file was modifiedmlir/lib/Conversion/StandardToLLVM/StandardToLLVM.cpp
The file was modifiedmlir/lib/IR/BuiltinTypes.cpp
Commit f9c05fc391458e455e8e4d4108a7f270f2f7bedc by Dev
[WebAssembly] Use the new crt1-command.o if present.

If crt1-command.o exists in the sysroot, the libc has new-style command
support, so use it.

Differential Revision: https://reviews.llvm.org/D89274
The file was modifiedclang/lib/Driver/ToolChains/WebAssembly.cpp
Commit 0eed2b1a3cde819430fd37fd0cf1b0f876e67bb9 by hoy
Remove test code that cause MSAN failure.

Summary:
The negative test (with the feature being added disabled) caused MSAN failure and that's the added feature is supposed to fix. Therefore the negative test code is being removed.
The file was modifiedllvm/test/Transforms/SampleProfile/profile-context-order.ll
Commit a5ab1dc4ad2c02510e363b4dd3c267f9eaf11516 by davelee.com
[lldb] Add step target to ThreadPlanStepInRange constructor

`QueueThreadPlanForStepInRange` accepts a `step_into_target`, but the constructor for
`ThreadPlanStepInRange` does not. Instead, a caller would optionally call
`SetStepInTarget()` in a separate statement.

This change adds `step_into_target` as a constructor argument. This simplifies
construction of `ThreadPlanSP`, by avoiding a subsequent downcast and conditional
assignment. This constructor is already used in downstream repos.

Differential Revision: https://reviews.llvm.org/D96539
The file was modifiedlldb/source/Plugins/LanguageRuntime/CPlusPlus/CPPLanguageRuntime.cpp
The file was modifiedlldb/source/Target/ThreadPlanStepInRange.cpp
The file was modifiedlldb/source/Target/Thread.cpp
The file was modifiedlldb/include/lldb/Target/ThreadPlanStepInRange.h
Commit c314f5ede8249ef20fff1de45c2c31156b1950d4 by peter
ObjectFileELF: Test whether reloc_header is non-null instead of asserting.

It is possible for the GetSectionHeaderByIndex lookup to fail because
the previous FindSectionContainingFileAddress lookup found a segment
instead of a section. This is possible if the binary does not have
a PLT (which means that lld will in some circumstances set DT_JMPREL
to 0, which is typically an address that is part of the ELF headers
and not in a section) and may also be possible if the section headers
have been stripped. To handle this possibility, replace the assert
with an if.

Differential Revision: https://reviews.llvm.org/D93438
The file was addedlldb/test/Shell/ObjectFile/ELF/null-jmprel.yaml
The file was modifiedlldb/source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp
Commit a48bee2294b608f5c530f783757692eb2ca44100 by clementval
[flang][fir][NFC] Move BoxType to TableGen type definition

This patch is a follow up of D96422 and move BoxType to TableGen.

Reviewed By: mehdi_amini

Differential Revision: https://reviews.llvm.org/D96476
The file was modifiedflang/include/flang/Optimizer/Dialect/FIROps.td
The file was modifiedflang/include/flang/Optimizer/Dialect/FIROps.h
The file was modifiedflang/include/flang/Optimizer/Dialect/FIRType.h
The file was modifiedflang/lib/Optimizer/Dialect/FIRType.cpp
The file was modifiedflang/include/flang/Optimizer/Dialect/FIRTypes.td
Commit 9360f1a1911edee4c6f4c7d070bdaa1ca26016cc by julian.lettner
[Sanitizer] Fix sanitizer tests without reducing optimization levels

As discussed, these tests are compiled with optimization to mimic real
sanitizer usage [1].

Let's mark relevant functions with `noinline` so we can continue to
check against the stack traces in the report.

[1] https://reviews.llvm.org/D96198

This reverts commit 04af72c5423eb5ff7c0deba2d08cb46d583bb9d4.

Differential Revision: https://reviews.llvm.org/D96357
The file was modifiedcompiler-rt/test/tsan/free_race.c
The file was modifiedcompiler-rt/test/tsan/sleep_sync.cpp
The file was modifiedcompiler-rt/test/tsan/longjmp4.cpp
The file was modifiedcompiler-rt/test/tsan/simple_stack.c
The file was modifiedcompiler-rt/test/tsan/blacklist2.cpp
The file was modifiedcompiler-rt/test/tsan/race_on_heap.cpp
The file was modifiedcompiler-rt/test/tsan/longjmp3.cpp
The file was modifiedcompiler-rt/test/tsan/race_top_suppression.cpp
The file was modifiedcompiler-rt/test/ubsan/TestCases/Misc/missing_return.cpp
Commit f2f59d2a060788f17040ad924ee2d11da0e215c8 by Vitaly Buka
[NFC] Extract function which registers sanitizer passes

Reviewed By: aeubanks

Differential Revision: https://reviews.llvm.org/D96481
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
Commit 7a7836b4d8463584eb8ee34a16096cc5ef62a8ee by craig.topper
[RISCV] Add a pattern for a scalable vector mask vnot.

We can use a vnand.mm with the same register for both inputs.
This avoids materializing an alls ones constant with vmset.mm.
The file was modifiedllvm/test/CodeGen/RISCV/rvv/setcc-fp-rv32.ll
The file was modifiedllvm/lib/Target/RISCV/RISCVInstrInfoVSDPatterns.td
The file was modifiedllvm/test/CodeGen/RISCV/rvv/setcc-fp-rv64.ll
Commit 686b65f85f22c70e082753cd05e8572d22e3991c by Vitaly Buka
[Msan, NewPM] Reduce size of msan binaries

EarlyCSEPass called after msan redices code size by about 10%.
Similar optimization exists for legacy pass manager in
addGeneralOptsForMemorySanitizer.

Reviewed By: eugenis

Differential Revision: https://reviews.llvm.org/D96406
The file was modifiedclang/test/Driver/msan.c
The file was modifiedclang/lib/CodeGen/BackendUtil.cpp
Commit f2133f2e318d8ce87e9972d288485d9bc49fef5c by Vitaly Buka
[NFC,memprof] Update test after D96319
The file was modifiedcompiler-rt/test/memprof/TestCases/test_malloc_load_store.c
Commit 6538cef317297887a6541c325e3433cdcc91944d by listmail
[tests] Autogen a few tests for ease of update
The file was modifiedllvm/test/Analysis/ScalarEvolution/max-be-count-not-constant.ll
The file was modifiedllvm/test/Analysis/ScalarEvolution/sext-to-zext.ll
The file was modifiedllvm/test/Analysis/ScalarEvolution/increasing-or-decreasing-iv.ll
Commit b911a71427c56e8edde7a8e044f325c6f4de8dd0 by listmail
[tests] precommit a tests for D96534 (and other range quality items)
The file was addedllvm/test/Analysis/ScalarEvolution/ranges.ll
Commit 72fc5b1b8eeca2baffd9568eb296626f0af37966 by listmail
[tests] Autogen update test to remove whitespace diffs
The file was modifiedllvm/test/Analysis/ScalarEvolution/extract-highbits-sameconstmask.ll