LLVM/project 5417db8 — llvm/lib/CodeGen/SelectionDAG LegalizeDAG.cpp DAGCombiner.cpp, llvm/test/CodeGen/Mips r6-fcmp-invert.ll

[SelectionDAG] Use the compare operand's boolean contents when inverting a SETCC (#244992)

When LegalizeDAG expands a SETCC by inverting its condition code, it
wraps the new SETCC in getLogicalNOT() using the result type. That
picks the true value from the integer boolean contents, but the SETCC
result follows the boolean contents of the compared operand type.

On MIPS R6 FP compares produce 0/-1 while integer booleans are 0/1.
Since #173541 SETUNE, SETONE, SETO and SETNE are expanded this way, so
the inverted mask was XORed with 1, giving 1/-2 instead of -1/0, and
later combines produced wrong values.

Build the NOT with getBoolConstant() using the operand type, as the
SELECT_CC fallback below already does. Also let extractBooleanFlip()
recognize such a NOT of a SETCC, so select (not setcc) keeps folding
to a select with swapped operands.

MIPS R6 is the only target where the integer and FP boolean contents
differ, so other targets are not affected.

    [3 lines not shown]
DeltaFile
+255-0llvm/test/CodeGen/Mips/r6-fcmp-invert.ll
+13-0llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
+7-2llvm/lib/CodeGen/SelectionDAG/LegalizeDAG.cpp
+275-23 files

LLVM/project f1ac70f — compiler-rt/lib/ubsan ubsan_signals_standalone.cpp ubsan_flags.cpp, compiler-rt/test/ubsan lit.common.cfg.py

