LLVM/project 8345985 — mlir/lib/Dialect/Vector/Transforms VectorDistribute.cpp, mlir/test/Dialect/Vector vector-warp-distribute-cfg-loop.mlir vector-warp-distribute.mlir

[mlir][Vector] Reuse args buffers in WarpOpToScfIfPattern (#204311)

Args buffers are unused after lane 0 reads them inside the scf.if (the
Step 3 barrier fences other lanes), so reuse their storage for yielded
values via `memref.subview` when sizes are compatible. Reduces shared
memory footprint with no runtime overhead.
DeltaFile
+126-6mlir/test/Dialect/Vector/vector-warp-distribute.mlir
+103-6mlir/lib/Dialect/Vector/Transforms/VectorDistribute.cpp
+34-0mlir/test/Dialect/Vector/vector-warp-distribute-cfg-loop.mlir
+263-123 files

LLVM/project f525741 — llvm/lib/Target/RISCV RISCVSchedVeeREH1.td, llvm/test/CodeGen/RISCV jumptable-veer-eh1.ll

[RISCV] Add VeeR EH1 scheduling model and tuning (#240913)

VeeR EH1 is a 9-stage, 2-wide in-order core with two ALUs, one
load/store unit and one pipelined multiplier. Load and multiply results
reach an ALU consumer after 3 cycles, a branch can issue in the same
cycle as the load or multiply it depends on (it executes in the EX4
secondary ALU), and the divider stalls decode until it finishes. Checked
against cycle-accurate simulation of the v1.9 RTL.

Use the model for -mcpu=chipsalliance-veer-eh1, with tuning from the
same simulation: the RISC-V unroll preferences (TuneNoDefaultUnroll), no
load clustering (no data cache, one load/store unit), post-RA
scheduling, and a minimum jump-table size of 10 (a branch tree is
cheaper below that).

Assisted-by: Claude
DeltaFile
+186-0llvm/lib/Target/RISCV/RISCVSchedVeeREH1.td
+164-0llvm/test/tools/llvm-mca/RISCV/VeeR/veer-eh1-pairing.s
+125-0llvm/test/tools/llvm-mca/RISCV/VeeR/integer.test
+112-0llvm/test/tools/llvm-mca/RISCV/VeeR/veer-eh1-lsu.s
+65-39llvm/test/CodeGen/RISCV/jumptable-veer-eh1.ll
+100-0llvm/test/tools/llvm-mca/RISCV/VeeR/veer-eh1-dual-issue.s
+752-395 files not shown
+825-4211 files

LLVM/project 376f04d — mlir/docs SPIRVToLLVMDialectConversion.md, mlir/lib/Conversion/SPIRVToLLVM SPIRVToLLVM.cpp

[mlir][SPIR-V] Add SPIRVToLLVM conversion for CopyObject (#242840)

Replace spirv.CopyObject with its converted operand

Depends https://github.com/llvm/llvm-project/pull/242837
DeltaFile
+14-1mlir/lib/Conversion/SPIRVToLLVM/SPIRVToLLVM.cpp
+13-0mlir/test/Conversion/SPIRVToLLVM/misc-ops-to-llvm.mlir
+2-0mlir/docs/SPIRVToLLVMDialectConversion.md
+29-13 files

LLVM/project 744c90d — mlir/include/mlir/Dialect/SPIRV/IR SPIRVBase.td SPIRVCompositeOps.td, mlir/test/Dialect/SPIRV/IR composite-ops.mlir

[mlir][SPIR-V] Add CopyObject op (#242837)
DeltaFile
+34-0mlir/include/mlir/Dialect/SPIRV/IR/SPIRVCompositeOps.td
+20-0mlir/test/Dialect/SPIRV/IR/composite-ops.mlir
+5-0mlir/test/Target/SPIRV/composite-op.mlir
+2-1mlir/include/mlir/Dialect/SPIRV/IR/SPIRVBase.td
+61-14 files

LLVM/project 28913d8 — clang/lib/Sema SemaAMDGPU.cpp, clang/test/Sema builtins-amdgcn-d16-image-16bit-error.c

[Clang][AMDGPU] Remove manual target feature check for image builtins
DeltaFile
+46-222clang/test/SemaOpenCL/builtins-extended-image-err.cl
+49-211clang/test/SemaOpenCL/builtins-image-load-image-feature-err.cl
+29-122clang/test/SemaOpenCL/builtins-image-store-image-feature-err.cl
+50-56clang/test/Sema/builtins-amdgcn-d16-image-16bit-error.c
+0-16clang/lib/Sema/SemaAMDGPU.cpp
+16-0clang/test/SemaOpenCL/builtins-image-feature-guarded.cl
+190-6271 files not shown
+204-6277 files

LLVM/project 94ef6e7 — llvm/test/CodeGen/NVPTX clz-popc-known-bits.ll

[NVPTX] Only run ptxas on clz-popc-known-bits.ll if it supports sm_70 (#242961)

ptxas from CUDA 13 no longer supports sm_70, so the RUN line added in
#237793 fails on the NVPTX buildbots. Guard it the same way as other
sm_70 tests.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+1-1llvm/test/CodeGen/NVPTX/clz-popc-known-bits.ll
+1-11 files

LLVM/project 91988cf — llvm/test/CodeGen/X86 vector-deinterleave7-i16.ll vector-deinterleave8-i64.ll

Merge remote-tracking branch 'origin/main' into users/kito-cheng/rvv-vector-bits-shorter-data
DeltaFile
+29,293-0llvm/test/CodeGen/X86/vector-interleave7-i16.ll
+29,228-0llvm/test/CodeGen/X86/vector-interleaved7-i8.ll
+27,225-0llvm/test/CodeGen/X86/vector-interleave7-i32.ll
+26,140-0llvm/test/CodeGen/X86/vector-deinterleave7-i8.ll
+25,861-0llvm/test/CodeGen/X86/vector-deinterleave8-i64.ll
+25,769-0llvm/test/CodeGen/X86/vector-deinterleave7-i16.ll
+163,516-017,647 files not shown
+1,402,604-297,38917,653 files

LLVM/project 197429d — mlir/lib/Dialect/Arith/IR CMakeLists.txt ArithOps.cpp, mlir/test/Dialect/Arith select-common-elementwise.mlir

[mlir] [arith] Combine op for select (#234818)

Fold select(c, F(a0, a1), F(b0, b1)) into F(select(c, a0, b0), select(c,
a1, b1))

Correctness provement:

Let's discuss the cases ignoring poison first.
As F is elementwise, we have

      F(a1, a2, ..., a_n)[p] = F(a1[p], a2[p], ..., a_n[p])

then for

      L = select(M, F(a0, a1, ..., a_n), F(b0, b1, ..., b_n))
      R = F(select(M, a0, b0), select(M, a1, b1), ....)

   for any position p, we have:


    [35 lines not shown]
DeltaFile
+137-0mlir/test/Dialect/Arith/select-common-elementwise.mlir
+119-0mlir/lib/Dialect/Arith/IR/ArithOps.cpp
+8-0mlir/test/lib/Dialect/Test/TestOps.td
+1-0mlir/lib/Dialect/Arith/IR/CMakeLists.txt
+265-04 files

LLVM/project 05310f0 — clang/lib/Sema SemaAMDGPU.cpp, clang/test/Sema builtins-amdgcn-d16-image-16bit-error.c

[Clang][AMDGPU] Remove manual target feature check for image builtins
DeltaFile
+46-222clang/test/SemaOpenCL/builtins-extended-image-err.cl
+49-211clang/test/SemaOpenCL/builtins-image-load-image-feature-err.cl
+29-122clang/test/SemaOpenCL/builtins-image-store-image-feature-err.cl
+50-56clang/test/Sema/builtins-amdgcn-d16-image-16bit-error.c
+0-16clang/lib/Sema/SemaAMDGPU.cpp
+14-0clang/test/SemaHIP/amdgpu-image-builtins-feature.hip
+188-6271 files not shown
+202-6277 files

LLVM/project 2ae5a02 — llvm/lib/Target/AArch64 AArch64InstrInfo.cpp, llvm/lib/Target/AMDGPU R600InstrInfo.cpp

[Targets] Check Register::isPhysical before converting to MCRegister. (#242858)

Found by adding an assertion to Register::operator MCRegister.
DeltaFile
+3-4llvm/lib/Target/SystemZ/SystemZCopyPhysRegs.cpp
+3-3llvm/lib/Target/AArch64/AArch64InstrInfo.cpp
+3-2llvm/lib/Target/X86/X86InstrInfo.cpp
+3-2llvm/lib/Target/AMDGPU/R600InstrInfo.cpp
+2-1llvm/lib/Target/ARM/ThumbRegisterInfo.cpp
+14-125 files

LLVM/project 6518708 — clang-tools-extra/clang-tidy/bugprone MacroConditionCheck.h MacroConditionCheck.cpp, clang-tools-extra/clang-tidy/readability UseConcisePreprocessorDirectivesCheck.cpp

[clang-tidy] Add bugprone-macro-condition check (#210768)

Warns about inconsistent macro usage in preprocessor conditions.

  #define USE_FOO 0
  #ifdef USE_FOO
  // ...no preprocessor directives testing the value of USE_FOO
  #endif

Here USE_FOO is defined to a value (and furthermore defined to evaluate
to false) but the preprocessor condition only checks for the macro being
defined.

Fixes #27438
DeltaFile
+693-0clang-tools-extra/clang-tidy/bugprone/MacroConditionCheck.cpp
+247-0clang-tools-extra/test/clang-tidy/checkers/bugprone/macro-condition.cpp
+112-0clang-tools-extra/docs/clang-tidy/checks/bugprone/macro-condition.md
+27-28clang-tools-extra/clang-tidy/readability/UseConcisePreprocessorDirectivesCheck.cpp
+40-0clang-tools-extra/clang-tidy/utils/LexerUtils.cpp
+34-0clang-tools-extra/clang-tidy/bugprone/MacroConditionCheck.h
+1,153-2810 files not shown
+1,241-6516 files

LLVM/project 7c3a9f2 — libc/src/__support/OSUtil/linux/syscall_wrappers personality.h pkey_mprotect.h

[libc] Simplify open/personality/pkey_mprotect/sched_getaffinity error handling (#242774)
DeltaFile
+3-6libc/src/__support/OSUtil/linux/syscall_wrappers/sched_getaffinity.h
+3-6libc/src/__support/OSUtil/linux/syscall_wrappers/open.h
+2-6libc/src/__support/OSUtil/linux/syscall_wrappers/pkey_mprotect.h
+2-5libc/src/__support/OSUtil/linux/syscall_wrappers/personality.h
+10-234 files

LLVM/project 4d5ae12 — orc-rt/include/orc-rt/support SymbolLookupSet.h, orc-rt/include/orc-rt/support/sps SPSRemoteSymbolLookupSet.h SPSSymbolLookupSet.h

[orc-rt] Add SymbolLookupSet for interned symbol names (#242969)

SymbolLookupSet holds symbol names as StringPool::Ptrs, so building a
set doesn't copy the name strings. It has the same interface as
RemoteSymbolLookupSet, which holds plain std::strings.

sps::lookupInJITDylib now takes a SymbolLookupSet. To support this:

- StringPool::Ptr and WeakPtr can be serialized to SPSString, which
writes the string's value. Only serialization is supported:
deserializing into an interned string would need a StringPool, and SPS
deserialization has no way to obtain one.

- SymbolLookupSet can be serialized (but not deserialized) as an
SPSSymbolLookupSet. The wire format doesn't change, so controllers are
unaffected.

- SPSRemoteSymbolLookupSet.h is renamed to SPSSymbolLookupSet.h, after
the tag it defines. It now holds the traits for both kinds of set.
DeltaFile
+88-0orc-rt/test/unit/support/SymbolLookupSetTest.cpp
+86-0orc-rt/include/orc-rt/support/sps/SPSSymbolLookupSet.h
+80-0orc-rt/test/unit/support/sps/SPSSymbolLookupSetTest.cpp
+0-75orc-rt/include/orc-rt/support/sps/SPSRemoteSymbolLookupSet.h
+74-0orc-rt/include/orc-rt/support/SymbolLookupSet.h
+0-61orc-rt/test/unit/support/sps/SPSRemoteSymbolLookupSetTest.cpp
+328-13611 files not shown
+411-16617 files

LLVM/project ff34c08 — clang/test/CIR/CodeGenHIP call-conv-lowering-amdgpu-kernel-args.hip

update hip test
DeltaFile
+30-30clang/test/CIR/CodeGenHIP/call-conv-lowering-amdgpu-kernel-args.hip
+30-301 files

LLVM/project 6b1f7ba — clang/lib/Interpreter Interpreter.cpp

[clang-repl] Fix leak when -mllvm parsing fails after #242861 (#242968)

Fix the InterpreterTest.BadLLVMArgs LeakSanitizer failure.
DeltaFile
+8-1clang/lib/Interpreter/Interpreter.cpp
+8-11 files

LLVM/project 3ceb1b3 — clang/test/CIR/CodeGen call-conv-lowering-amdgpu-cxx-records.cpp call-conv-lowering-amdgpu-return-types.c, clang/test/CIR/CodeGenHIP call-conv-lowering-amdgpu-kernel-args.hip

add working test cases after rebase
DeltaFile
+403-16clang/test/CIR/CodeGen/call-conv-lowering-amdgpu-arg-types.c
+146-13clang/test/CIR/CodeGen/call-conv-lowering-amdgpu-return-types.c
+88-13clang/test/CIR/CodeGen/call-conv-lowering-amdgpu-cxx-records.cpp
+39-3clang/test/CIR/CodeGenHIP/call-conv-lowering-amdgpu-kernel-args.hip
+676-454 files

LLVM/project 5edb24e — libc/config/gpu/spirv entrypoints.txt, libc/src/math/spirv ldexp.cpp ldexpf.cpp

[libc][GPU] Enable scalbn/ldexp, rand, remainder for SPIR-V (#242212)

This PR is a follow up of
https://github.com/llvm/llvm-project/pull/236324 to fix more build
issues for SPIR-V compiler-rt builtin tests. "Undefined symbols" from
libc and libm still lead to a bunch of build failures such as rand,
srand, scalbn/f, remainder/f. Before the fix, building results:

Total Discovered Tests: 275
  Unsupported: 125 (45.45%)
  Passed     : 128 (46.55%)
  Failed     :  22 (8.00%)

After the fix:
Total Discovered Tests: 275
  Unsupported: 125 (45.45%)
  Passed     : 136 (49.45%)
  Failed     :  14 (5.09%)
8 more tests can build pass now.

    [8 lines not shown]
DeltaFile
+31-0libc/src/math/spirv/CMakeLists.txt
+20-0libc/src/math/spirv/ldexp.cpp
+20-0libc/src/math/spirv/ldexpf.cpp
+20-0libc/src/math/spirv/scalbn.cpp
+20-0libc/src/math/spirv/scalbnf.cpp
+8-0libc/config/gpu/spirv/entrypoints.txt
+119-06 files

LLVM/project 3c4ada9 — llvm/tools/llvm-exegesis llvm-exegesis.cpp, llvm/tools/llvm-exegesis/lib DisassemblerHelper.cpp LlvmState.h

[llvm-exegesis] Parse library options into a context (#242680)

Parse the command line into a cl::LibraryOptionsContext instead of the
global option values. LLVMState::create takes the context and points
the target machine's MCOptions.LibraryOptions at it. The assembler's
LLVMContext and the disassembler's MCAsmInfo read from it as well.

LLM-aided
DeltaFile
+11-9llvm/tools/llvm-exegesis/llvm-exegesis.cpp
+6-5llvm/tools/llvm-exegesis/lib/LlvmState.cpp
+5-3llvm/tools/llvm-exegesis/lib/LlvmState.h
+3-4llvm/tools/llvm-exegesis/lib/DisassemblerHelper.cpp
+4-2llvm/unittests/tools/llvm-exegesis/X86/BenchmarkResultTest.cpp
+4-2llvm/unittests/tools/llvm-exegesis/RISCV/TestBase.h
+33-256 files not shown
+52-3212 files

LLVM/project 01bf8c1 — .github/workflows sycl-tests.yml spirv-tests.yml

Update [Github] Update GHA Dependencies (#242912)

This PR contains the following updates:

| Package | Type | Update | Change |
|---|---|---|---|
|
[hendrikmuhs/ccache-action](https://redirect.github.com/hendrikmuhs/ccache-action)
| action | patch | `v1.2.24` → `v1.2.25` |
|
[vmactions/freebsd-vm](https://redirect.github.com/vmactions/freebsd-vm)
| action | minor | `v1.5.9` → `v1.6.0` |
DeltaFile
+2-2.github/workflows/libc-overlay-tests.yml
+1-1.github/workflows/sycl-tests.yml
+1-1.github/workflows/spirv-tests.yml
+1-1.github/workflows/mlir-spirv-tests.yml
+1-1.github/workflows/libc-fullbuild-tests.yml
+1-1.github/workflows/libc-freebsd-vm-tests.yml
+7-71 files not shown
+8-87 files

LLVM/project a548163 — llvm/lib/CodeGen AtomicExpandPass.cpp, llvm/test/CodeGen/X86 atomic-load-store.ll

AtomicExpand: Cast the xchg from an expanded atomic store to integer

expandAtomicStoreToXChg created the atomicrmw xchg and expanded it
directly, skipping the cast to integer that shouldCastAtomicRMWIInIR
requests for other xchg instructions. A vector store expanded this way
reached the LL/SC expansion with a vector type, which asserted on ARM.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+111-0llvm/test/Transforms/AtomicExpand/ARM/atomic-store-vector.ll
+19-24llvm/test/CodeGen/X86/atomic-load-store.ll
+10-3llvm/lib/CodeGen/AtomicExpandPass.cpp
+0-6llvm/test/Transforms/AtomicExpand/AArch64/expand-atomicrmw-xchg-fp.ll
+140-334 files

LLVM/project abcbd44 — llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer InstrMaps.h, llvm/lib/CodeGen CriticalAntiDepBreaker.h

[llvm] Remove unused private member variables (NFC) (#242928)

sandboxir::InstrMaps::EraseInstrCB: The last uses were removed on
February 20, 2025 in commit 10b99e97ff866b43569531b890c11b4a3011f6a2.

CriticalAntiDepBreaker::AllocatableSet: The last uses were removed on
June 16, 2011 in commit 4f5f84c7e7beb4caa222b835227cccc653d820f4.

FrameTypeBuilder::FieldIndexByKey: Added on March 25, 2020 in commit
9514c048d89e6aef82d86c3478223fcb28230a4f without any uses.

TransformDFA::TPaths: Added on July 27, 2021 in commit
02077da7e7a8ff76c0576bb33adb462c337013f5 without any uses.

GVNHoist::IDFBlocks: Added on September 13, 2017 in commit
dfa8741c9693c344477c842a25ee0cb6a6f59fcd without any uses. Note that
GVNHoist::computeInsertionPoints declares a local variable with the same
name that shadows this member variable.


    [4 lines not shown]
DeltaFile
+0-5llvm/lib/CodeGen/CriticalAntiDepBreaker.h
+0-4llvm/lib/Transforms/Utils/ValueMapper.cpp
+0-2llvm/include/llvm/Transforms/Vectorize/SandboxVectorizer/InstrMaps.h
+0-1llvm/lib/Transforms/Scalar/GVNHoist.cpp
+0-1llvm/lib/Transforms/Scalar/DFAJumpThreading.cpp
+0-1llvm/lib/Transforms/Coroutines/CoroFrame.cpp
+0-146 files

LLVM/project dad0d10 — mlir/include/mlir/Dialect/AMDGPU/IR AMDGPUOps.td, mlir/include/mlir/Dialect/LLVMIR ROCDLOps.td

[mlir][AMDGPU] Add preferAgpr hint to MFMA operations

The AMDGPU backend accepts the `!amdgpu.mfma !{!"agpr"}` instruction
metadata on calls to the `llvm.amdgcn.mfma.*` intrinsics (including
`llvm.amdgcn.mfma.scale.*`). The metadata is a hint that asks the backend
to allocate the accumulator input (C) and the result (D) of the MFMA to
AGPRs. The backend can ignore the hint, and dropping it does not change
program behavior.

Add an optional `preferAgpr` unit attribute to the ROCDL MFMA intrinsic
operations, including the scaled MFMA operations, and to `amdgpu.mfma` and
`amdgpu.scaled_mfma`. When the attribute is present, the translation to
LLVM IR attaches `!amdgpu.mfma !{!"agpr"}` to the intrinsic call, and the
AMDGPUToROCDL conversion copies the attribute to the ROCDL operation. When
the attribute is absent, the printed operations and the translated LLVM IR
are the same as before.

The SMFMAC operations do not get the attribute because the backend ignores
the hint on `llvm.amdgcn.smfmac.*`.

    [5 lines not shown]
DeltaFile
+49-7mlir/include/mlir/Dialect/LLVMIR/ROCDLOps.td
+32-0mlir/test/Dialect/LLVMIR/rocdl.mlir
+23-4mlir/include/mlir/Dialect/AMDGPU/IR/AMDGPUOps.td
+27-0mlir/test/Target/LLVMIR/rocdl.mlir
+18-0mlir/test/Dialect/AMDGPU/ops.mlir
+14-0mlir/test/Conversion/AMDGPUToROCDL/mfma-gfx950.mlir
+163-113 files not shown
+188-119 files

LLVM/project 2e9d3ab — llvm/lib/Target/AMDGPU AMDGPUInstCombineIntrinsic.cpp, llvm/test/Transforms/InstCombine/AMDGPU mfma-scale.ll

[AMDGPU] Keep metadata when shrinking scaled MFMA fp4/fp6 operands

InstCombine narrows the A/B operands of llvm.amdgcn.mfma.scale.*.f8f6f4
for fp4/fp6 formats by creating a new call, but did not copy the old
call's metadata. Copy it, as the other rewrites in this file do, so
hints such as !amdgpu.mfma survive.
DeltaFile
+18-0llvm/test/Transforms/InstCombine/AMDGPU/mfma-scale.ll
+2-0llvm/lib/Target/AMDGPU/AMDGPUInstCombineIntrinsic.cpp
+20-02 files

LLVM/project d87c8a0 — llvm/docs AMDGPUUsage.md, llvm/include/llvm/CodeGen SelectionDAG.h

[AMDGPU][SelectionDAG] Select the MFMA AGPR form from !amdgpu.mfma metadata

Problem
- Frontends (Triton) pin MFMA accumulators to AGPRs with "=a" inline asm.
- The asm forces VGPR->AGPR copies around every MFMA (v_accvgpr_mov
  + s_nop inside loops), and selection has no way to ask for the AGPR
  form per instruction: it is chosen per function.

Idea: a droppable hint on the MFMA call, read when the form is selected.

  IR    call @llvm.amdgcn.mfma.*(...), !amdgpu.mfma !{!"agpr"}
          |  SelectionDAGBuilder: TLI.getTargetIntrinsicHint(I)
  DAG   INTRINSIC_WO_CHAIN  --SDEI side table: TargetHint
          |  CanUseAGPR_MAI predicate
  MIR   V_MFMA_..._e64 (AGPR form): C/D are AReg, no copies

How
1. TargetLowering::getTargetIntrinsicHint returns metadata from an
   intrinsic call; SelectionDAGBuilder stores it on the node in the

    [34 lines not shown]
DeltaFile
+771-0llvm/test/CodeGen/AMDGPU/mfma-agpr-metadata.ll
+155-0llvm/test/CodeGen/AMDGPU/mfma-scale-agpr-metadata.ll
+62-0llvm/test/CodeGen/AMDGPU/amdgpu-attributor-mfma-agpr-metadata.ll
+30-0llvm/docs/AMDGPUUsage.md
+20-4llvm/lib/Target/AMDGPU/VOP3PInstructions.td
+11-0llvm/include/llvm/CodeGen/SelectionDAG.h
+1,049-48 files not shown
+1,089-414 files

LLVM/project 66cb135 — llvm/lib/Target/AMDGPU SIInstrInfo.cpp, llvm/test/CodeGen/AMDGPU amdgcn.bitcast.256bit.ll peephole-fold-imm.mir

AMDGPU: Fold inline immediates in peephole-opt (#242952)

Currently the AMDGPU implementation of foldImmediate handles a small
set of special cases that require rewriting the instruction opcode
(COPY -> mov, and fma-like to fmac-like). Most general immediate folding
is handled in SIFoldOperands. Teach PeepholeOpt to fold all inline
immediates into target instructions which should always be an
improvement.

This is to help alleviate some phase ordering problems in future changes.
I've also never liked how SIFoldOperands is written and it could use a
rewrite, and this will alleviate some of its responsibilties. It will
always be necessary since some operand folds require additional context
that foldImmediate won't have (namely, we have to make contextually
aware tradeoffs for which operands are worth folding to respect constant bus
restrictions, considering other users of the values).


Co-authored-by: Claude (Opus 4.8) <noreply at anthropic.com>
DeltaFile
+2,374-2,371llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+490-485llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.512bit.ll
+68-74llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.320bit.ll
+107-9llvm/test/CodeGen/AMDGPU/peephole-fold-imm.mir
+45-52llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.256bit.ll
+58-10llvm/lib/Target/AMDGPU/SIInstrInfo.cpp
+3,142-3,00114 files not shown
+3,234-3,17020 files

LLVM/project 79745d6 — llvm/lib/Target/AMDGPU SIPostRA16BitMovFolding.cpp, llvm/test/CodeGen/AMDGPU si-post-ra-merge-v-mov-b16.mir

AMDGPU: Clear stale kills when merging v_mov_b16 pairs

SIPostRA16BitMovFolding can insert the merged 32-bit instruction after
an instruction that kills the first mov's source, which then reads a
register the verifier considers dead:

  $vgpr7_lo16 = V_MOV_B16_t16_e32 $vgpr5_lo16
  $vgpr16 = V_PERM_B32_e64 killed $vgpr5, $vgpr6, ...
  $vgpr7_hi16 = V_MOV_B16_t16_e32 killed $vgpr6_lo16
=>
  $vgpr16 = V_PERM_B32_e64 killed $vgpr5, $vgpr6, ...
  $vgpr7 = V_PERM_B32_e64 $vgpr6, $vgpr5, ...

Clear kill flags of the first mov's source between the first mov and
the insertion point.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+24-0llvm/lib/Target/AMDGPU/SIPostRA16BitMovFolding.cpp
+20-0llvm/test/CodeGen/AMDGPU/si-post-ra-merge-v-mov-b16.mir
+44-02 files

LLVM/project 4754f94 — llvm/lib/IR Attributes.cpp

IR: Check for overlap before copying in AttributeSet::removeAttributes

removeAttributes copied the whole set into an AttrBuilder to check if
the mask overlaps it, which it usually doesn't. Check the attributes
of directly with the mask and only build the AttrBuilder if something
needs to be removed.

callgrind instructions, opt -O3: kimwitu++ k.bc -0.16%, SPASS cnf.bc
-0.08%. CTMark instructions:u: ThinLTO -0.02% (kimwitu++ -0.06%)

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+2-2llvm/lib/IR/Attributes.cpp
+2-21 files

LLVM/project 976223f — orc-rt/include/orc-rt/support SymbolLookupSet.h RemoteSymbolLookupSet.h, orc-rt/include/orc-rt/support/sps SPSSymbolLookupSet.h SPSRemoteSymbolLookupSet.h

[orc-rt] Rename SymbolLookupSet to RemoteSymbolLookupSet. NFC. (#242950)

The std::string-based set is only used for lookup requests that arrive
from the controller. Renaming it frees SymbolLookupSet for a set of
interned (StringPool::Ptr) names, and matches the existing names on the
LLVM side, where llvm::orc::SymbolLookupSet holds interned names and
llvm::orc::RemoteSymbolLookupSet holds plain strings.

The SPS tag SPSSymbolLookupSet is unchanged: it names the wire format,
which LLVM uses for both kinds of set.
DeltaFile
+75-0orc-rt/include/orc-rt/support/sps/SPSRemoteSymbolLookupSet.h
+0-72orc-rt/include/orc-rt/support/sps/SPSSymbolLookupSet.h
+63-0orc-rt/include/orc-rt/support/RemoteSymbolLookupSet.h
+61-0orc-rt/test/unit/support/sps/SPSRemoteSymbolLookupSetTest.cpp
+0-60orc-rt/test/unit/support/sps/SPSSymbolLookupSetTest.cpp
+0-60orc-rt/include/orc-rt/support/SymbolLookupSet.h
+199-19222 files not shown
+289-28128 files

LLVM/project 4534d33 — llvm/lib/IR AutoUpgrade.cpp

AutoUpgrade: Skip return values and arguments without attributes

UpgradeFunctionAttributes built the mask of type incompatible
attributes and tried to remove them from all arg and return positions,
even if there were no attributes.

callgrind instructions, opt -O3: kimwitu++ k.bc -0.05%, SPASS cnf.bc
-0.02%. CTMark instructions:u: ThinLTO -0.02%

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+12-5llvm/lib/IR/AutoUpgrade.cpp
+12-51 files

LLVM/project c44c502 — llvm/test/CodeGen/AMDGPU peephole-fold-imm.mir

Use noinline pseudo scalar trans opcode in peephole-fold-imm test

V_S_EXP_F16_e64 is not available on gfx1250, which only has the
_noinline variant.
DeltaFile
+5-6llvm/test/CodeGen/AMDGPU/peephole-fold-imm.mir
+5-61 files