LLVM/project d14a4e5 — llvm/lib/Target/LoongArch LoongArchPassRegistry.def LoongArchTargetMachine.cpp, llvm/test/CodeGen/LoongArch post-ra-fold-load-offset-la32.mir post-ra-fold-load-offset-la64.mir

[LoongArch] Introduce LoongArchPostRAFoldLoadOffsetPass to fold remaining tails post-RA
DeltaFile
+155-0llvm/lib/Target/LoongArch/LoongArchPostRAFoldLoadOffset.cpp
+13-26llvm/test/CodeGen/LoongArch/post-ra-fold-load-offset-la64.mir
+8-16llvm/test/CodeGen/LoongArch/post-ra-fold-load-offset-la32.mir
+11-0llvm/lib/Target/LoongArch/LoongArch.h
+6-1llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+2-0llvm/lib/Target/LoongArch/LoongArchPassRegistry.def
+195-434 files not shown
+200-4310 files

LLVM/project 8035a34 — llvm/include/llvm/CodeGen MachineFunctionPrinterPass.h, llvm/lib/CodeGen CodeGen.cpp MachineFunctionPrinterPass.cpp

[CodeGen] Port MachineFunctionPrinter to the new pass manager (#248219)

Standard Pass Porting.

I used OpenAI Codex to help review the implementation and draft the
tests.
DeltaFile
+30-12llvm/lib/CodeGen/MachineFunctionPrinterPass.cpp
+38-0llvm/include/llvm/CodeGen/MachineFunctionPrinterPass.h
+5-3llvm/lib/Passes/CodeGenPassBuilder.cpp
+7-0llvm/test/CodeGen/X86/print-after-isel.ll
+2-1llvm/test/CodeGen/MIR/Generic/dbg-value.mir
+1-1llvm/lib/CodeGen/CodeGen.cpp
+83-173 files not shown
+86-199 files

LLVM/project 7d54027 — llvm/test/CodeGen/LoongArch post-ra-fold-load-offset-la32.mir post-ra-fold-load-offset-la64.mir

[NFC][LoongArch] Add post-ra-fold-load-offset-la{32,64}.mir test baseline
DeltaFile
+438-0llvm/test/CodeGen/LoongArch/post-ra-fold-load-offset-la64.mir
+196-0llvm/test/CodeGen/LoongArch/post-ra-fold-load-offset-la32.mir
+634-02 files

LLVM/project c72d052 — llvm/lib/Target/LoongArch LoongArchTargetMachine.cpp LoongArch.h, llvm/test/CodeGen/LoongArch stptr.ll ldptr.ll

[LoongArch] Implement LoongArchFoldMemOffsetPass to fold small offsets
DeltaFile
+314-0llvm/lib/Target/LoongArch/LoongArchFoldMemOffset.cpp
+40-60llvm/test/CodeGen/LoongArch/fold-mem-offset.ll
+14-0llvm/lib/Target/LoongArch/LoongArch.h
+2-2llvm/test/CodeGen/LoongArch/stptr.ll
+2-2llvm/test/CodeGen/LoongArch/ldptr.ll
+3-0llvm/lib/Target/LoongArch/LoongArchTargetMachine.cpp
+375-645 files not shown
+382-6411 files

LLVM/project 65d882f — llvm/lib/Target/LoongArch LoongArchISelDAGToDAG.cpp, llvm/test/CodeGen/LoongArch fold-mem-offset.ll

[LoongArch] Adjust isRegRegAddrProfitable heuristics to allow folding by LoongArchFoldMemOffset
DeltaFile
+11-0llvm/lib/Target/LoongArch/LoongArchISelDAGToDAG.cpp
+3-4llvm/test/CodeGen/LoongArch/fold-mem-offset.ll
+14-42 files

LLVM/project 014fd55 — llvm/test/CodeGen/LoongArch fold-mem-offset.ll

[NFC][LoongArch] Add fold-mem-offset.ll test baseline
DeltaFile
+407-0llvm/test/CodeGen/LoongArch/fold-mem-offset.ll
+407-01 files

FreeBSD/ports f872e08 — science/ALPSCore pkg-plist Makefile

science/ALPSCore: Update 2.3.3 => 2.3.4
DeltaFile
+3-3science/ALPSCore/distinfo
+2-2science/ALPSCore/Makefile
+1-0science/ALPSCore/pkg-plist
+6-53 files

LLVM/project 94d0511 — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN/PRE atomic.ll

[GVN] Bail out on atomic loads in select availability checks

An atomic load from a select cannot be replaced with values from
other loads, as atomic loads can only be forwarded from stores in this
case.

As a result, we bail out on atomic loads in the select availability
checker to prevent miscompilation.

Assisted-by: Claude # Test
DeltaFile
+4-4llvm/test/Transforms/GVN/PRE/atomic.ll
+2-0llvm/lib/Transforms/Scalar/GVN.cpp
+6-42 files

LLVM/project c231542 — llvm/test/Transforms/GVN/PRE atomic.ll

[GVN][NFC] Add tests for atomic loads through a select

Assisted-by: Claude # Test
DeltaFile
+57-0llvm/test/Transforms/GVN/PRE/atomic.ll
+57-01 files

FreeBSD/doc 22aa60f — documentation/themes/beastie/assets/styles documentation.css global.css, documentation/themes/beastie/layouts/_partials site-head.html

documentation/beastie: Fix minor HTML/CSS bugs

- site-head.html: Remove invalid keywords ("system", "high-contrast")
  from <meta name="color-scheme">, leaving "light dark".
- documentation.css: Fix undefined CSS variable --global-font to
  --global-font-color.
- global.css: Fix invalid transition timing function typo ("easy" ->
  "ease").
DeltaFile
+2-2documentation/themes/beastie/assets/styles/global.css
+1-1documentation/themes/beastie/layouts/_partials/site-head.html
+1-1documentation/themes/beastie/assets/styles/documentation.css
+4-43 files

FreeBSD/doc 5347667 — documentation/themes/beastie/assets/styles header.scss header.css

documentation/beastie: Migrate SCSS to plain CSS

Hugo deprecated libsass in v0.153.0 and removed it in v0.170.0 in favor
of an external Dart Sass binary, which is not natively available on
FreeBSD.

The documentation beastie theme did not use any Sass variables, mixins,
or functions—only @import in main.scss and selector nesting in
global.scss and documentation.scss.  Migrate the stylesheets to plain
CSS (matching website/themes/beastie):

- Extract @font-face rules from main.scss into fonts.css.
- Flatten nested selectors in global.scss and documentation.scss into
  global.css and documentation.css.
- Rename the remaining plain-CSS stylesheets (variables, header,
  footer, rouge) from .scss to .css.
- Replace css.Sass in site-head.html with Hugo's built-in
  resources.Concat, resources.Minify, and fingerprint (with SRI
  integrity).
DeltaFile
+0-783documentation/themes/beastie/assets/styles/global.scss
+771-0documentation/themes/beastie/assets/styles/global.css
+0-430documentation/themes/beastie/assets/styles/documentation.scss
+426-0documentation/themes/beastie/assets/styles/documentation.css
+0-353documentation/themes/beastie/assets/styles/header.scss
+353-0documentation/themes/beastie/assets/styles/header.css
+1,550-1,5669 files not shown
+2,032-2,04715 files

LLVM/project f2ccd16 — llvm/include/llvm/Target/GlobalISel Combine.td, llvm/test/CodeGen/RISCV/GlobalISel clmulr-rv64.ll clmul-rv64.ll

[RISCV][GlobalISel] Fold sign-extended high-bit extracts to arithmetic shifts (#244108)

Fold sign extensions of high-bit extracts into arithmetic right shifts.
DeltaFile
+75-0llvm/test/CodeGen/RISCV/GlobalISel/combine-top-bits-rv64.ll
+69-0llvm/test/CodeGen/RISCV/GlobalISel/combine-top-bits.mir
+40-0llvm/test/CodeGen/RISCV/GlobalISel/combine-top-bits-rv32.ll
+17-0llvm/include/llvm/Target/GlobalISel/Combine.td
+4-8llvm/test/CodeGen/RISCV/GlobalISel/clmul-rv64.ll
+2-4llvm/test/CodeGen/RISCV/GlobalISel/clmulr-rv64.ll
+207-122 files not shown
+212-168 files

FreeBSD/ports 5d306ce — cad/pcb-rnd Makefile distinfo

cad/pcb-rnd: Update 3.1.9 => 3.1.10
DeltaFile
+3-3cad/pcb-rnd/distinfo
+1-1cad/pcb-rnd/Makefile
+4-42 files

LLVM/project fad7797 — llvm/lib/Target/X86 X86FlagsCopyLowering.cpp, llvm/test/CodeGen/X86 flags-copy-lowering-inlineasm-br-error.mir flags-copy-lowering-inlineasm-br.mir

[X86] Handle more INLINEASM_BR shapes in X86FlagsCopyLowering

A copy before an INLINEASM_BR that leaves EFLAGS alone reaches the asm's
indirect targets, but the pass stopped at a later redefinition of EFLAGS
in the block and never rewrote the reads there. It could also hoist the
test position to the end of a block with an asm, which the indirect path
skips, and splitting a block between two conditional branches moved the
asm's indirect edges to the new block.

Follow the copy into the indirect targets of an asm that it reaches,
don't hoist the test into a block with an INLINEASM_BR, and keep the
asm's indirect edges in the first half of a split block. A block that
both the copy and an indirect path from an asm before it reach needs a
PHI, which the pass can't insert, so report it as it already does for a
use that the copy doesn't dominate.

Assisted-by: Claude Opus 5.5
DeltaFile
+261-0llvm/test/CodeGen/X86/flags-copy-lowering-inlineasm-br.mir
+129-32llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
+69-0llvm/test/CodeGen/X86/flags-copy-lowering-inlineasm-br-error.mir
+459-323 files

LLVM/project ba132a4 — llvm/lib/Target/X86 X86FlagsCopyLowering.cpp

Use contains() to check for a visited block

Assisted-by: Claude Opus 5.5
DeltaFile
+1-1llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
+1-11 files

LLVM/project 99ec082 — llvm/lib/Target/X86 X86FlagsCopyLowering.cpp, llvm/test/CodeGen/X86 flags-copy-lowering-inlineasm-br.mir

[X86] Fix EFLAGS copy lowering across INLINEASM_BR indirect edges

An INLINEASM_BR isn't a terminator, so it can branch to an indirect
target from the middle of its block, before the instructions after it
run. The EFLAGS that live into an indirect target are the ones at the
asm, not the ones at the end of the block, but X86FlagsCopyLowering
assumed the latter in two places.

When the pass lowers an EFLAGS copy, it rewrites the copy's uses in its
block and then in every successor that EFLAGS live into. For a copy
after an INLINEASM_BR, that includes the asm's indirect targets, which
the copy never reaches, so the pass removed their live-in and rewrote
their flag reads to use SETCCs computed after the asm, which only the
fallthrough path runs. The pass could also hoist the test position for
a copy in an indirect target into its predecessor, before the
terminator that follows the asm, where the indirect path never goes.

Don't follow a copy from its block into the indirect targets of an
INLINEASM_BR before it, and don't hoist the test position out of an

    [11 lines not shown]
DeltaFile
+147-0llvm/test/CodeGen/X86/flags-copy-lowering-inlineasm-br.mir
+23-3llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
+170-32 files

LLVM/project 5e874ed — llvm/lib/Target/X86 X86FlagsCopyLowering.cpp

Constify the iterator in the for loop

Co-authored-by: Nick Desaulniers <ndesaulniers at google.com>
DeltaFile
+1-1llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
+1-11 files

LLVM/project 36abab5 — llvm/lib/Target/X86 X86FlagsCopyLowering.cpp

Use braces for the nested loops over the copy's block
DeltaFile
+10-6llvm/lib/Target/X86/X86FlagsCopyLowering.cpp
+10-61 files

LLVM/project 873322a — llvm/test/CodeGen/AArch64 callbr-asm-outputs-indirect-isel.ll, llvm/test/CodeGen/X86 callbr-asm-outputs-indirect-isel-m32.ll callbr-asm-outputs-indirect-isel.ll

Regenerate callbr tests for label-must-be-emitted

Main now prints label-must-be-emitted on INLINEASM_BR indirect targets
(#234850).

Assisted-by: Claude Opus 5.5
DeltaFile
+3-3llvm/test/CodeGen/X86/callbr-asm-outputs-indirect-isel.ll
+1-1llvm/test/CodeGen/X86/callbr-asm-outputs-indirect-isel-m32.ll
+1-1llvm/test/CodeGen/AArch64/callbr-asm-outputs-indirect-isel.ll
+5-53 files

LLVM/project ed382e9 — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp, llvm/test/CodeGen/X86 callbr-asm-error.ll

Move the asm error handling to its own PR

This PR now fixes only valid asm whose outputs crash the indirect targets.
Lowering a callbr whose asm has an error, which crashes after reporting
it, moves to its own PR stacked on this one.

Assisted-by: Claude Opus 5.5
DeltaFile
+0-37llvm/test/CodeGen/X86/callbr-asm-error.ll
+2-17llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+2-542 files

LLVM/project afcc450 — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp

Remove the stale FollowCopyChain comment and unrelated comment changes

The comment that explained FollowCopyChain's walk was left above
visitCallBrLandingPad() when the walk was removed. Also put the BTI comment
in visitCallBr() back as it was, and fix a double space.

Assisted-by: Claude Opus 5.5
DeltaFile
+6-29llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+6-291 files

LLVM/project 352c87c — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp

Don't add duplicate registers as live-in.

Co-authored-by: Nick Desaulniers <ndesaulniers at google.com>
DeltaFile
+1-1llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+1-11 files

LLVM/project 2166ded — llvm/test/CodeGen/AArch64 callbr-asm-outputs-indirect-isel.ll, llvm/test/CodeGen/RISCV callbr-asm-outputs.ll

Test more outputs that the indirect targets convert

Add the RISC-V shape of #143795, where an i32 output is sign-extended on
each path, a float in a specific physical register on x86, a double in a
pair of registers on i686, and a flag output on AArch64, whose NZCV is now
live into the indirect target. Also check that a callbr with direct and
indirect register outputs now only reports the error.

Assisted-by: Claude Opus 5.5
DeltaFile
+87-0llvm/test/CodeGen/RISCV/callbr-asm-outputs.ll
+39-0llvm/test/CodeGen/X86/callbr-asm-outputs-indirect-isel.ll
+39-0llvm/test/CodeGen/X86/callbr-asm-outputs-indirect-isel-m32.ll
+36-0llvm/test/CodeGen/AArch64/callbr-asm-outputs-indirect-isel.ll
+13-0llvm/test/CodeGen/X86/callbr-asm-indirect-output.ll
+214-05 files

LLVM/project a45e277 — llvm/include/llvm/CodeGen FunctionLoweringInfo.h, llvm/lib/CodeGen/SelectionDAG FunctionLoweringInfo.cpp SelectionDAGBuilder.h

Replay each output's read in the indirect targets

The indirect targets re-parsed the constraints, recomputed each output's
registers and types, and paired them with the recorded registers in order,
so they were right only if both computations agreed. Record each output's
operand info and registers when lowering the callbr instead, and read them
in the indirect targets with the same code as visitInlineAsm().

This also marks a flag output's register (NZCV on AArch64, CC on SystemZ)
live into the indirect targets, as a register output's already was. And the
indirect targets no longer create virtual registers they don't use, which
renumbers some in the AArch64 test.

Assisted-by: Claude Opus 5.5
DeltaFile
+65-93llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+14-0llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
+0-7llvm/include/llvm/CodeGen/FunctionLoweringInfo.h
+3-3llvm/test/CodeGen/AArch64/callbr-asm-outputs-indirect-isel.ll
+0-1llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+82-1045 files

LLVM/project a6b97e8 — llvm/include/llvm/CodeGen FunctionLoweringInfo.h, llvm/lib/CodeGen/SelectionDAG FunctionLoweringInfo.cpp SelectionDAGBuilder.cpp

[SelectionDAG] Read callbr outputs from the INLINEASM_BR's registers

An indirect target of a callbr found the registers holding the asm's
outputs by walking back from the callbr's exported value through COPYs to
the INLINEASM_BR, and asserted that the chain held nothing else ("start of
copy chain MUST be COPY"). An output whose type differs from its register's,
such as a float in a general-purpose register, is converted, e.g. with
MOVDI2SSrr on x86, so the assertion fired. And the target didn't convert the
output to its result type, as visitInlineAsm() does.

After an error in the asm, nothing defines the exported value, so the walk
crashed, and the callbr block kept edges to the indirect targets with no
INLINEASM_BR to branch there, which later passes reject.

Record the registers that the INLINEASM_BR defines its outputs in when
lowering the callbr, and read the outputs from them in the indirect target,
converting each to its result type as visitInlineAsm() does. After an error,
give the indirect targets undefined outputs and no edges from the callbr.

Fixes #98379, #112914, #143795, #170100, #172657, and #173609.
DeltaFile
+122-110llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+76-0llvm/test/CodeGen/X86/callbr-asm-outputs-indirect-isel.ll
+37-0llvm/test/CodeGen/X86/callbr-asm-error.ll
+7-0llvm/include/llvm/CodeGen/FunctionLoweringInfo.h
+1-0llvm/lib/CodeGen/SelectionDAG/FunctionLoweringInfo.cpp
+243-1105 files

LLVM/project ba1e325 — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp

Move a callbr output's operand info and registers into its record

Nothing reads them after the output is recorded, so they don't need to be
copied.

Assisted-by: Claude Opus 5.5
DeltaFile
+5-3llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+5-31 files

LLVM/project 945c8a5 — llvm/test/CodeGen/X86 callbr-asm-outputs-indirect-isel-m32.ll

Regenerate callbr tests for inline asm operand counts

Main now prints the operand count of an inline asm operand with more than
one register, such as "regdef:GR32_NOREX2 ops:2" (#235184).

Assisted-by: Claude Opus 5.5
DeltaFile
+1-1llvm/test/CodeGen/X86/callbr-asm-outputs-indirect-isel-m32.ll
+1-11 files

LLVM/project c8a8e93 — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp

Refer to the recorded callbr outputs through SmallVectorImpl

The code that records them doesn't depend on the inline size.

Assisted-by: Claude Opus 5.5
DeltaFile
+1-1llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+1-11 files

LLVM/project 3813ac6 — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp

Use "llvm_unreachable" instead of "assert(false && ...)"

Co-authored-by: Nick Desaulniers <ndesaulniers at google.com>
DeltaFile
+1-1llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+1-11 files

LLVM/project 278aaca — llvm/lib/CodeGen/SelectionDAG SelectionDAGBuilder.cpp, llvm/test/CodeGen/X86 callbr-asm-indirect-output.ll

[SelectionDAG] Report an error for a callbr's indirect register output

An indirect output with a register constraint, e.g. "=*r", is stored to its
pointer after the asm. But a callbr's asm can branch to an indirect target
before then, so the store was silently skipped on the indirect paths. Clang
emits such an output for a _Complex lvalue with a register constraint:

  _Complex float c;
  asm goto("" : "=r"(c) : : : l);

Report an error instead. A callbr without indirect targets has no such
path, so it's still allowed.

Assisted-by: Claude Opus 5.5
DeltaFile
+47-0llvm/test/CodeGen/X86/callbr-asm-indirect-output.ll
+8-0llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
+55-02 files