LLVM/project 21b2bdb — llvm/test/CodeGen/AMDGPU coexec-sched-flavor-classification.mir

Update llvm/test/CodeGen/AMDGPU/coexec-sched-flavor-classification.mir

Co-authored-by: Matt Arsenault <Matthew.Arsenault at amd.com>
DeltaFile
+0-1llvm/test/CodeGen/AMDGPU/coexec-sched-flavor-classification.mir
+0-11 files

LLVM/project 0056824 — llvm/test/CodeGen/AMDGPU coexec-sched-flavor-classification.mir

Update llvm/test/CodeGen/AMDGPU/coexec-sched-flavor-classification.mir

Co-authored-by: Matt Arsenault <Matthew.Arsenault at amd.com>
DeltaFile
+0-1llvm/test/CodeGen/AMDGPU/coexec-sched-flavor-classification.mir
+0-11 files

LLVM/project 8746851 — clang/lib/CIR/CodeGen CIRGenItaniumCXXABI.cpp, clang/test/CodeGenCXX vtable-available-externally.cpp

[CIR] Fix speculative vtable emission check for inline virtual functions (#245845)

hasAnyUnusedVirtualInlineFunction looked up each inline virtual function
as a cir::GlobalOp, which never matches a function, so every class
appeared to have an unemitted inline virtual and
canSpeculativelyEmitVTable always returned false. As a result CIR never
emitted available_externally vtables at -O1 and above, preventing LLVM
from devirtualizing calls whose target is known after inlining a
constructor. Look the entry up as a cir::FuncOp, matching classic
codegen.
DeltaFile
+16-0clang/test/CodeGenCXX/vtable-available-externally.cpp
+1-1clang/lib/CIR/CodeGen/CIRGenItaniumCXXABI.cpp
+17-12 files

LLVM/project e5fd840 — llvm/lib/Target/Sparc SparcRegisterInfo.td, llvm/lib/Target/Sparc/AsmParser SparcAsmParser.cpp

[Sparc] Reject V9-only register names and fcmp forms on V8 (#247419)

When targeting V8, the assembler accepted the V9 names of %asr2-%asr6
(%ccr, %asi, %tick, %pc and %fprs), the JPS1 names of the other ASRs,
and the forms of the floating-point compares that name an %fcc
register. fcmps %fcc1, ... was encoded with the cc bits in a field that
is reserved on V8, and the disassembler decoded that encoding back as
the V9 form.

Reject all of these on V8 as GNU as does, and don't decode %fcc1-%fcc3
on V8.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+61-0llvm/test/MC/Sparc/sparcv9-only-names.s
+31-1llvm/lib/Target/Sparc/AsmParser/SparcAsmParser.cpp
+0-29llvm/test/MC/Sparc/sparc-special-registers.s
+18-0llvm/test/MC/Disassembler/Sparc/sparc-v8-fcc.txt
+2-4llvm/lib/Target/Sparc/SparcRegisterInfo.td
+4-0llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp
+116-346 files

LLVM/project 826e886 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 knownbits-hadd-hsub.ll

[X86] isGuaranteedNotToBeUndefOrPoisonForTargetNode - add X86ISD::HADD/HSUB handling (#247764)

Use getHorizDemandedElts to determine the correct DemandedElts masks

Pulled out of #245048
DeltaFile
+2-17llvm/test/CodeGen/X86/knownbits-hadd-hsub.ll
+16-2llvm/lib/Target/X86/X86ISelLowering.cpp
+18-192 files

LLVM/project 98f1289 — flang/lib/Optimizer/OpenMP DoConcurrentConversion.cpp, flang/test/Transforms/DoConcurrent collapse_innermost.f90

[flang][OpenMP] Keep vectorizable innermost loop out of collapse (#236152)

On the host, collapsing all loops of a multi-index `do concurrent`
recomputes every index on each iteration and blocks vectorization of the
innermost loop. Leave the innermost loop out of the collapse when it is
likely to vectorize, unless the outer loops have constant bounds with
fewer than 64 iterations in total. Device mapping is unchanged.
DeltaFile
+219-0flang/test/Transforms/DoConcurrent/collapse_innermost.f90
+121-3flang/lib/Optimizer/OpenMP/DoConcurrentConversion.cpp
+340-32 files

LLVM/project eb60313 — llvm/unittests/Target/AMDGPU CMakeLists.txt BlockingCycles.cpp

[AMDGPU] Add unit test for gfx1250 blocking cycles

Change-Id: I6df018d91183ffe0cbc8ebc984348b701e29ad91
DeltaFile
+79-0llvm/unittests/Target/AMDGPU/BlockingCycles.cpp
+1-0llvm/unittests/Target/AMDGPU/CMakeLists.txt
+80-02 files

LLVM/project c3f9fcc — llvm/test/CodeGen/AMDGPU coexec-sched-flavor-classification.mir

[AMDGPU] Precommit test for blocking cycle coverage

Change-Id: I6829a42152b6b101e26acda8dedd8fee9c8725a8
DeltaFile
+32-0llvm/test/CodeGen/AMDGPU/coexec-sched-flavor-classification.mir
+32-01 files

LLVM/project ee6b328 — clang/docs LanguageExtensions.md, clang/include/clang/Basic DiagnosticSemaKinds.td

feedback

Created using spr 1.3.7
DeltaFile
+27-0clang/test/CodeGen/oracle_function.cpp
+4-15clang/include/clang/Basic/DiagnosticSemaKinds.td
+9-1clang/test/CodeGen/oracle_function.c
+4-4clang/test/Sema/attr-oracle-function.c
+1-1clang/docs/LanguageExtensions.md
+45-215 files

LLVM/project 703baf5 — llvm/lib/Target/Sparc SparcISelLowering.cpp, llvm/test/CodeGen/SPARC inlineasm-v9.ll

[Sparc] Fix inline asm operands bound to %f32-%f62 (#247420)

An inline asm double operand bound to one of %f32-%f62 (D16-D31), as
in "{f32}" or "{d16}", hit an assertion in getCopyToParts. The generic
lookup returned the register in CanonicalFPRegs, which exists only for
the assembler and comes first in the register class list, and whose
first value type is f32. Use the allocatable class of the register
instead.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+12-0llvm/test/CodeGen/SPARC/inlineasm-v9.ll
+9-0llvm/lib/Target/Sparc/SparcISelLowering.cpp
+21-02 files

LLVM/project 08a2d90 — utils/bazel/llvm-project-overlay/libc/hdr/types BUILD.bazel, utils/bazel/llvm-project-overlay/libc/include BUILD.bazel

[Bazel][Libc] Add info about char16_t.h to bazel build files. (#247770)

char16_t.h was added to character converter by PR 230434, but the Bazel
build files were not updated then.
DeltaFile
+9-0utils/bazel/llvm-project-overlay/libc/hdr/types/BUILD.bazel
+8-0utils/bazel/llvm-project-overlay/libc/include/BUILD.bazel
+2-0utils/bazel/llvm-project-overlay/libc/src/__support/wchar/BUILD.bazel
+19-03 files

LLVM/project 7906e06 — llvm/include/llvm/SandboxIR Utils.h, llvm/lib/Analysis MetadataUtils.cpp

[Analysis] Name vectorization metadata helpers explicitly
DeltaFile
+6-5llvm/lib/Analysis/MetadataUtils.cpp
+5-5llvm/lib/Target/Hexagon/HexagonVectorCombine.cpp
+5-4llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+5-4llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
+4-4llvm/unittests/Analysis/VectorUtilsTest.cpp
+3-2llvm/include/llvm/SandboxIR/Utils.h
+28-245 files not shown
+37-3211 files

LLVM/project c69d93e — llvm/lib/Target/AArch64 AArch64Processors.td, llvm/test/CodeGen/AArch64 sched-print-cycle.mir

[AArch64] Remove FeatureFuseArithmeticLogic from Apple targets (#220511)

As this kind of clustering has not proved to be beneficial.
DeltaFile
+0-6llvm/test/TableGen/aarch64-apple-tuning-features.td
+3-3llvm/test/CodeGen/AArch64/sched-print-cycle.mir
+0-1llvm/lib/Target/AArch64/AArch64Processors.td
+3-103 files

LLVM/project 7ef8ca1 — llvm/lib/Analysis ScalarEvolution.cpp, llvm/test/Analysis/ScalarEvolution gep-nowrap-flags-offset-scope.ll

[SCEV] Add GEP offsets successively. (#247648)

nusw on a GEP only guarantees that adding the offsets in the
original order of the indices does not wrap.

SCEV requires flags to apply for any operand order. Add the offsets one
by one instead, like createSCEV does for chains of adds. getAddExpr
handles flags correctly when inlining operands.

PR: https://github.com/llvm/llvm-project/pull/247648
DeltaFile
+39-0llvm/test/Transforms/IndVarSimplify/exit-value-nowrap-flags.ll
+22-0llvm/test/Analysis/ScalarEvolution/gep-nowrap-flags-offset-scope.ll
+4-2llvm/lib/Analysis/ScalarEvolution.cpp
+65-23 files

LLVM/project 63bb578 — clang/include/clang/AST DeclObjC.h ASTContext.h, clang/lib/AST ASTContext.cpp DeclObjC.cpp

[Modules][ObjC] Objective-C categories aren't visible in local submodule visibility (#246933)

Objective-C categories are never visible under local submodule
visibility because ObjCInterfaceDecl::isVisible{Category|Extension}
doesn't check Sema::isVisible. In fact they can't check Sema because
that's at a higher level. Instead add an isDeclVisible to ASTContext,
and have Sema set a callback on ASTContext to let it call through to
Sema::isVisible.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>

rdar://82149585
DeltaFile
+376-0clang/test/Modules/lsv-objc.m
+12-0clang/include/clang/AST/ASTContext.h
+0-9clang/include/clang/AST/DeclObjC.h
+9-0clang/lib/AST/DeclObjC.cpp
+6-0clang/lib/Sema/Sema.cpp
+6-0clang/lib/AST/ASTContext.cpp
+409-96 files

LLVM/project b9fbb62 — llvm/lib/Target/AMDGPU AMDGPUAttributor.cpp, llvm/test/CodeGen/AMDGPU duplicate-attribute-indirect.ll simple-indirect-call.ll

[AMDGPU] Re-enable AAInstanceInfo in AMDGPUAttributor (#247043)

This was enabled and then disabled because of its compile time impact.
With recent changes #246890 and #247042, the compile time issue should
have been resolved.
DeltaFile
+13-5llvm/test/CodeGen/AMDGPU/amdgpu-attributor-accesslist-offsetbins-out-of-sync.ll
+3-6llvm/test/CodeGen/AMDGPU/simple-indirect-call-2.ll
+5-3llvm/test/CodeGen/AMDGPU/direct-indirect-call.ll
+4-2llvm/test/CodeGen/AMDGPU/simple-indirect-call.ll
+2-3llvm/test/CodeGen/AMDGPU/duplicate-attribute-indirect.ll
+1-1llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+28-206 files

LLVM/project 2f8f4ee — llvm/lib/Target/AMDGPU GCNSubtarget.h AMDGPU.td, llvm/test/CodeGen/AMDGPU min3.ll max3.ll

[AMDGPU] Do not select v_pk_{min,max}3_{i,u}16 on gfx13 (#242030)

gfx13 has gfx1250-insts but lacks these opcodes, so gate them on a new
feature
DeltaFile
+5-0llvm/lib/Target/AMDGPU/GCNFeatures.td
+0-4llvm/lib/Target/AMDGPU/AMDGPU.td
+0-3llvm/lib/Target/AMDGPU/GCNSubtarget.h
+3-0llvm/test/CodeGen/AMDGPU/min3.ll
+3-0llvm/test/CodeGen/AMDGPU/max3.ll
+11-75 files

LLVM/project 43f06a8 — clang/docs ReleaseNotes.md, clang/test/OpenMP irbuilder_target_offload_metadata.c

[Clang][OpenMP] Skip offload metadata emission during function finalization (#245735)

With -fopenmp-enable-irbuilder, Clang calls finalize(CurFn) after
generating each function. Emitting module-wide offload entries there,
and again at module completion, duplicates host offload metadata. Device
compilation then fails with "All ordered entries must exist!" because
duplicate records inflate the entry count.

Only emit offload entries from finalize() when no function is supplied.

Follow-up to commit 48c3ae5 @agozillon.

Fixes #242591.

Assisted by gpt-6.
DeltaFile
+30-0llvm/unittests/Frontend/OpenMPIRBuilderTest.cpp
+17-0clang/test/OpenMP/irbuilder_target_offload_metadata.c
+2-1llvm/lib/Frontend/OpenMP/OMPIRBuilder.cpp
+3-0clang/docs/ReleaseNotes.md
+52-14 files

LLVM/project 9976517 — lld/MachO InputFiles.cpp

[lld][MachO] Run ObjFile::parsePrepare() in parallel in loadInputs()
DeltaFile
+23-3lld/MachO/InputFiles.cpp
+23-31 files

LLVM/project 5ed4157 — lld/MachO InputFiles.h InputFiles.cpp

[lld][MachO][NFC] Split ObjFile::parse() into parsePrepare() and parseFinish()
DeltaFile
+177-82lld/MachO/InputFiles.cpp
+30-4lld/MachO/InputFiles.h
+207-862 files

LLVM/project 2029c02 — lld/MachO InputFiles.cpp SymbolTable.cpp

[lld][MachO][NFC] Accept CachedHashStringRef in SymbolTable::addDylib()
DeltaFile
+6-1lld/MachO/SymbolTable.h
+3-3lld/MachO/SymbolTable.cpp
+1-1lld/MachO/InputFiles.cpp
+10-53 files

LLVM/project 694c37f — lld/MachO Symbols.h SymbolTable.cpp, lld/test/MachO autolink-archive-duplicate-def.s

resolve lazy inputs with one persistent owner map

Adopt the design proposed in review. Loading state now lives in two
places: an owner map that has one entry per name and persists across
groups of inputs, and the lazy flag of each file.

Every input is queued when it is created, which gives it a position, and
loadInputs() scans the new files in parallel (each claims the names it
defines and keeps pointers to the entries of the names it references),
visits the references of the files that are part of the link in
parallel, and parses the files that became part of it in input order.
References that do not come from a file (-u, the entry symbol, exported
symbols, ObjC class stubs, dyld_stub_binder) are passed to the same walk
by SymbolTable::addUndefined().

Nothing loads a file on contact any more, so extract(), pendingExtracts,
the per-batch owner map and the LazyArchive and LazyObject symbols are
gone, and the symbol table only sees files that are part of the link.


    [4 lines not shown]
DeltaFile
+431-364lld/MachO/InputFiles.cpp
+37-49lld/MachO/InputFiles.h
+28-49lld/MachO/Driver.cpp
+52-0lld/test/MachO/autolink-archive-duplicate-def.s
+4-41lld/MachO/SymbolTable.cpp
+0-34lld/MachO/Symbols.h
+552-5376 files not shown
+588-55012 files

LLVM/project 5da3f35 — lld/MachO Driver.cpp Config.h, lld/test/MachO bind-at-load.s

[lld][MachO] Implement -bind_at_load (#224788)

Implements ld64's `-bind_at_load`: bind every symbol eagerly at load
time rather than lazily on first use. lld previously parsed the flag,
warned "not yet implemented", and ignored it.

With chained fixups the flag stays a no-op (chained fixups have no
laziness), same as ld64.
DeltaFile
+55-0lld/test/MachO/bind-at-load.s
+9-4lld/MachO/SyntheticSections.cpp
+1-2lld/MachO/Options.td
+1-0lld/MachO/Driver.cpp
+1-0lld/MachO/Config.h
+67-65 files

LLVM/project 50bb0ac — clang CMakeLists.txt, llvm/tools/llvm-ifs CMakeLists.txt

[llvm-ifs][CMake] Register llvm-ifs as a host tool for bootstrap builds (#241130)

Register `llvm-ifs` via `setup_host_tool` and forward `LLVM_IFS` across
Clang bootstrap stages so CMake build rules can invoke `llvm-ifs` across
standalone, `llvm-driver` multicall, cross-compiled, and multi-stage
configurations.

Assisted-by: Gemini
DeltaFile
+6-0clang/CMakeLists.txt
+2-0llvm/tools/llvm-ifs/CMakeLists.txt
+8-02 files

LLVM/project 07d1eed — cmake/Modules LLVMVersion.cmake, libcxx/include __config

Bump version to 23.1.8
DeltaFile
+1-1llvm/utils/mlgo-utils/mlgo/__init__.py
+1-1llvm/utils/lit/lit/__init__.py
+1-1llvm/utils/gn/secondary/llvm/version.gni
+1-1libcxx/include/__config
+1-1cmake/Modules/LLVMVersion.cmake
+5-55 files

LLVM/project 69c103b — llvm/lib/Target/Sparc SparcInstrInfo.td, llvm/lib/Target/Sparc/Disassembler SparcDisassembler.cpp

[SPARC] Sign-extend the immediates of movr and movcc in the disassembler (#247427)

The simm10 field of movr and the simm11 field of movcc had no decoder
method, so the disassembler printed a negative value as unsigned, e.g.
movrz %o0, 0x3fc, %o1 for -4. Decode them with a sign-extending
decoder, as is already done for simm5 and simm13, using one template
for all four.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+5-11llvm/lib/Target/Sparc/Disassembler/SparcDisassembler.cpp
+12-0llvm/test/MC/Disassembler/Sparc/sparc-v9.txt
+4-2llvm/lib/Target/Sparc/SparcInstrInfo.td
+2-2llvm/test/MC/Sparc/Relocations/imm-operand.s
+23-154 files

LLVM/project 1591bae — mlir/lib/Dialect/MemRef/Transforms ElideReinterpretCast.cpp, mlir/test/Dialect/MemRef elide-reinterpret-cast-load.mlir

[mlir][memref] Elide reinterpret_cast windows feeding memref.load (#243489)

Loads through a static offset window, such as the last row of a
`memref<1x513x40xf32>`, kept their reinterpret_cast, but MemRefToEmitC
cannot lower that cast

Shift the load indices by the window offset and load from the source

```mlir
%rc = memref.reinterpret_cast %src to offset: [20480], sizes: [1, 1, 40],
  strides: [20520, 40, 1] : memref<1x513x40xf32> to memref<1x1x40xf32, ...>
%v = memref.load %rc[%c0, %c0, %k]
// becomes
%v = memref.load %src[%c0, %c512, %k] : memref<1x513x40xf32>
```

<sub>AI-assisted, pro forma</sub>
DeltaFile
+202-0mlir/test/Dialect/MemRef/elide-reinterpret-cast-load.mlir
+102-31mlir/lib/Dialect/MemRef/Transforms/ElideReinterpretCast.cpp
+304-312 files

LLVM/project 36c7e81 — llvm/test/tools/llvm-profgen/X86 cs-preinline-icp.test, llvm/test/tools/llvm-profgen/X86/Inputs cs-preinline-icp-map-head.prof

[llvm-profgen] Keep the CS head estimate for indirect call targets

A flow-sensitive profile can split entry probe samples across multiple discriminators. Looking up (1, 0) alone can reject a target even though the sample loader combines its entry samples at the base discriminator. Restore getHeadSamplesEstimate() in the pre-inliner ICP checks and keep the nested-output option local to the generator.

Exercise both sides of the promotion threshold with a 260-sample head split across two entry records. Verify that the nested output read with base discriminators gives the eligible target all 260 samples.
DeltaFile
+10-36llvm/test/tools/llvm-profgen/X86/cs-preinline-icp.test
+1-19llvm/tools/llvm-profgen/CSPreInliner.cpp
+2-1llvm/test/tools/llvm-profgen/X86/Inputs/cs-preinline-icp-map-head.prof
+1-1llvm/tools/llvm-profgen/ProfileGenerator.cpp
+0-1llvm/tools/llvm-profgen/Options.h
+14-585 files

LLVM/project d3651e1 — clang/include/clang/CIR/Dialect/IR CIRAttrs.td, clang/include/clang/CIR/Interfaces CIROpInterfaces.td

[CIR] Give the #cir.fenv parameters default values

The parameters of `#cir.fenv` were optional, and accessors substituted
a default for an absent one. The default floating-point environment
therefore had several spellings, such as `fenv<>`,
`fenv<except_mode = masked>` and the form CIRGen emits with all three
parameters, each a distinct attribute.

This makes the parameters default-valued: `tonearest`, `masked` and
`false`, the default floating-point environment. A parameter with its
default value is not printed, so each environment has one printed form
and `fenv<>` is the default one. A parameter spelled with its default
value still parses and gives the same attribute. An operation with
`fenv<>` is still constrained. Only an operation without the attribute
is not.

The default of `dynamic_rounding_mode` changes from `unknown` to
`tonearest`, in the documentation and in what the accessor returns for
an absent mode. Lowering already emitted `round.tonearest` for an

    [9 lines not shown]
DeltaFile
+281-281clang/test/CIR/CodeGen/pragma-fenv_access.c
+20-35clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+0-41clang/include/clang/CIR/Interfaces/CIROpInterfaces.td
+15-7clang/test/CIR/IR/fenv.cir
+20-0clang/test/CIR/Transforms/side-effects-dce.cir
+8-8clang/test/CIR/CodeGen/global-init-fenv.cpp
+344-37214 files not shown
+386-41720 files

LLVM/project 338c73c — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 prefer-avx256-trunc.ll

[X86] combineSelect - only create VMTRUNC from a legal source type (#247663)

The select(c, trunc(x), y) -> VMTRUNC fold for targets without BWI
(#201339) runs before type legalization. With AVX512VL and a 256-bit
preferred vector width, v16i32 and v8i64 are illegal, and the type
legalizer can't split the operand of the target node: "Should not
custom lower this!". Reachable from C with -mavx512f -mavx512vl
-mprefer-vector-width=256; real code such as libwebp's sharpyuv hits
it. The same fold also crashed with "use-soft-float", where no vector
type is legal.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+219-0llvm/test/CodeGen/X86/prefer-avx256-trunc.ll
+4-3llvm/lib/Target/X86/X86ISelLowering.cpp
+223-32 files