[all-commits] [llvm/llvm-project] 61a8c9: [AMDGPU] Fix maximum physical LDS reporting for gf...

Vitaly Buka via All-commits all-commits at lists.llvm.org
Mon Sep 14 22:47:43 PDT 2026


  Branch: refs/heads/users/vitalybuka/spr/nfccrossdsocfi-move-findcfitypeids-to-lowertypetests
  Home:   https://github.com/llvm/llvm-project
  Commit: 61a8c98594dbce9e09f39614b89cb74e563bcbbc
      https://github.com/llvm/llvm-project/commit/61a8c98594dbce9e09f39614b89cb74e563bcbbc
  Author: Chinmay Deshpande <chdeshpa at amd.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
    M llvm/lib/Target/AMDGPU/AMDGPU.td
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/lib/TargetParser/AMDGPUTargetParser.cpp
    M llvm/test/CodeGen/AMDGPU/default-flat-work-group-size-overrides-waves-per-eu.ll
    M llvm/test/CodeGen/AMDGPU/occupancy-levels.ll
    M llvm/unittests/TargetParser/TargetParserTest.cpp

  Log Message:
  -----------
  [AMDGPU] Fix maximum physical LDS reporting for gfx6 (#223185)

Reference:
https://docs.amd.com/api/khub/documents/VeItSxvoJNzy28rl~JwEAQ/content#page=77

> “The maximum LDS allocation size for a work-group is still 32 kB,
however each compute unit has a total of 64 kB of LDS.”

Reference:
https://docs.amd.com/api/khub/documents/J4foK5jvufN9rTHf_DlCPw/content#page=22

> “Each compute unit has a 64 kB of Local Data Share (LDS) memory
space…”
> “Each workgroup can allocate up to 32 kB of this space, and can read
and write any portion of the LDS space allocated to it.”


  Commit: 7e8ce3bd5b7460685e060a3b86d054cfdc22f2bf
      https://github.com/llvm/llvm-project/commit/7e8ce3bd5b7460685e060a3b86d054cfdc22f2bf
  Author: Jonas Devlieghere <jonas at devlieghere.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
    M lldb/test/API/functionalities/json/object-file/TestObjectFileJSON.py

  Log Message:
  -----------
  [lldb] Bound JSON object file text by buffer size (#223575)

ObjectFileJSON created a StringRef from a bare pointer without a length.
Mapped buffers lack a NULL terminator, causing strlen to read past
page-aligned mappings.

Pass the buffer size and stop at the first NULL to handle unterminated
mappings and zero-padded probe reads.

rdar://186899370


  Commit: 95ecc0a5736632f9cea75ad445a537979d3fc429
      https://github.com/llvm/llvm-project/commit/95ecc0a5736632f9cea75ad445a537979d3fc429
  Author: Stan Ulbrych <stan at python.org>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    A compiler-rt/test/fuzzer/MinimizeCrashCustomMutatorTest.cpp
    A compiler-rt/test/fuzzer/minimize_crash_custom_mutator.test

  Log Message:
  -----------
  [libFuzzer] Add test for stale size passed to Mutate in MinimizeCrashLoop (#223502)

Add tests for the fix in #223470.


  Commit: 3493720eca95cf844a8d7e58fdd12e0e5644e7d0
      https://github.com/llvm/llvm-project/commit/3493720eca95cf844a8d7e58fdd12e0e5644e7d0
  Author: Ryunosuke (Rick) Yanashita <ryunosukeyanashita at gmail.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/test/Transforms/InstCombine/trunc.ll

  Log Message:
  -----------
  [InstCombine] Add fold combining adjacent extracted bit fields to restore optimization for separate truncations (#219598)

This restores the InstCombine optimization that was lost (regression)
starting from Clang 14, when assembling adjacent bit fields extracted
from a wider integer.

The fold combines:
```
(trunc (lshr X, S) & M0) | (lshr (trunc X), S & M1) --> (trunc (lshr X, S) & (C0 | C1))
```
The fold handles both orderings. I implemented tests for this fold in
trunc.ll

alive2 proof: https://alive2.llvm.org/ce/z/rPQN4D 

Fixes #215254


  Commit: cecd28d75cf5407287085e4042ef4fc7ed7feadd
      https://github.com/llvm/llvm-project/commit/cecd28d75cf5407287085e4042ef4fc7ed7feadd
  Author: Alexander Richardson <alexrichardson at google.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
    M llvm/lib/TargetParser/RISCVISAInfo.cpp
    M llvm/test/CodeGen/RISCV/attributes.ll
    M llvm/test/CodeGen/RISCV/rvy/rvy-invalid-operands.mir
    M llvm/unittests/Target/RISCV/RISCVBaseInfoTest.cpp
    M llvm/unittests/TargetParser/RISCVISAInfoTest.cpp

  Log Message:
  -----------
  [RISCV] Select the capability ABI by default when the Y extension is enabled

computeDefaultABI() previously had no knowledge of the RVY (CHERI) base,
so a target with Y enabled and no explicit -target-abi
would fall back to the plain integer ABI instead of il32pc64(d)/
l64pc128(d).

This adds explicit non-RVY ABIs to two tests since otherwise those would
hit the assertion that the ABI is not supported yet. As the ABI does not
matter for these tests, we can safely use the non-RVY ones.

This change was created with the help of AI tools

Reviewed By: lenary

Pull Request: https://github.com/llvm/llvm-project/pull/213411


  Commit: b557f073f1ea9fab14102cfc93edb40285599670
      https://github.com/llvm/llvm-project/commit/b557f073f1ea9fab14102cfc93edb40285599670
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp

  Log Message:
  -----------
  [mlir][tosa] Use optnone for compliance initialization under MSan (NFC) (#223586)

The compliance-map constructor includes a ~5,000-line generated
initializer.
Under MemorySanitizer, shadow and origin tracking instrumentation on
this single mega-function causes extreme compilation times (>3.5
minutes),
dominated by InstCombine (~68s) and greedy register allocation (~71s).

Recently, LLVM_ATTRIBUTE_MINSIZE was added to optimize for size, but
MSan
instrumentation still inflates the function enough to trigger severe
slowdowns in the backend.

Mark the constructor with optnone under LLVM_MEMORY_SANITIZER_BUILD to
skip
expensive optimization and register allocation passes, bringing
compilation
time under MSan down from 3m38s to ~30s.

This is done to fix
http://lab.llvm.org/buildbot/#/builders/aarch64-linux-msan,
though it is very slow on x86_64 as well.

Assisted-by: Gemini


  Commit: 712ec9ed515a15d347f2feafd8bdb5032ed2c15a
      https://github.com/llvm/llvm-project/commit/712ec9ed515a15d347f2feafd8bdb5032ed2c15a
  Author: Lang Hames <lhames at gmail.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp

  Log Message:
  -----------
  [ORC] Fix OrcCAPITestBase.ExecutionTest on Darwin/arm64e (#223577)

Switch to ExecutorAddr::toPtr to sign the function pointer. We'll need a
C API solution for this eventually, but this will do for now to get the
test passing.

rdar://186687669


  Commit: ac2fb41926f9f7723517670788800d448970151a
      https://github.com/llvm/llvm-project/commit/ac2fb41926f9f7723517670788800d448970151a
  Author: Sergey Shcherbinin <sscherbinin at nvidia.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/include/llvm/Support/LEB128.h
    M llvm/lib/ProfileData/SampleProfReader.cpp
    M llvm/unittests/ProfileData/SampleProfTest.cpp
    M llvm/unittests/Support/LEB128Test.cpp

  Log Message:
  -----------
  [ProfileData] Bound binary sample profile primitive reads (#215476)

Fix pre-existing latent memory-safety issues that could cause
out-of-bounds reads or invalid pointer arithmetic on malformed,
truncated, or non-null-terminated buffers:

* unbounded ULEB128 decoding in readNumber() and Raw/Ext format probes;
* unbounded terminator searches in readString() and GCC format
detection;
* unsafe bounds checking in readUnencodedNumber().

Use bounded decoding, memchr, overflow-safe size checks, and typed
ULEB128 errors. Preserve the existing decodeULEB128 interface and avoid
test-only ABI exports.

Add functional and guard-page tests that detect boundary regressions
without requiring sanitizers.

Assisted by GPT-5


  Commit: d041ef4182361ca50c6744f8e48854c416e079bd
      https://github.com/llvm/llvm-project/commit/d041ef4182361ca50c6744f8e48854c416e079bd
  Author: Reid Kleckner <rkleckner at nvidia.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    M utils/docs/__main__.py
    A utils/docs/llvm_sphinx/ext/absolute_links.py
    A utils/docs/llvm_sphinx/ext/absolute_links_test/conf.py
    A utils/docs/llvm_sphinx/ext/absolute_links_test/index.rst
    A utils/docs/llvm_sphinx/ext/absolute_links_test/markdown.md
    A utils/docs/llvm_sphinx/ext/absolute_links_test/rest.rst
    A utils/docs/llvm_sphinx/ext/absolute_links_test/target.md
    M utils/docs/llvm_sphinx/ext/checks.py

  Log Message:
  -----------
  [docs] Check for absolute self-documentation links (#222504)

Add an opt-in llvm_sphinx check that diagnoses absolute links to
documents in the current Sphinx project. Operate on the parsed doctree
so the check works for both reStructuredText and MyST without flagging
examples in literal blocks.

For example, restoring one absolute link in the LLVM documentation makes
a warnings-as-errors build report:

llvm/docs/ReleaseNotes.md:321: WARNING: absolute URL points to document
    'index' in this Sphinx project; use an internal 'doc' or 'ref' role
    instead: https://llvm.org/docs/ [llvm_sphinx.absolute-doc-link]

Part of #214861

Assisted-by: codex


  Commit: d13e4a13abe3e7ed3dacb0ec771c8eaa7dadb861
      https://github.com/llvm/llvm-project/commit/d13e4a13abe3e7ed3dacb0ec771c8eaa7dadb861
  Author: Dharuni R Acharya <125176188+DharuniRAcharya at users.noreply.github.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/include/llvm/IR/IntrinsicsNVVM.td
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/test/CodeGen/NVPTX/tcgen05-mma-block-scale.ll
    M llvm/test/CodeGen/NVPTX/tcgen05-mma-collector-b.ll
    M llvm/test/CodeGen/NVPTX/tcgen05-mma.ll

  Log Message:
  -----------
  [NVPTX] Add default value to collector_b ImmArg in tcgen05.mma intrinsics (#220237)

This patch adds default value for the `collector_b` flag in
`tcgen05.mma` intrinsics.
Also adds lit tests to verify that calls without explicit `collector_b`
operands correctly materialized with default value.

---------

Signed-off-by: DharuniRAcharya <dharunira at nvidia.com>


  Commit: 08c860ba2d7719ec825c70c26bc032c577b85757
      https://github.com/llvm/llvm-project/commit/08c860ba2d7719ec825c70c26bc032c577b85757
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/include/llvm/Analysis/TypeMetadataUtils.h
    M llvm/include/llvm/Transforms/IPO/LowerTypeTests.h
    M llvm/lib/Transforms/IPO/LowerTypeTests.cpp
    M llvm/lib/Transforms/IPO/ThinLTOBitcodeWriter.cpp

  Log Message:
  -----------
  [NFC][LowerTypeTests] Move CFI metadata creation and helpers to LowerTypeTests (#223581)

Move enum CfiFunctionLinkage from llvm/Analysis/TypeMetadataUtils.h into
llvm/Transforms/IPO/LowerTypeTests.h (in namespace lowertypetests).

Move hasTypeMetadata and findCfiFunctions from ThinLTOBitcodeWriter into
LowerTypeTests.

Encapsulate cfi.functions, aliases, and symvers metadata creation into
lowertypetests::createCfiMetadata in LowerTypeTests.cpp, removing the
manual metadata generation from ThinLTOBitcodeWriter.

PR Stack:
* ➤ https://github.com/llvm/llvm-project/pull/223581
* https://github.com/llvm/llvm-project/pull/223582

Assisted-by: Gemini


  Commit: 6ce57ce40b2ce2b466d658a289427d7817e6c468
      https://github.com/llvm/llvm-project/commit/6ce57ce40b2ce2b466d658a289427d7817e6c468
  Author: Mattéo Rizza Murgier <matteo.rizza-murgier at sipearl.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
    A llvm/test/CodeGen/AArch64/complex-deinterleaving-fmf-intersection.ll

  Log Message:
  -----------
  [ComplexDeinterleaving] Use FMF intersection instead of requiring strict equality (#219158)


  Commit: 636a86aa046df9ed800c7b125f1c67e5028a75d8
      https://github.com/llvm/llvm-project/commit/636a86aa046df9ed800c7b125f1c67e5028a75d8
  Author: Mattéo Rizza Murgier <matteo.rizza-murgier at sipearl.com>
  Date:   2026-09-15 (Tue, 15 Sep 2026)

  Changed paths:
    M llvm/include/llvm/Transforms/Utils/LowerVectorIntrinsics.h
    M llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    M llvm/lib/Transforms/Utils/LowerVectorIntrinsics.cpp
    M llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-exp.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-fp-math.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-log.ll
    A llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-multi-result.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/RISCV/expand-fp-math.ll

  Log Message:
  -----------
  [CodeGen] Add scalarization fallback for multi-result scalable intrinsics (#218634)


  Commit: dc9c6a03042cb37aa53d4a967abbbea38a501969
      https://github.com/llvm/llvm-project/commit/dc9c6a03042cb37aa53d4a967abbbea38a501969
  Author: Mattéo Rizza Murgier <matteo.rizza-murgier at sipearl.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    A compiler-rt/test/fuzzer/MinimizeCrashCustomMutatorTest.cpp
    A compiler-rt/test/fuzzer/minimize_crash_custom_mutator.test
    M lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
    M lldb/test/API/functionalities/json/object-file/TestObjectFileJSON.py
    M llvm/include/llvm/IR/IntrinsicsNVVM.td
    M llvm/include/llvm/Support/LEB128.h
    M llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
    M llvm/include/llvm/Transforms/Utils/LowerVectorIntrinsics.h
    M llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
    M llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/ProfileData/SampleProfReader.cpp
    M llvm/lib/Target/AMDGPU/AMDGPU.td
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
    M llvm/lib/TargetParser/AMDGPUTargetParser.cpp
    M llvm/lib/TargetParser/RISCVISAInfo.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/lib/Transforms/Utils/LowerVectorIntrinsics.cpp
    A llvm/test/CodeGen/AArch64/complex-deinterleaving-fmf-intersection.ll
    M llvm/test/CodeGen/AMDGPU/default-flat-work-group-size-overrides-waves-per-eu.ll
    M llvm/test/CodeGen/AMDGPU/occupancy-levels.ll
    M llvm/test/CodeGen/NVPTX/tcgen05-mma-block-scale.ll
    M llvm/test/CodeGen/NVPTX/tcgen05-mma-collector-b.ll
    M llvm/test/CodeGen/NVPTX/tcgen05-mma.ll
    M llvm/test/CodeGen/RISCV/attributes.ll
    M llvm/test/CodeGen/RISCV/rvy/rvy-invalid-operands.mir
    M llvm/test/Transforms/InstCombine/trunc.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-exp.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-fp-math.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-log.ll
    A llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-multi-result.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/RISCV/expand-fp-math.ll
    M llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
    M llvm/unittests/ProfileData/SampleProfTest.cpp
    M llvm/unittests/Support/LEB128Test.cpp
    M llvm/unittests/Target/RISCV/RISCVBaseInfoTest.cpp
    M llvm/unittests/TargetParser/RISCVISAInfoTest.cpp
    M llvm/unittests/TargetParser/TargetParserTest.cpp
    M mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
    M utils/docs/__main__.py
    A utils/docs/llvm_sphinx/ext/absolute_links.py
    A utils/docs/llvm_sphinx/ext/absolute_links_test/conf.py
    A utils/docs/llvm_sphinx/ext/absolute_links_test/index.rst
    A utils/docs/llvm_sphinx/ext/absolute_links_test/markdown.md
    A utils/docs/llvm_sphinx/ext/absolute_links_test/rest.rst
    A utils/docs/llvm_sphinx/ext/absolute_links_test/target.md
    M utils/docs/llvm_sphinx/ext/checks.py

  Log Message:
  -----------
  [𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.7

[skip ci]


  Commit: e86cf54af4a0a514c43ea54bc18f89d6d76fe26f
      https://github.com/llvm/llvm-project/commit/e86cf54af4a0a514c43ea54bc18f89d6d76fe26f
  Author: Vitaly Buka <vitalybuka at google.com>
  Date:   2026-09-14 (Mon, 14 Sep 2026)

  Changed paths:
    A compiler-rt/test/fuzzer/MinimizeCrashCustomMutatorTest.cpp
    A compiler-rt/test/fuzzer/minimize_crash_custom_mutator.test
    M lldb/source/Plugins/ObjectFile/JSON/ObjectFileJSON.cpp
    M lldb/test/API/functionalities/json/object-file/TestObjectFileJSON.py
    M llvm/include/llvm/IR/IntrinsicsNVVM.td
    M llvm/include/llvm/Support/LEB128.h
    M llvm/include/llvm/TargetParser/AMDGPUTargetParser.h
    M llvm/include/llvm/Transforms/Utils/LowerVectorIntrinsics.h
    M llvm/lib/CodeGen/ComplexDeinterleavingPass.cpp
    M llvm/lib/CodeGen/PreISelIntrinsicLowering.cpp
    M llvm/lib/CodeGen/TargetLoweringBase.cpp
    M llvm/lib/IR/AutoUpgrade.cpp
    M llvm/lib/ProfileData/SampleProfReader.cpp
    M llvm/lib/Target/AMDGPU/AMDGPU.td
    M llvm/lib/Target/AMDGPU/Utils/AMDGPUBaseInfo.cpp
    M llvm/lib/Target/RISCV/MCTargetDesc/RISCVBaseInfo.cpp
    M llvm/lib/TargetParser/AMDGPUTargetParser.cpp
    M llvm/lib/TargetParser/RISCVISAInfo.cpp
    M llvm/lib/Transforms/InstCombine/InstCombineAndOrXor.cpp
    M llvm/lib/Transforms/Utils/LowerVectorIntrinsics.cpp
    A llvm/test/CodeGen/AArch64/complex-deinterleaving-fmf-intersection.ll
    M llvm/test/CodeGen/AMDGPU/default-flat-work-group-size-overrides-waves-per-eu.ll
    M llvm/test/CodeGen/AMDGPU/occupancy-levels.ll
    M llvm/test/CodeGen/NVPTX/tcgen05-mma-block-scale.ll
    M llvm/test/CodeGen/NVPTX/tcgen05-mma-collector-b.ll
    M llvm/test/CodeGen/NVPTX/tcgen05-mma.ll
    M llvm/test/CodeGen/RISCV/attributes.ll
    M llvm/test/CodeGen/RISCV/rvy/rvy-invalid-operands.mir
    M llvm/test/Transforms/InstCombine/trunc.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-exp.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-fp-math.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-log.ll
    A llvm/test/Transforms/PreISelIntrinsicLowering/AArch64/expand-multi-result.ll
    M llvm/test/Transforms/PreISelIntrinsicLowering/RISCV/expand-fp-math.ll
    M llvm/unittests/ExecutionEngine/Orc/OrcCAPITest.cpp
    M llvm/unittests/ProfileData/SampleProfTest.cpp
    M llvm/unittests/Support/LEB128Test.cpp
    M llvm/unittests/Target/RISCV/RISCVBaseInfoTest.cpp
    M llvm/unittests/TargetParser/RISCVISAInfoTest.cpp
    M llvm/unittests/TargetParser/TargetParserTest.cpp
    M mlir/lib/Dialect/Tosa/Transforms/TosaProfileCompliance.cpp
    M utils/docs/__main__.py
    A utils/docs/llvm_sphinx/ext/absolute_links.py
    A utils/docs/llvm_sphinx/ext/absolute_links_test/conf.py
    A utils/docs/llvm_sphinx/ext/absolute_links_test/index.rst
    A utils/docs/llvm_sphinx/ext/absolute_links_test/markdown.md
    A utils/docs/llvm_sphinx/ext/absolute_links_test/rest.rst
    A utils/docs/llvm_sphinx/ext/absolute_links_test/target.md
    M utils/docs/llvm_sphinx/ext/checks.py

  Log Message:
  -----------
  rebase

Created using spr 1.3.7


Compare: https://github.com/llvm/llvm-project/compare/6a060623deda...e86cf54af4a0

To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list