LLVM/project a33a508 — llvm/test/CodeGen/AMDGPU a-v-flat-atomicrmw.ll llvm.amdgcn.readfirstlane.ll, llvm/test/CodeGen/RISCV tlsdesc-clobber-vector.ll

[CodeGen] Fix physical-register input latency for inline asm (#229764)

As described in #229538, the scheduling DAG classifies inline asm’s
variable inputs as pseudo uses, assigning zero latency and hiding
modeled producer latency from scheduling decisions. The dependency
preserves instruction order, but the scheduler does not account for the
time needed to produce the result.

This patch is a more generic approach which fix the issue in general
infrastructure.

Fix approach: 
* In `ScheduleDAGInstrs`, recognize explicit inline-asm inputs as real
uses and allow explicit definitions feeding them to bypass the
pseudo-definition check.
* The existing `computeOperandLatency()` then supplies modeled producer
latency, including for asm-to-asm dependencies.
* Implicit bookkeeping operands and other consumers retain their
existing behavior.

    [3 lines not shown]
DeltaFile
+124-124llvm/test/CodeGen/AMDGPU/shufflevector.v2i64.v8i64.ll
+173-0llvm/test/CodeGen/X86/inlineasm-physreg-latency.mir
+93-0llvm/test/CodeGen/AMDGPU/postra-coexec-inlineasm-latency.mir
+42-42llvm/test/CodeGen/AMDGPU/llvm.amdgcn.readfirstlane.ll
+40-40llvm/test/CodeGen/RISCV/tlsdesc-clobber-vector.ll
+40-40llvm/test/CodeGen/AMDGPU/a-v-flat-atomicrmw.ll
+512-24638 files not shown
+867-42444 files

LLVM/project 3fe8b13 — llvm/lib/Target/AMDGPU SIInsertWaitcnts.cpp, llvm/test/CodeGen/AMDGPU extract-subvector-16bit.ll flat-saddr-atomics.ll

[AMDGPU] Keep soft waitcnts unchanged until SIInsertWaitcnts converges

On the first visit to a loop header only the preheader state is known.
A soft waitcnt there (e.g. from a release fence) can have some of its
counters simplified away while another counter keeps the instruction
alive: the fence's own vmcnt(0), a preceding wait.asyncmark, or an
explicit s_waitcnt. The soft waitcnt was then rewritten with the
simplified value and promoted to a hard waitcnt, or merged into a
preceding hard one. When the back edge later brought a pending LDS
store, the original lgkmcnt(0) request was gone, and the s_barrier after
the release fence no longer waited for it.

Treat soft waitcnts as requests that depend on the incoming state: never
merge, promote or rewrite them while the analysis iterates. They are
kept unchanged in DeferredErasures, a hard waitcnt (existing or new)
carries what is needed on each visit, and the soft waitcnts are erased
once the analysis converges. This extends #220357, which did the same
only for soft waitcnts that were simplified away entirely.


    [11 lines not shown]
DeltaFile
+66-66llvm/test/CodeGen/AMDGPU/function-args.ll
+48-48llvm/test/CodeGen/AMDGPU/a-v-flat-atomicrmw.ll
+32-32llvm/test/CodeGen/AMDGPU/flat-saddr-atomics.ll
+12-11llvm/lib/Target/AMDGPU/SIInsertWaitcnts.cpp
+10-10llvm/test/CodeGen/AMDGPU/extract-subvector-16bit.ll
+10-10llvm/test/CodeGen/AMDGPU/GlobalISel/flat-scratch.ll
+178-17712 files not shown
+221-21618 files

LLVM/project c9befbb — clang/include/clang/Basic Attr.td

[clang] Correct the argument declaration of 'ptrauth_vtable_pointer' in Attrs.td (#243446)

The three enum parameters of 'ptrauth_vtable_pointer' were declared with
IsString set, but its custom handler requires *identifier* arguments in
those positions and rejects anything else.

There is no observable behavioral difference since the attribute does
not take the generic path where IsString would matter.

Found by observation.
DeltaFile
+3-3clang/include/clang/Basic/Attr.td
+3-31 files

LLVM/project fe79300 — llvm/test/CodeGen/AMDGPU waitcnt-loop-carried-fence-drain.mir

Drop tracksRegLiveness and poison MMO references from the new tests

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+8-10llvm/test/CodeGen/AMDGPU/waitcnt-loop-carried-fence-drain.mir
+8-101 files

LLVM/project 3429a4f — llvm/test/CodeGen/AMDGPU waitcnt-loop-carried-fence-drain.mir

[AMDGPU] Pre-commit tests for soft waitcnt requests lost at a loop header (NFC)

Two cases where a soft waitcnt at a loop header loses its lgkmcnt(0)
request: on the first visit no LDS operation is pending, so lgkmcnt is
simplified away while vmcnt keeps the instruction alive (either the soft
waitcnt's own vmcnt, or a preceding hard vmcnt(0) it is merged into).
The DS write in the loop is then not waited for before the S_BARRIER on
the next iteration. The checks show the current, incorrect output.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+110-0llvm/test/CodeGen/AMDGPU/waitcnt-loop-carried-fence-drain.mir
+110-01 files

LLVM/project 87764a9 — clang/lib/Headers avx10_2minmaxintrin.h avx10_2_512minmaxintrin.h, clang/test/CodeGen/X86 avx10_2_512minmax-builtins.c avx10_2minmax-builtins.c

[X86][AVX10.2] Fix mask type and variable name mistakes (#244095)

Fixes: #242930

Assisted-by: Claude Opus 5.5
DeltaFile
+36-36clang/test/CodeGen/X86/avx10_2minmax-builtins.c
+16-3clang/test/CodeGen/X86/avx10_2_512minmax-builtins.c
+1-1clang/lib/Headers/avx10_2minmaxintrin.h
+1-1clang/lib/Headers/avx10_2_512minmaxintrin.h
+54-414 files

LLVM/project fac5fe5 — llvm/lib/Target/X86 X86ISelLowering.cpp, llvm/test/CodeGen/X86 vector-shuffle-combining.ll

[X86] lowerShuffleAsZeroOrAnyExtend - ensure we bitcast VZEXT_MOVL source to the result type (#244646)

lowerShuffleAsZeroOrAnyExtend can be used with v4i32 and v4f32 types,
but we expect VZEXT_MOVL to be used with v4i32 - isel was still working,
but improvements to SDNode verification was causing an assert

Fixes #244568
DeltaFile
+29-2llvm/test/CodeGen/X86/vector-shuffle-combining.ll
+1-1llvm/lib/Target/X86/X86ISelLowering.cpp
+30-32 files

LLVM/project 1337819 — llvm/test/Analysis/BranchProbabilityInfo denormal-fcmp-folding.ll, llvm/test/Transforms/InstCombine denormal-reassociation-folding.ll

[ConstFold][NFC] Add IR denorm misfolding baseline (#236190)

This patch adds baseline tests with FIXME comments to highlight results
that are missing denormal_fpenv-aware flushing during const-folding with,
which will be addressed in a follow-up patch.

Currently ConstantFolding.cpp is the only IR code-path that tries to handle
denormal_fpenv while const-folding, and even there it misses several
cases like FMA and fmax. This results in inconsistently folded results in
several cases with a non-IEEE denormal_fpenv.

The cases ignoring denormal_fpenv that are covered in these new baseline tests are:
- InstSimplify arithmetic: FMA, rounding, comparisons, and min/max.
- Constant folding during InstCombine reassociation and factorization.
- BranchProbabilityInfo folding of loop-carried value chains.
- NVVM multiply, divide, and FMA at the subnormal rounding boundary.
DeltaFile
+125-0llvm/test/Transforms/InstCombine/denormal-reassociation-folding.ll
+79-0llvm/test/Transforms/InstSimplify/denormal-folding.ll
+51-0llvm/test/Transforms/InstSimplify/nvvm-ftz-boundary-folding.ll
+39-0llvm/test/Analysis/BranchProbabilityInfo/denormal-fcmp-folding.ll
+294-04 files

LLVM/project 6e57e21 — llvm/test/CodeGen/AArch64/GlobalISel denormal-constant-fold.mir

[AArch64][GlobalISel][NFC] Add denormal const-fold baselines (#241382)

Add GlobalISel lit tests for AArch64 recording the current scalar
constant folding behaviour for f16, f32 and f64 under IEEE,
flush-to-zero and dynamic denormal environments.

Add TODO comments describing the desired results if const-folding were
to honour denormal_fpenv, which will be added in a follow-up commit.
DeltaFile
+503-0llvm/test/CodeGen/AArch64/GlobalISel/denormal-constant-fold.mir
+503-01 files

LLVM/project 7016ba1 — llvm/lib/CodeGen InlineSpiller.cpp, llvm/test/CodeGen/X86/apx memfold-origVNI-crash.ll

[InlineSpiller] Use a new value number for the COPY range of a fold (#243055)

When folding a memory operand makes the target insert a COPY (e.g. a
reload folded into an X86 NDD instruction), foldMemoryOperand() extends
the original live interval from the COPY to the folded instruction
(#199182). That segment reused the folded instruction's value number,
though the register holds the COPY's source there.

HoistSpillHelper groups spills by (stack slot, original value number),
so rmRedundantSpills treated the store the COPY was folded into and the
later spill of the folded result as duplicates, and deleted the latter.
In memfold-origVNI-crash.ll this dropped an `or`, returning %p2 instead
of %p2 | %p3.

Give the segment its own value number at the COPY. Replace the
getVNInfoAt() guard with an assert: the sub-interval invariant already
requires OrigLI to be live at FoldMI's def.

Assisted-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+10-4llvm/lib/CodeGen/InlineSpiller.cpp
+7-0llvm/test/CodeGen/X86/apx/memfold-origVNI-crash.ll
+17-42 files

LLVM/project 1d80abf — llvm/lib/CodeGen InlineSpiller.cpp, llvm/test/CodeGen/X86/apx inline-spiller-hoist-folded-copy.ll

[InlineSpiller] Do not merge or hoist a spill with no original value (#237148)

HoistSpillHelper keeps a copy of the original live interval, taken at
the first spill to each stack slot and never updated, and keys
MergeableSpills by the original VNInfo of each spill. Since #199182,
foldMemoryOperand can extend the original interval backwards over the
COPY that an X86 NDD fold inserts (#191368). A spill later folded into
that COPY lies outside the saved interval, so getVNInfoAt returns null.
The null VNInfo* is stored as a MergeableSpills key and dereferenced in
runHoistSpills (SIGSEGV).

Leave such a spill out of merging and hoisting; it stays where it was
inserted. Both are optimizations, so skipping them is safe, and inputs
that did not crash before get the same code.

Assisted-by: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+259-0llvm/test/CodeGen/X86/apx/inline-spiller-hoist-folded-copy.ll
+7-0llvm/lib/CodeGen/InlineSpiller.cpp
+266-02 files

LLVM/project 57e6c03 — llvm/lib/Analysis ValueTracking.cpp, llvm/test/Analysis/ValueTracking signbits-extract-elt.ll

[ValueTracking] Track constant ExtractElement indices in sign-bit queries (#244296)

Query only the selected lane for an in-range constant index into a fixed
vector.

This matches the behavior in SDAG.

Assisted by: GPT 6.1 Sol
DeltaFile
+56-0llvm/test/Analysis/ValueTracking/signbits-extract-elt.ll
+13-6llvm/lib/Analysis/ValueTracking.cpp
+69-62 files

LLVM/project 4d3d622 — llvm/include/llvm/CodeGen SelectionDAG.h, llvm/include/llvm/Support FPFold.h

[SelectionDAG] Honor denormal modes when folding (#236172)

Introduce shared denormal-aware FPFold helper functions in the Support
library.

Then use the new tryFoldFP API within SelectionDAG to correctly fold
arithmetic, FMA, comparisons, rounding, and min/max using the enclosing
MachineFunction's denormal mode.

Decline folds when dynamic flushing can change the result or IEEE
rounding can promote a subnormal FTZ result to minimum-normal. Update
the NVPTX tests added in #236060 to verify the correct behaviour.
DeltaFile
+195-0llvm/lib/Support/FPFold.cpp
+83-52llvm/test/CodeGen/NVPTX/denormal-constant-fold.ll
+82-0llvm/include/llvm/Support/FPFold.h
+41-32llvm/lib/CodeGen/SelectionDAG/SelectionDAG.cpp
+4-0llvm/lib/Analysis/TargetTransformInfo.cpp
+4-0llvm/include/llvm/CodeGen/SelectionDAG.h
+409-842 files not shown
+411-848 files

LLVM/project a5afaf1 — llvm/lib/Target/PowerPC PPCFrameLowering.cpp, llvm/test/CodeGen/PowerPC mtcrf-cr-restore.ll

[PowerPC] Model the CR defs of MTCRF used to restore callee-saved CRs (#242763)

The epilogue restores the non-volatile CR fields (CR2-CR4) with a single
`mtcrf`. MTCRF takes only an FXM mask immediate and a GPR, and declares
no CR operands, so the post-RA scheduler sees no dependency between the
restore and instructions that read or write the restored CR bits. It can
therefore hoist the restore above those reads, making the function use
the caller's condition bits instead of its own.

Add the restored CR fields as implicit defs when building the MTCRF in
`emitEpilogue()` and `restoreCRs()`, matching the way the prologue
already adds implicit uses to MFCR. The scheduler now models the WAR/WAW
dependencies and keeps the restore after the last read.

This is a regression from #202339 (3fc6711ccaf6), which replaced the
per-field MTOCRF sequence -- each MTOCRF defines the CR field it
restores -- with a single MTCRF, which declares no CR defs.

Fixes #242250.
DeltaFile
+21-6llvm/lib/Target/PowerPC/PPCFrameLowering.cpp
+2-5llvm/test/CodeGen/PowerPC/mtcrf-cr-restore.ll
+23-112 files

LLVM/project 6d88d37 — clang/test/Analysis/Scalable/source-edit-generation cpp-bounded-buffers-replacements.cpp, clang/test/ScalableStaticAnalysis/source-edit-generation cpp-bounded-buffers-replacements.cpp

Merge branch 'users/void/asm-rm-3-direct-mem-output-error' into users/void/asm-rm-4-regallocfast-fold
DeltaFile
+1,158-246llvm/include/llvm/IR/RuntimeLibcalls.td
+938-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+717-119llvm/test/Transforms/LoopVectorize/early-exit-reductions-live-out.ll
+0-673clang/test/Analysis/Scalable/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+673-0clang/test/ScalableStaticAnalysis/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+0-661lldb/source/Target/StackFrame.cpp
+3,486-1,6991,725 files not shown
+41,414-24,5631,731 files

LLVM/project 870745a — clang/test/Analysis/Scalable/source-edit-generation cpp-bounded-buffers-replacements.cpp, clang/test/ScalableStaticAnalysis/source-edit-generation cpp-bounded-buffers-replacements.cpp

Merge branch 'users/void/asm-rm-2e-fold-asm-memoperands' into users/void/asm-rm-2f-peephole-asm-load-fold
DeltaFile
+1,158-246llvm/include/llvm/IR/RuntimeLibcalls.td
+938-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+717-119llvm/test/Transforms/LoopVectorize/early-exit-reductions-live-out.ll
+0-673clang/test/Analysis/Scalable/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+673-0clang/test/ScalableStaticAnalysis/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+0-661lldb/source/Target/StackFrame.cpp
+3,486-1,6991,725 files not shown
+41,414-24,5631,731 files

LLVM/project 5689d1b — llvm/lib/Target/ARM ARMISelLowering.cpp, llvm/test/CodeGen/ARM bf16-instructions.ll

[ARM] Promote bf16 fp rounding operations. (#244867)

Similar to other operations we promote bf16 fp round operations to fp32
DeltaFile
+161-30llvm/test/CodeGen/ARM/bf16-instructions.ll
+3-1llvm/lib/Target/ARM/ARMISelLowering.cpp
+164-312 files

LLVM/project a9da20a — clang/test/Analysis/Scalable/source-edit-generation cpp-bounded-buffers-replacements.cpp, clang/test/ScalableStaticAnalysis/source-edit-generation cpp-bounded-buffers-replacements.cpp

Merge branch 'users/void/asm-rm-2b-fold-all-reg-operands' into users/void/asm-rm-2c-fold-subreg-offset
DeltaFile
+1,158-246llvm/include/llvm/IR/RuntimeLibcalls.td
+938-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+717-119llvm/test/Transforms/LoopVectorize/early-exit-reductions-live-out.ll
+0-673clang/test/Analysis/Scalable/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+673-0clang/test/ScalableStaticAnalysis/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+0-661lldb/source/Target/StackFrame.cpp
+3,486-1,6991,725 files not shown
+41,414-24,5631,731 files

LLVM/project 7cffbcf — clang/test/Analysis/Scalable/source-edit-generation cpp-bounded-buffers-replacements.cpp, clang/test/ScalableStaticAnalysis/source-edit-generation cpp-bounded-buffers-replacements.cpp

Merge branch 'users/void/asm-rm-2d-prefer-spilling-foldable' into users/void/asm-rm-2e-fold-asm-memoperands
DeltaFile
+1,158-246llvm/include/llvm/IR/RuntimeLibcalls.td
+938-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+717-119llvm/test/Transforms/LoopVectorize/early-exit-reductions-live-out.ll
+0-673clang/test/Analysis/Scalable/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+673-0clang/test/ScalableStaticAnalysis/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+0-661lldb/source/Target/StackFrame.cpp
+3,486-1,6991,725 files not shown
+41,414-24,5631,731 files

LLVM/project 8448cc9 — clang/test/Analysis/Scalable/source-edit-generation cpp-bounded-buffers-replacements.cpp, clang/test/ScalableStaticAnalysis/source-edit-generation cpp-bounded-buffers-replacements.cpp

Merge branch 'users/void/asm-rm-4-regallocfast-fold' into users/void/asm-rm-5-prefer-reg
DeltaFile
+1,158-246llvm/include/llvm/IR/RuntimeLibcalls.td
+938-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+717-119llvm/test/Transforms/LoopVectorize/early-exit-reductions-live-out.ll
+0-673clang/test/Analysis/Scalable/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+673-0clang/test/ScalableStaticAnalysis/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+0-661lldb/source/Target/StackFrame.cpp
+3,486-1,6991,725 files not shown
+41,414-24,5631,731 files

LLVM/project 1e547e5 — clang/test/Analysis/Scalable/source-edit-generation cpp-bounded-buffers-replacements.cpp, clang/test/ScalableStaticAnalysis/source-edit-generation cpp-bounded-buffers-replacements.cpp

Merge branch 'users/void/asm-rm-2f-peephole-asm-load-fold' into users/void/asm-rm-3-direct-mem-output-error
DeltaFile
+1,158-246llvm/include/llvm/IR/RuntimeLibcalls.td
+938-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+717-119llvm/test/Transforms/LoopVectorize/early-exit-reductions-live-out.ll
+0-673clang/test/Analysis/Scalable/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+673-0clang/test/ScalableStaticAnalysis/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+0-661lldb/source/Target/StackFrame.cpp
+3,486-1,6991,725 files not shown
+41,414-24,5631,731 files

LLVM/project 1553a47 — clang/test/Analysis/Scalable/source-edit-generation cpp-bounded-buffers-replacements.cpp, clang/test/ScalableStaticAnalysis/source-edit-generation cpp-bounded-buffers-replacements.cpp

Merge branch 'users/void/asm-rm-2c-fold-subreg-offset' into users/void/asm-rm-2d-prefer-spilling-foldable
DeltaFile
+1,158-246llvm/include/llvm/IR/RuntimeLibcalls.td
+938-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+717-119llvm/test/Transforms/LoopVectorize/early-exit-reductions-live-out.ll
+0-673clang/test/Analysis/Scalable/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+673-0clang/test/ScalableStaticAnalysis/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+0-661lldb/source/Target/StackFrame.cpp
+3,486-1,6991,725 files not shown
+41,414-24,5631,731 files

LLVM/project 5d3eb5f — clang/test/Analysis/Scalable/source-edit-generation cpp-bounded-buffers-replacements.cpp, clang/test/ScalableStaticAnalysis/source-edit-generation cpp-bounded-buffers-replacements.cpp

Merge branch 'users/void/asm-rm-2-fold-tied-operands' into users/void/asm-rm-2b-fold-all-reg-operands
DeltaFile
+1,158-246llvm/include/llvm/IR/RuntimeLibcalls.td
+938-0llvm/test/CodeGen/SystemZ/pdep-pext.ll
+717-119llvm/test/Transforms/LoopVectorize/early-exit-reductions-live-out.ll
+0-673clang/test/Analysis/Scalable/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+673-0clang/test/ScalableStaticAnalysis/source-edit-generation/cpp-bounded-buffers-replacements.cpp
+0-661lldb/source/Target/StackFrame.cpp
+3,486-1,6991,725 files not shown
+41,414-24,5631,731 files

LLVM/project 4130507 — llvm/include/llvm/IR InlineAsm.h, llvm/lib/CodeGen TargetInstrInfo.cpp

Merge branch 'users/void/mir-inline-asm-func-kind' into users/void/asm-rm-2-fold-tied-operands
DeltaFile
+135-0llvm/unittests/Target/X86/InlineAsmOperandCommentTest.cpp
+3-2llvm/lib/CodeGen/TargetInstrInfo.cpp
+2-1llvm/include/llvm/IR/InlineAsm.h
+1-0llvm/unittests/Target/X86/CMakeLists.txt
+141-34 files

LLVM/project ff99bb5 — llvm/include/llvm/IR InlineAsm.h, llvm/lib/CodeGen TargetInstrInfo.cpp

Handle the func kind in createMIROperandComment

createMIROperandComment read a func flag's constraint code as a register
class, giving "func:FR16X" for a "p" operand, and didn't print the code.
Treat a func flag like a mem flag there, as MachineInstr::print does. The
MIR printer doesn't print this comment for a flag, so test it with a unit
test.

Also assert that a func flag isn't given a register class, and say in the
flag layout comment that a func flag holds a constraint code.

Assisted-by: Claude Opus 5.5
DeltaFile
+135-0llvm/unittests/Target/X86/InlineAsmOperandCommentTest.cpp
+3-2llvm/lib/CodeGen/TargetInstrInfo.cpp
+2-1llvm/include/llvm/IR/InlineAsm.h
+1-0llvm/unittests/Target/X86/CMakeLists.txt
+141-34 files

LLVM/project 6fc3a9a — llvm/lib/Transforms/Vectorize VPlanTransforms.cpp, llvm/test/Transforms/LoopVectorize/AArch64 transform-narrow-interleave-to-widen-memory.ll

[VPlan] Only narrow store groups storing a single load group (#244730)

When narrowing a store group whose members are all load interleave group
values, only the defining group of each member was checked to hold it at
the matching index. Members could come from different load groups, but
the store group was narrowed to a copy of the first member's group only.
Require all members to come from the load group of member 0.
DeltaFile
+93-0llvm/test/Transforms/LoopVectorize/AArch64/transform-narrow-interleave-to-widen-memory.ll
+7-9llvm/lib/Transforms/Vectorize/VPlanTransforms.cpp
+100-92 files

LLVM/project 755bf30 — clang/lib/Driver Driver.cpp

[clang][Driver] Check the existence of -gen-reproducer=off instead of -fno-crash-diagnostics

-fno-crash-diagnostic is an alias of -gen-reproducer=off. That means
The check for -fno-crash-diagnostic does not work as expected.
This patch resolves it.
DeltaFile
+4-2clang/lib/Driver/Driver.cpp
+4-21 files

LLVM/project 5910012 — llvm/lib/CodeGen TargetInstrInfo.cpp MachineInstr.cpp

Move folding register checks into mayFoldInlineAsmRegOp so that it's available everywhere.
DeltaFile
+9-0llvm/lib/CodeGen/MachineInstr.cpp
+1-7llvm/lib/CodeGen/TargetInstrInfo.cpp
+10-72 files

LLVM/project b7d9b90 — llvm/test/CodeGen/X86 greedy-inline-asm-fold.mir

[TargetInstrInfo] Address review: autogenerate greedy-inline-asm-fold.mir checks

Generate the checks with update_mir_test_checks.py so that the spills and
reloads around each folded inline asm are verified, not just the INLINEASM
itself. Fix the "=r" comment to describe the C "+r" operand, note that which
"+rm" pair greedy folds is its own choice, and add a "+&rm" case on an
uninitialized value showing that folding a pair whose tied use is undef
stores to the slot without loading from it.

Assisted-by: Claude Opus 5.5
DeltaFile
+94-8llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+94-81 files

LLVM/project 9f631c7 — llvm/test/CodeGen/X86 greedy-inline-asm-fold.mir

Test a tie whose def moves when a folded operand is before it

Folding a "+rm" pair before a "+r" pair moves the "+r" pair's def, so
both ends of its tie get new indices. The other tests only moved the
use.

Assisted-by: Claude Opus 5.5
DeltaFile
+51-0llvm/test/CodeGen/X86/greedy-inline-asm-fold.mir
+51-01 files