LLVM/project 6a0fc47 — clang/lib/StaticAnalyzer/Checkers BlockInCriticalSectionChecker.cpp

[analyzer][NFC] Check the lock state first in BlockInCriticalSectionChecker (#245798)

BlockInCriticalSectionChecker::isBlockingInCritSection is called for
every call. It matched the call against the list of blocking functions
before checking whether any critical section is active, which is rarely
the case and only needs a lookup of the ActiveCritSections trait. Check
the lock state first.

On some LLVM TUs (GVN, LiveVariables, RegionStore, SemaExpr) this
reduces the instructions of the static analyzer by 0.4-0.7%.

Assisted-by: Claude Opus 5.5

Co-authored-by: Gabor Horvath <gaborh at apple.com>
DeltaFile
+3-2clang/lib/StaticAnalyzer/Checkers/BlockInCriticalSectionChecker.cpp
+3-21 files

LLVM/project 5ace0b5 — llvm/lib/Target/SystemZ SystemZInstrInfo.td

[SystemZ] Fix implicit defs of TRT and TRTR (#246033)

TRANSLATE AND TEST and TRANSLATE AND TEST REVERSE store the function
byte in GR2 and the argument address in GR1, and never modify GR0.
Replace the incorrect R0L implicit def with R2L.

Assisted by: IBM Bob
DeltaFile
+1-1llvm/lib/Target/SystemZ/SystemZInstrInfo.td
+1-11 files

LLVM/project bcedc9b — llvm/lib/Target/SPIRV SPIRVEmitIntrinsics.cpp, llvm/test/CodeGen/SPIRV printf.ll

[SPIR-V] Fix getArg() assert on pointer constants in variadic call arguments (#214136)

`insertPtrCastOrAssignTypeInstr()` looks up the callee's formal
parameter for every pointer constant passed to a call, so a pointer
constant in a variadic position trips `getArg() out of range!`. OpenCL
`printf("%s", "a")` is enough to hit it. Skip operands that have no
formal parameter: like a parameter without a deduced element type, they
are left unchanged.

This PR was generated using AI

Co-authored-by: Marcos Maronas <mmaronas at amd.com>
DeltaFile
+2-0llvm/test/CodeGen/SPIRV/printf.ll
+2-0llvm/lib/Target/SPIRV/SPIRVEmitIntrinsics.cpp
+4-02 files

LLVM/project 591996f — llvm/lib/Target/SPIRV SPIRVPrepareFunctions.cpp, llvm/test/CodeGen/SPIRV/llvm-intrinsics minimumnum-maximumnum.ll

[SPIRV] Lower llvm.minimumnum and llvm.maximumnum (#231759)

llvm.minimumnum and llvm.maximumnum aborted in the SPIR-V legalizer.
They are now expanded next to llvm.minimum/maximum into minnum/maxnum
(fmin/fmax), first replacing a NaN operand with the other operand and
then fixing the sign of zero, because fmin/fmax neither guarantee
signaling NaN handling nor order -0.0 below +0.0 as LangRef requires.

Split out of #218641.

This PR was generated using AI
DeltaFile
+114-0llvm/test/CodeGen/SPIRV/llvm-intrinsics/minimumnum-maximumnum.ll
+44-7llvm/lib/Target/SPIRV/SPIRVPrepareFunctions.cpp
+158-72 files

LLVM/project 6e94d0d — clang/test/OffloadTools/clang-linker-wrapper linker-wrapper-ld64-options.c, clang/tools/clang-linker-wrapper LinkerWrapperOpts.td

[LinkerWrapper] Do not mistake ld64's -lto_library for -l<libname> (#216939)

On Darwin, clang passes ld64 `-lto_library <path>` and, for LTO links,
`-object_path_lto <path>`. The linker wrapper parsed these as the
`JoinedOrSeparate` options `-l` and `-o`, so the first failed with
`unable to find library -lto_library` and the second became the output
file `bject_path_lto`. This defines both as `Separate` options so they
are forwarded to the linker unchanged.

This PR was generated using AI
DeltaFile
+4-0clang/tools/clang-linker-wrapper/LinkerWrapperOpts.td
+4-0clang/test/OffloadTools/clang-linker-wrapper/linker-wrapper-ld64-options.c
+8-02 files

LLVM/project a60d0b6 — clang/test/OffloadTools/clang-linker-wrapper linker-wrapper-hip-amdgcnspirv.c, clang/tools/clang-linker-wrapper ClangLinkerWrapper.cpp

[LinkerWrapper] Use a four component triple for the host bundle entry (#216938)

The linker wrapper wrote the host entry of a HIP fat binary with the
default triple normalization, so a three component host triple such as
`x86_64-apple-macosx15.0.0` produced the entry
`host-x86_64-apple-macosx15.0.0`. clang-offload-bundler requires every
entry to be `<kind>-<arch>-<vendor>-<os>-<env>` and rejects that one, so
the HIP link fails. This normalizes the host entry with
`CanonicalForm::FOUR_IDENT`, as the driver already does for its own host
entry.

This PR was generated using AI
DeltaFile
+7-0clang/test/OffloadTools/clang-linker-wrapper/linker-wrapper-hip-amdgcnspirv.c
+2-1clang/tools/clang-linker-wrapper/ClangLinkerWrapper.cpp
+9-12 files

LLVM/project 1cd8c3c — llvm/lib/Transforms/Vectorize SLPVectorizer.cpp, llvm/test/CodeGen/AMDGPU memintrinsic-unroll.ll

Merge remote-tracking branch 'origin/main' into users/aokblast/memoryssa/remove-ensure-optimized-uses

# Conflicts:
#       llvm/docs/MemorySSA.md
DeltaFile
+4,870-4,906llvm/test/CodeGen/AMDGPU/memintrinsic-unroll.ll
+11-7,563mlir/lib/Dialect/LLVMIR/IR/NVVMDialect.cpp
+3,141-3,182llvm/test/CodeGen/RISCV/clmul.ll
+1,775-1,779llvm/test/CodeGen/RISCV/wide-scalar-shift-by-byte-multiple-legalization.ll
+1,560-1,560llvm/test/CodeGen/RISCV/nontemporal.ll
+1,730-1,335llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+13,087-20,3256,060 files not shown
+225,010-149,3746,066 files

LLVM/project 60f8581 — llvm/lib/Target/AMDGPU GCNSchedStrategy.cpp, llvm/test/CodeGen/AMDGPU schedule-unclustered-sgpr-excess.mir amdgcn.bitcast.1024bit.ll

[AMDGPU] Do not always keep unclustered schedules under SGPR pressure (#244823)

UnclusteredHighRPStage keeps its schedule without checking the schedule
metric when the region has excess register pressure. With this patch,
that only happens when the schedule before or after has excess VGPR
pressure. SGPRs spills are cheap, and the unclustered schedule mostly
reduces VGPR pressure, so for regions with only excess SGPRs the
schedule metric now decides.

Before this change:
```
buffer_load v1, ...
s_wait_loadcnt 0x0        
v_fma v2, v1...                 ; use load's result
buffer_load v, ...        ; next load
s_wait_loadcnt 0x0
...
```


    [13 lines not shown]
DeltaFile
+768-768llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+161-0llvm/test/CodeGen/AMDGPU/schedule-unclustered-sgpr-excess.mir
+7-2llvm/lib/Target/AMDGPU/GCNSchedStrategy.cpp
+936-7703 files

LLVM/project c28a5f3 —

[Bazel] Fixes 4d705ec (#245949)

This fixes 4d705ece3308e07847df0a0664a3ed0f8d2dd6b2 (#245266).

Buildkite error link:
https://buildkite.com/llvm-project/upstream-bazel/builds?commit=4d705ece3308e07847df0a0664a3ed0f8d2dd6b2

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+0-00 files

LLVM/project 03db408 — llvm/include/llvm/CodeGen MIR2Vec.h, llvm/lib/CodeGen MIR2Vec.cpp

[MIR2Vec][NewPM] Build the vocabulary once per module (#245947)

Follow up for #245773
DeltaFile
+9-5llvm/lib/CodeGen/MIR2Vec.cpp
+6-3llvm/include/llvm/CodeGen/MIR2Vec.h
+15-82 files

LLVM/project 94c3fa3 — llvm/lib/Target/Hexagon HexagonDepIICHVX.td HexagonDepIICScalar.td, llvm/test/CodeGen/AArch64/Atomics aarch64_be-atomicrmw-lscp.ll aarch64-atomicrmw-lscp.ll

Merge branch 'main' into users/aokblast/memoryssa/remove-ensure-optimized-uses

# Conflicts:
#       llvm/docs/ReleaseNotes.md
DeltaFile
+15,980-15,802llvm/test/CodeGen/AMDGPU/amdgcn.bitcast.1024bit.ll
+15,374-15,228llvm/lib/Target/Hexagon/HexagonDepIICScalar.td
+1,212-20,041utils/bazel/llvm-project-overlay/libc/BUILD.bazel
+7,442-8,018llvm/lib/Target/Hexagon/HexagonDepIICHVX.td
+9,174-0llvm/test/CodeGen/AArch64/Atomics/aarch64-atomicrmw-lscp.ll
+8,819-0llvm/test/CodeGen/AArch64/Atomics/aarch64_be-atomicrmw-lscp.ll
+58,001-59,08913,578 files not shown
+671,137-359,29113,584 files

LLVM/project f12d254 — llvm/test/tools/llvm-ir2vec triplets-skipped-operands.mir, llvm/tools/llvm-ir2vec/lib/MIRUtils MIRUtils.cpp

skip noreg operands in triplets
DeltaFile
+35-0llvm/test/tools/llvm-ir2vec/triplets-skipped-operands.mir
+7-0llvm/tools/llvm-ir2vec/lib/MIRUtils/MIRUtils.cpp
+42-02 files

LLVM/project 85975a6 — 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
+19-33clang/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
+343-37014 files not shown
+385-41520 files

LLVM/project b3192b7 — clang/include/clang/CIR/Dialect/IR CIRAttrs.td CIRDialect.h, clang/lib/CIR/Dialect/IR CIRDialect.cpp

[CIR] Use one check for ignorable FP exceptions

Speculation and lowering each decided on their own whether a
constrained operation can ignore floating-point exceptions, and they
disagreed. An operation with `fenv<strict_except = false>` was
speculatable but lowered to `fpexcept.maytrap`, and one with masked but
strict exceptions was not speculatable but lowered to
`fpexcept.ignore`. `cir.vec.fcmp` never folded a constrained
comparison.

This adds `FenvAttr::canIgnoreExceptions()`, true when exceptions are
masked and not strict, and uses it in all three places:

- Speculation already used this condition and does not change.
- Lowering emits `fpexcept.ignore` when it holds, and otherwise
  `fpexcept.strict` or `fpexcept.maytrap` by `strict_except`. Three
  hand-written forms change: `fenv<strict_except = false>` goes from
  maytrap to ignore, masked exceptions with `strict_except = true` from
  ignore to strict, and unmasked or unknown exceptions without

    [11 lines not shown]
DeltaFile
+145-0clang/test/CIR/Transforms/vector-cmp-fold.cir
+21-1clang/test/CIR/Lowering/fenv.cir
+9-5clang/include/clang/CIR/Dialect/IR/CIRDialect.h
+6-6clang/lib/CIR/Dialect/IR/CIRDialect.cpp
+3-6clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+7-0clang/include/clang/CIR/Dialect/IR/CIRAttrs.td
+191-186 files

LLVM/project 9f99937 — llvm/lib/Target/SystemZ SystemZOperators.td SystemZInstrInfo.td, llvm/test/CodeGen/SystemZ int-smul-01.ll

[SystemZ] Use MSRKC/MSGRKC/MSC/MSGC for smul.with.overflow

On z14 and later (miscellaneous-instruction-extensions 2), lower
ISD::SMULO for i32 and i64 to the multiply-single instructions that
set the condition code. Overflow is reported as CC 3.

Add a SystemZISD::SMULO node and select it with MSRKC and MSGRKC for
register operands, and with MSC and MSGC for a memory operand. This
replaces the wide multiply plus compare of the high half (mgrk/srag/
cgrjlh for i64, lgfr/msgfr/srak/srlg/crjlh for i32) with a multiply
and a branch or select on CC.

Plain 'mul' selection is unchanged. Targets without the extension
keep the generic expansion.

Assisted by: IBM Bob
DeltaFile
+343-0llvm/test/CodeGen/SystemZ/int-smul-01.ll
+11-1llvm/lib/Target/SystemZ/SystemZISelLowering.cpp
+4-4llvm/lib/Target/SystemZ/SystemZInstrInfo.td
+6-0llvm/lib/Target/SystemZ/SystemZOperators.td
+364-54 files

LLVM/project 3ba14e2 — clang/include/clang/CIR/Dialect/IR CIROps.td, clang/test/CIR/Transforms complex-fenv-effects.cir

[CIR] Give complex FP add/sub the fenv memory effects (#242698)

`cir.complex.fadd` and `cir.complex.fsub` were `Pure` even with a
constrained `fenv` attribute, so they could be speculated or erased like
unconstrained ops. This derives them from `CIR_FenvOp`, as the other
fenv ops are: constrained ops read and write the FP environment and are
only conditionally speculatable, while unconstrained ops stay
effect-free. A new test covers both cases.

Assisted-by: Claude Code (Opus 5.5).
DeltaFile
+26-0clang/test/CIR/Transforms/complex-fenv-effects.cir
+3-4clang/include/clang/CIR/Dialect/IR/CIROps.td
+29-42 files

LLVM/project 1f11f34 — llvm/test/tools/llubi call_mismatched_calling_conv.ll, llvm/tools/llubi/lib Interpreter.cpp

[llubi] Report immediate UB on mismatched calling convention (#245928)

Fixes https://github.com/llvm/llvm-project/issues/235435
DeltaFile
+76-0llvm/test/tools/llubi/call_mismatched_calling_conv.ll
+6-0llvm/tools/llubi/lib/Interpreter.cpp
+82-02 files

LLVM/project 805f6b6 — llvm/lib/Transforms/Vectorize LoadStoreVectorizer.cpp, llvm/test/Transforms/LoadStoreVectorizer/AMDGPU vectorize-redund-loads.ll

[LoadStoreVectorizer] Reset endpoint after chain break (#244610)

When an overlapping load starts a new chain, reset the tracked endpoint
to that load. Otherwise a later load can be incorrectly considered
contiguous with the previous chain and form an invalid chain.
DeltaFile
+19-0llvm/test/Transforms/LoadStoreVectorizer/AMDGPU/vectorize-redund-loads.ll
+9-6llvm/lib/Transforms/Vectorize/LoadStoreVectorizer.cpp
+28-62 files

LLVM/project 41cfc8a — llvm/lib/Target/Mips MicroMips32r6InstrInfo.td MicroMipsInstrFPU.td, llvm/test/CodeGen/Mips fp-intrinsics.ll fp-strict-fptoint.ll

[Mips] Keep constrained FP-to-int conversions on the chain (#245915)

lowerSTRICT_FP_TO_INT replaced STRICT_FP_TO_SINT and STRICT_FP_TO_UINT
with the non-strict nodes and passed the input chain through, so a
constrained conversion could be removed when its result was unused or
moved across calls that test or change the FP environment. The
non-strict FP_TO_UINT expansion also performs both conversions
unconditionally, which raises a spurious invalid exception for inputs
that are only in range for the unsigned conversion.

Lower STRICT_FP_TO_SINT to a chained MipsISD::STRICT_TruncIntFP that
selects to the same trunc instructions, and leave STRICT_FP_TO_UINT to
the generic strict expansion, which converts once.

Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+248-0llvm/test/CodeGen/Mips/fp-strict-fptoint.ll
+63-53llvm/test/CodeGen/Mips/fp-intrinsics.ll
+14-15llvm/lib/Target/Mips/MipsISelLowering.cpp
+15-8llvm/lib/Target/Mips/MipsInstrFPU.td
+3-3llvm/lib/Target/Mips/MicroMipsInstrFPU.td
+2-2llvm/lib/Target/Mips/MicroMips32r6InstrInfo.td
+345-811 files not shown
+346-827 files

LLVM/project fece930 — llvm/test/CodeGen/AMDGPU failed-reassign-cache.mir

Update llvm/test/CodeGen/AMDGPU/failed-reassign-cache.mir

Co-authored-by: Nathan Corbyn <n_corbyn at apple.com>
DeltaFile
+0-1llvm/test/CodeGen/AMDGPU/failed-reassign-cache.mir
+0-11 files

LLVM/project fb34ce9 — llvm/docs/CommandGuide llvm-ir2vec.md, llvm/test/tools/llvm-ir2vec triplets.ll

[llvm-ir2vec] Emit compare predicates as triplets (#245752)

Embeddings use a vector for each compare predicate, but training could
not learn them because no triplet contained a predicate
DeltaFile
+20-1llvm/test/tools/llvm-ir2vec/triplets.ll
+10-0llvm/tools/llvm-ir2vec/lib/IRUtils/IRUtils.cpp
+2-1llvm/docs/CommandGuide/llvm-ir2vec.md
+32-23 files

LLVM/project 138d4df — llvm/include/llvm/CodeGen MIR2Vec.h, llvm/lib/CodeGen MIR2Vec.cpp

[MIR2Vec] Map classless registers to a NoRegClass entry (#245956)

Generic vregs and physregs used to get a zero embedding and the first
virtual register class ID in triplets
DeltaFile
+31-0llvm/unittests/CodeGen/MIR2VecTest.cpp
+18-11llvm/test/CodeGen/MIR2Vec/classless-vreg.mir
+8-15llvm/include/llvm/CodeGen/MIR2Vec.h
+12-11llvm/lib/CodeGen/MIR2Vec.cpp
+13-8llvm/test/CodeGen/MIR2Vec/classless-physreg.mir
+4-2llvm/test/CodeGen/MIR2Vec/Inputs/mir2vec_classless_vocab.json
+86-471 files not shown
+88-477 files

LLVM/project c1b3da9 — clang/lib/CIR/Lowering/DirectToLLVM LowerToLLVM.cpp, clang/test/CIR/CodeGen bool-to-float-strict-fp.cpp complex-strict-fp.cpp

[CIR] Keep complex and bool casts constrained in strict FP functions

In a strictfp function ClangIR emitted plain `fpext`, `fptrunc`,
`fptosi`, `sitofp`, `uitofp` and `fcmp une` for casts between complex
types and for conversions between floating-point values and bool, where
classic codegen emits constrained intrinsics. CIRGen created the
complex casts and `float_to_bool` without the `fenv` attribute,
LoweringPrepare dropped the attribute when it expanded a complex cast,
and the LLVM lowering of `float_to_bool` and `bool_to_float` ignored
it.

`createCast` now takes an optional `fenv` attribute. CIRGen passes the
current floating-point environment for `float_to_bool` and for the
complex cast kinds that convert floating-point values. The kinds that
only select or pack a part get none. LoweringPrepare passes the
attribute of a complex cast to the scalar casts of its expansion. With
`fenv`, `float_to_bool` lowers to the quiet constrained `fcmp` and
`bool_to_float` to the constrained `uitofp`.


    [5 lines not shown]
DeltaFile
+130-0clang/test/CIR/CodeGen/complex-cast-fenv-access.c
+93-0clang/test/CIR/CodeGen/complex-strict-fp.cpp
+66-0clang/test/CIR/Transforms/lowering-prepare-complex-cast-fenv.cir
+40-0clang/test/CIR/CodeGen/bool-to-float-strict-fp.cpp
+38-0clang/test/CIR/Lowering/fenv.cir
+23-0clang/lib/CIR/Lowering/DirectToLLVM/LowerToLLVM.cpp
+390-04 files not shown
+434-1510 files

LLVM/project cb60a12 — clang/lib/CIR/CodeGen CIRGenExprScalar.cpp, clang/test/CIR/CodeGen pragma-fenv_access.c

[CIR] Use the FP environment of a compound assignment for its conversions

`ScalarExprEmitter::emitCompoundAssignLValue` emitted the conversions of
a compound assignment, from the left operand to the computation type
and back, without a `CIRGenFPOptionsRAII`. Under `#pragma STDC
FENV_ACCESS ON` the arithmetic was constrained but the conversions of
`x *= 0.1` or `i += x` got the default environment, and lowered to
plain `fpext`, `fptrunc`, `sitofp` and `fptosi` where classic codegen
emits constrained intrinsics.

Install the RAII with the features of the assignment after the left
operand is loaded, as classic codegen does.

Assisted-by: Claude Code (Opus 5.5).
DeltaFile
+43-0clang/test/CIR/CodeGen/pragma-fenv_access.c
+1-0clang/lib/CIR/CodeGen/CIRGenExprScalar.cpp
+44-02 files

LLVM/project 6f5a4ce — llvm/lib/Target/SystemZ SystemZInstrInfo.td

[SystemZ] Fix implicit defs of TRT and TRTR

TRANSLATE AND TEST and TRANSLATE AND TEST REVERSE store the function
byte in GR2 and the argument address in GR1, and never modify GR0.
Replace the incorrect R0L implicit def with R2L.

Assisted by: IBM Bob
DeltaFile
+1-1llvm/lib/Target/SystemZ/SystemZInstrInfo.td
+1-11 files

LLVM/project 17b5443 — lldb/source/Target StackFrameList.cpp, lldb/test/API/functionalities/scripted_frame_provider/set_pc main.c frame_provider.py

[lldb] Compare the concrete frame index for inlining (#240963)

`StackFrameList::GetFrameWithConcreteFrameIndex` compared each frame's
index with the concrete frame index it was given. The search starts at
the frame with that index, so the first comparison always matched, and
the function returned the frame at that index instead of the first frame
with that concrete frame index. The two differ when there are inlined or
artificial frames below the frame.

The function now compares each frame's concrete frame index. It skips
the artificial frames for a tail call, which have the concrete frame
index of the next unwound frame and come before it. A scripted frame can
be artificial too, but it has a concrete frame index of its own, so it
still matches.

A concrete frame index is the unwinder's, so
`Thread::GetFrameWithConcreteFrameIndex` now searches the unwinder's
frame list. With a scripted frame provider loaded, the thread's frame
list is the provider's, and that list numbers its frames differently.

    [2 lines not shown]
DeltaFile
+201-0lldb/unittests/Target/Inputs/tail-call.yaml
+97-0lldb/unittests/Target/StackFrameListTest.cpp
+45-0lldb/test/API/functionalities/scripted_frame_provider/set_pc/TestFrameProviderSetPC.py
+21-0lldb/test/API/functionalities/scripted_frame_provider/set_pc/frame_provider.py
+14-0lldb/test/API/functionalities/scripted_frame_provider/set_pc/main.c
+7-2lldb/source/Target/StackFrameList.cpp
+385-24 files not shown
+400-510 files

LLVM/project 80bb026 — llvm/lib/Target/X86 X86ISelLowering.cpp

[X86] Silence GCC -Wfree-nonheap-object false positive in LowerShift (#245993)

GCC 13+ warns that `~APInt` calls delete[] on "an unallocated object" in
the GFNI shift lambda. `SmallVector::push_back(T&&)` passes the address
of the temporary APInt to the out-of-line grow path, so GCC can no
longer prove its BitWidth is <= 64 and considers the `delete[] U.pVal`
path with the constant still stored in the union.

The APInts are 64 bits wide, so that path is never taken. Construct them
in place with emplace_back so there is no temporary to destroy.

---------

Co-authored-by: Claude <noreply at anthropic.com>
DeltaFile
+4-4llvm/lib/Target/X86/X86ISelLowering.cpp
+4-41 files

LLVM/project 1d23bf0 — llvm/test/CodeGen/AMDGPU kernel-args.ll load-local-i16.ll, llvm/test/Transforms/AtomicExpand/AMDGPU expand-atomic-i8.ll

[AMDGPU] Remove R600 usage from llvm tests. NFC

Second step of removing the R600 (TeraScale) tests:

* [x] clang, flang, lld tests (#245524)
* [x] llvm tests (this patch)

Tests that only cover R600 are deleted, including the tests of the
`llvm.r600.*` intrinsics. In tests shared with GCN, the r600 RUN lines
and their now unused EG, CM and R600 checks and comments are removed,
and autogenerated checks are regenerated. The R600 cases in the yaml,
TableGen, TargetParser, Triple and DataLayout upgrade tests are removed
too:

```
; RUN: llc -mtriple=amdgcn -mcpu=tahiti < %s | FileCheck -check-prefixes=SI,FUNC %s
; RUN: llc -mtriple=r600 -mcpu=redwood < %s | FileCheck -check-prefixes=EG,FUNC %s
; EG: LDS_READ_RET
  -->

    [8 lines not shown]
DeltaFile
+0-5,395llvm/test/CodeGen/AMDGPU/load-global-i8.ll
+0-5,274llvm/test/CodeGen/AMDGPU/srem.ll
+0-3,586llvm/test/CodeGen/AMDGPU/load-global-i16.ll
+0-3,227llvm/test/CodeGen/AMDGPU/load-local-i16.ll
+889-1,751llvm/test/Transforms/AtomicExpand/AMDGPU/expand-atomic-i8.ll
+0-2,631llvm/test/CodeGen/AMDGPU/kernel-args.ll
+889-21,864246 files not shown
+899-67,110252 files

LLVM/project 3d61f5e — llvm/include/llvm/Transforms/Utils SCCPSolver.h, llvm/lib/Transforms/IPO FunctionSpecialization.cpp

fixup! [IPSCC] Mark byval capture as Overdefined
DeltaFile
+2-8llvm/lib/Transforms/Utils/SCCPSolver.cpp
+3-3llvm/lib/Transforms/IPO/FunctionSpecialization.cpp
+4-2llvm/test/Transforms/SCCP/2009-09-24-byval-ptr.ll
+0-2llvm/include/llvm/Transforms/Utils/SCCPSolver.h
+9-154 files

LLVM/project f2989f8 — 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
+19-33clang/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
+343-37014 files not shown
+385-41520 files