[ubsan] Initialize flags before installing deadly signal handlers (#244984)

When `SANITIZER_CAN_USE_PREINIT_ARRAY` is 0 or UBSan is linked as a
shared library, a `.preinit_array` function or DSO constructor calling
`sigaction()` can run `InitializeDeadlySignals()` before flags are
parsed, permanently skipping signal handlers requested via options.

Assisted-by: Gemini
DeltaFile
+44-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+44-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+8-0compiler-rt/test/ubsan/lit.common.cfg.py
+5-0compiler-rt/lib/ubsan/ubsan_flags.cpp
+2-0compiler-rt/lib/ubsan/ubsan_signals_standalone.cpp
+103-05 files

LLVM/project db40cf4 — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN metadata.ll

[GVN] Merge metadata from values to load

A select from load con contain different metadata premise. Such
metadata might be incompatible and therefore be poisoned. Merge the
metadata and propogate to the previous load to eliminate this.

Asissted-by: Cluade # Test
DeltaFile
+180-0llvm/test/Transforms/GVN/metadata.ll
+3-0llvm/lib/Transforms/Scalar/GVN.cpp
+183-02 files

LLVM/project 652246c — compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp sigaction-before-init-shared.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+27-5compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+27-5compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+54-102 files

LLVM/project 18c8c25 — compiler-rt/test/ubsan lit.common.cfg.py, compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp sigaction-before-init-shared.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+22-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+8-0compiler-rt/test/ubsan/lit.common.cfg.py
+0-2compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+30-23 files

LLVM/project 07fbbfd — compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp sigaction-before-init-shared.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+0-22compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+2-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+2-222 files

LLVM/project 3dad180 — compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp sigaction-before-init-shared.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+22-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init-shared.cpp
+1-1compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+23-12 files

LLVM/project 25d5572 — compiler-rt/test/ubsan/TestCases/Misc/Posix sigaction-before-init.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+22-0compiler-rt/test/ubsan/TestCases/Misc/Posix/sigaction-before-init.cpp
+22-01 files

LLVM/project bb55066 — llvm/lib/Target/X86 X86IntrinsicsInfo.h, llvm/test/CodeGen/X86 avx10_2_512satcvtds-intrinsics.ll

[X86][AVX10.2] Use INTR_TYPE_1OP_MASK_SAE for 512-bit VCVTTP.*QS intrinsics (#244127)

They are SAE instructions like VCVTTP.*Q.

Assisted-by: Claude Opus 5.5
DeltaFile
+289-0llvm/test/CodeGen/X86/avx10_2_512satcvtds-intrinsics.ll
+16-12llvm/lib/Target/X86/X86IntrinsicsInfo.h
+305-122 files

LLVM/project b80bed2 — llvm/lib/Transforms/IPO Attributor.cpp, llvm/test/Transforms/OpenMP no-change-preserve-analyses.ll

Attributor: Don't report a change when no functions are internalized

internalizeFunctions returned true for an empty set, so this reported
a change for every module and invalidated all function analyses even
when it did nothing.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+21-0llvm/test/Transforms/OpenMP/no-change-preserve-analyses.ll
+3-0llvm/lib/Transforms/IPO/Attributor.cpp
+24-02 files

LLVM/project da161a8 — llvm/lib/Transforms/Utils CallGraphUpdater.cpp, llvm/test/Transforms/OpenMP preserve-function-analyses.ll

fixup! OpenMPOpt: Invalidate function analyses individually

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+7-1llvm/test/Transforms/OpenMP/preserve-function-analyses.ll
+3-0llvm/lib/Transforms/Utils/CallGraphUpdater.cpp
+10-12 files

LLVM/project d527f06 — llvm/include/llvm/Transforms/IPO Attributor.h, llvm/include/llvm/Transforms/Utils CallGraphUpdater.h

OpenMPOpt: Invalidate function analyses individually

Avoid discarding analyses that never need to be invalidated, such as
TargetLibraryInfo.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+43-0llvm/test/Transforms/OpenMP/preserve-function-analyses.ll
+18-3llvm/lib/Transforms/IPO/OpenMPOpt.cpp
+7-6llvm/include/llvm/Transforms/IPO/Attributor.h
+2-0llvm/include/llvm/Transforms/Utils/CallGraphUpdater.h
+70-94 files

LLVM/project cc5ed0c — llvm/lib/Transforms/IPO Attributor.cpp

Attributor: Decide which instructions access memory in the opcode switch (#241115)

initializeInformationCache already switches over the opcode of every
instruction, and then called mayReadOrWriteMemory out of line for each
one. Decide in the switch instead, where only calls need to check their
memory effects.

Instruction counts (callgrind) with other pending attributor-light
changes applied: attributor-light sqlite3 -0.79%, kimwitu++ k -0.32%,
SPASS cnf -0.31%, consumer-typeset z08 -8.59%; the full attributor
-0.02% to -0.08%.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+22-7llvm/lib/Transforms/IPO/Attributor.cpp
+22-71 files

LLVM/project 1779f11 — llvm/lib/Transforms/IPO ExpandVariadics.cpp, llvm/test/Transforms/ExpandVariadics no-callers-report-change.ll

ExpandVariadics: Report a change when rewriting a function without calls

This only reported a change if it rewrote a call, but it always
rewrites the function itself. In lowering mode a variadic function
without callers was changed without being reported.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+17-0llvm/test/Transforms/ExpandVariadics/no-callers-report-change.ll
+4-7llvm/lib/Transforms/IPO/ExpandVariadics.cpp
+21-72 files

LLVM/project 9720628 — llvm/lib/Transforms/Instrumentation PGOForceFunctionAttrs.cpp, llvm/test/Instrumentation/PGOForceFunctionAttrs preserve-function-analyses.ll

PGOForceFunctionAttrs: Only clear analyses of changed functions

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+26-0llvm/test/Instrumentation/PGOForceFunctionAttrs/preserve-function-analyses.ll
+10-1llvm/lib/Transforms/Instrumentation/PGOForceFunctionAttrs.cpp
+36-12 files

LLVM/project 6d49ca2 — compiler-rt/lib/ubsan ubsan_signals_standalone.cpp ubsan_flags.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+5-0compiler-rt/lib/ubsan/ubsan_flags.cpp
+2-0compiler-rt/lib/ubsan/ubsan_signals_standalone.cpp
+7-02 files

LLVM/project 7ef5d3e — llvm/lib/Target/X86/AsmParser X86AsmParser.cpp, llvm/test/MC/X86 intel-syntax-scale-register-parentheses-error.s intel-syntax-scale-register-parentheses.s

[X86][MC] Fold parenthesized register scale expressions (#237899)

Fix incorrect scales in Intel memory operands such as `rbx*(1+1)` and
`rbx*(4/2)`, which currently use scales 1 and 8 instead of 2.

Evaluate parenthesized constants with the existing intel expression
parser, preserving named operators. Validate the full-width scale and
diagnose division/modulo by zero, signed division overflow, and invalid
shift counts.

Validation:

- 713 selected X86 MC and llvm-ml tests passed with assertions enabled.
- 537 supplementary local checks passed across 16/32/64-bit modes.

Partially addresses #150427. Expressions such as `(rax+1)*2` remain
outside this change.
DeltaFile
+83-35llvm/lib/Target/X86/AsmParser/X86AsmParser.cpp
+24-0llvm/test/MC/X86/intel-syntax-scale-register-parentheses.s
+21-0llvm/test/MC/X86/intel-syntax-scale-register-parentheses-error.s
+128-353 files

LLVM/project bb91f24 — llvm/lib/Target/X86 X86InstrInfo.cpp X86InstrAVX512.td, llvm/test/CodeGen/X86 avx512-mask-spills.ll

[X86] Fix spill folding of zero-extending mask moves (#240833)

`KMOVBkk`, `KMOVDkk` and, with BWI, `KMOVWkk` zero the mask bits above
their width, but `X86InstrInfo::isCopyInstrImpl` reports them as copies.
Since 4d42e8b5 (D150388), spill folding then replaces such a move with a
spill of its source, so the zero extension is lost (#240463).

Spill folding is correct for real copies, so this patch stops treating
these moves as copies: `KMOVBkk`, `KMOVDkk` and their `_EVEX` forms are
no longer marked `isMoveReg`, and `isCopyInstrImpl` excludes `KMOVWkk`
when BWI is available. Without BWI, `KMOVWkk` moves the whole mask
register and stays a copy.

Fixes #240463

Assisted-by: Claude Opus 5.5
DeltaFile
+69-0llvm/test/CodeGen/X86/avx512-mask-spills.ll
+8-6llvm/lib/Target/X86/X86InstrAVX512.td
+6-0llvm/lib/Target/X86/X86InstrInfo.cpp
+83-63 files

LLVM/project 24c4b81 — clang/lib/Sema SemaExprMember.cpp, clang/test/Sema ext_vector_components.c

[Clang] Fix qualifiers of ext vector components accessed via `->`

For `p->x` where `p` points to an `ext_vector_type` vector, Sema takes the
qualifiers from the type of `p`, which is the pointer itself, instead of the
vector it points to. As a result, `p->x = 1` is accepted even if `p` points to a
`const` vector, while `(*p).x = 1` is rejected. An address space on the vector
is lost in the same way.

This PR takes the qualifiers from the vector for both `.` and `->`. A swizzle
that repeats a component, e.g. `v.xx`, is a computed value, so it doesn't get
any qualifiers.

This PR was assisted by AI but I reviewed all the changes.
DeltaFile
+18-0clang/test/SemaCXX/ext-vector-component-qualifiers.cpp
+7-0clang/test/Sema/ext_vector_components.c
+3-3clang/lib/Sema/SemaExprMember.cpp
+28-33 files

LLVM/project e6e21ab — llvm/include/llvm/Analysis MustExecute.h InstructionPrecedenceTracking.h, llvm/lib/Analysis MustExecute.cpp InstructionPrecedenceTracking.cpp

fixup! [LICM] Refresh cache for load update
DeltaFile
+16-9llvm/lib/Analysis/InstructionPrecedenceTracking.cpp
+7-4llvm/include/llvm/Analysis/InstructionPrecedenceTracking.h
+0-5llvm/lib/Analysis/MustExecute.cpp
+0-4llvm/lib/Transforms/Scalar/LICM.cpp
+0-2llvm/include/llvm/Analysis/MustExecute.h
+23-245 files

LLVM/project 334f68c — flang/lib/Lower/OpenMP OpenMP.cpp, flang/test/Lower/OpenMP distribute-parallel-do.f90 distribute-parallel-do-simd.f90

[flang][OpenMP] Evaluate composite DISTRIBUTE clauses outside PARALLEL

In composite DISTRIBUTE PARALLEL DO [SIMD], omp.distribute is nested
inside omp.parallel, and the DISTRIBUTE clauses were evaluated after
omp.parallel was created. A DECLARE VARIANT call in the DIST_SCHEDULE
chunk-size expression therefore matched construct={parallel}, although
DISTRIBUTE encloses PARALLEL in the source, and every thread evaluated
the expression.

Evaluate the DISTRIBUTE clauses before creating omp.parallel, as for the
explicit nesting, and destroy their temporaries once, after omp.parallel.

Fixes #244760

Assisted-by: GitHub Copilot
Co-authored-by: Copilot <223556219+Copilot at users.noreply.github.com>
DeltaFile
+44-0flang/test/Lower/OpenMP/declare-variant-construct.f90
+12-8flang/lib/Lower/OpenMP/OpenMP.cpp
+6-4flang/test/Lower/OpenMP/distribute-parallel-do.f90
+6-4flang/test/Lower/OpenMP/distribute-parallel-do-simd.f90
+68-164 files

LLVM/project 7287b4a — clang/lib/CIR/Dialect/Transforms CallConvLoweringPass.cpp, clang/lib/CIR/Dialect/Transforms/TargetLowering CIRABIRewriteContext.h CIRABIRewriteContext.cpp

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+29-26clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.h
+42-13clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.cpp
+21-1clang/lib/CIR/Dialect/Transforms/CallConvLoweringPass.cpp
+92-403 files

LLVM/project 11a72e0 — clang/include/clang/CIR/Dialect Passes.h, clang/include/clang/CIR/Dialect/Transforms CallConvTarget.h

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+21-0clang/include/clang/CIR/Dialect/Transforms/CallConvTarget.h
+1-7clang/include/clang/CIR/Dialect/Passes.h
+1-1clang/lib/CIR/Dialect/Transforms/TargetLowering/CIRABIRewriteContext.h
+0-1clang/lib/CIR/Dialect/Transforms/TargetLowering/CMakeLists.txt
+23-94 files

LLVM/project 351157f — llvm/lib/Transforms/Utils NameAnonGlobals.cpp CanonicalizeAliases.cpp, llvm/test/Transforms/CanonicalizeAliases preserve-function-analyses.ll

Utils: Preserve function analyses in CanonicalizeAliases and NameAnonGlobals

These passes only change aliases and the names of globals, so they do
not need to invalidate any function analyses.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+16-0llvm/test/Transforms/CanonicalizeAliases/preserve-function-analyses.ll
+14-0llvm/test/Transforms/NameAnonGlobals/preserve-function-analyses.ll
+5-1llvm/lib/Transforms/Utils/NameAnonGlobals.cpp
+5-1llvm/lib/Transforms/Utils/CanonicalizeAliases.cpp
+40-24 files

LLVM/project 1922c0c — llvm/test/CodeGen/X86 gather-scatter-sink-gep.ll, llvm/test/Transforms/CodeGenPrepare/AArch64 sink-gather-scatter-addressing.ll

[CodeGenPrepare][X86] Add tests for sinking GEPs  (#242745)

Pre-commit tests for sinking the GEPs computing the address of a
gather/scatter into its block.
This is a preparation for the PR that addresses FIXME in CodegenPrepare.
(https://github.com/llvm/llvm-project/pull/242746)
DeltaFile
+380-0llvm/test/Transforms/CodeGenPrepare/X86/gather-scatter-sink-gep.ll
+276-0llvm/test/CodeGen/X86/gather-scatter-sink-gep.ll
+29-0llvm/test/Transforms/CodeGenPrepare/AArch64/sink-gather-scatter-addressing.ll
+685-03 files

LLVM/project 3cbaa7f — clang-tools-extra/test/clang-tidy/infrastructure export-SARIF-diagnostics-macro-thread-flows.cpp

[clang-tidy] Fix SARIF test missing '--' (#244927)

[clang-tidy] Fix SARIF test missing '--'

export-SARIF-diagnostics-macro-thread-flows.cpp was missing a "--" that
caused this test to fail.

Co-authored-by: Jones, Matthew (DI SW SIM FRWK PLAT SIMFW HPC) <jones.matthew at siemens.com>
DeltaFile
+1-1clang-tools-extra/test/clang-tidy/infrastructure/export-SARIF-diagnostics-macro-thread-flows.cpp
+1-11 files

LLVM/project f7a1289 — llvm/cmake/modules LLVMExternalProjectUtils.cmake

[CMake] Update regex to match typed arguments (#244963)

The regex used to match arguments in the cross-compiling case didn't
account for types and would fail to match.
DeltaFile
+5-5llvm/cmake/modules/LLVMExternalProjectUtils.cmake
+5-51 files

LLVM/project d0a9352 — llvm/runtimes CMakeLists.txt

[CMake] Fix variable name shadowing (#244962)

The append_passthrough_options macro has an argument named type, but it
also reads the property into the variable of the same name. Because
CMake macros perform textual substitution of the ${type} argument before
dereferencing the ${type} variable, passthrough options are emitted as
-DCMAKE_CXX_FLAGS:RUNTIMES=... instead of -DCMAKE_CXX_FLAGS:STRING=...
DeltaFile
+3-3llvm/runtimes/CMakeLists.txt
+3-31 files

LLVM/project 258f237 — llvm/lib/Transforms/IPO Attributor.cpp, llvm/test/Transforms/OpenMP no-change-preserve-analyses.ll

Attributor: Don't report a change when no functions are internalized

internalizeFunctions returned true for an empty set, so this reported
a change for every module and invalidated all function analyses even
when it did nothing.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+21-0llvm/test/Transforms/OpenMP/no-change-preserve-analyses.ll
+3-0llvm/lib/Transforms/IPO/Attributor.cpp
+24-02 files

LLVM/project 67f78df — clang/lib/CIR/Dialect/Transforms/TargetLowering CMakeLists.txt

[spr] update

Created using spr 2.0.0-beta.2
DeltaFile
+1-0clang/lib/CIR/Dialect/Transforms/TargetLowering/CMakeLists.txt
+1-01 files