LLVM/project da83c16 — llvm/include/llvm/Analysis MetadataUtils.h, llvm/include/llvm/Transforms/Utils MetadataUtils.h

move to utils
DeltaFile
+0-504llvm/lib/Analysis/MetadataUtils.cpp
+502-0llvm/lib/Transforms/Utils/MetadataUtils.cpp
+0-89llvm/include/llvm/Analysis/MetadataUtils.h
+87-0llvm/include/llvm/Transforms/Utils/MetadataUtils.h
+0-14llvm/lib/Analysis/VectorUtils.cpp
+7-4llvm/lib/Transforms/Vectorize/VPlanRecipes.cpp
+596-61125 files not shown
+618-62631 files

FreeBSD/src f6e3d4d — sys/fs/nfs nfsport.h, sys/fs/nfsclient nfs_clport.c nfs_clnode.c

nfscl: Set up a custom buf_ops so that VOP_STRATEGY() call is avoided

A crash was reported, where there was a panic because
a NFS client bwrite() call resulted in a call to VOP_STRATEGY()
where the vp is unlocked.

I believe that write-backs done via the NFS client are safe to
do while holding the buffer lock, but not the vnode lock.

To avoid this panic, this patch defines a custom buf_ops
with an NFS specific bufstrategy() function that calls the
NFS strategy code directly instead of through a VOP_STRATEGY()
call.

Reviewed by:    kib
MFC after:      2 weeks
Differential Revision:  https://reviews.freebsd.org/D62336
DeltaFile
+24-7sys/fs/nfsclient/nfs_clvnops.c
+3-5sys/fs/nfs/nfsport.h
+1-1sys/fs/nfsclient/nfs_clport.c
+1-1sys/fs/nfsclient/nfs_clnode.c
+29-144 files

FreeBSD/ports 480fa15 — www/linux-chrome Makefile distinfo

www/linux-chrome: Security update to 158.0.8127.107

Fixes critical use after free in ANGLE, Web Authentication, IndexedDB,
Canvas, Fonts, Layout, Navigation and Skia, plus buffer overflow and out
of bounds write in ANGLE and integer overflow in Skia.

Changelog:      https://chromereleases.googleblog.com/2026/12/stable-channel-update-for-desktop.html

Security:       e11e436c-9a8d-491f-ae2a-3893ad415a4e
Sponsored by:   Netzkommune GmbH

(cherry picked from commit 2cc7a8c24fca46e01a2a3db1b0f40bb6a1114476)
DeltaFile
+5-5www/linux-chrome/distinfo
+1-2www/linux-chrome/Makefile
+6-72 files

FreeBSD/ports 2cc7a8c — www/linux-chrome Makefile distinfo

www/linux-chrome: Security update to 158.0.8127.107

Fixes critical use after free in ANGLE, Web Authentication, IndexedDB,
Canvas, Fonts, Layout, Navigation and Skia, plus buffer overflow and out
of bounds write in ANGLE and integer overflow in Skia.

Changelog:      https://chromereleases.googleblog.com/2026/12/stable-channel-update-for-desktop.html

Security:       e11e436c-9a8d-491f-ae2a-3893ad415a4e
Sponsored by:   Netzkommune GmbH
DeltaFile
+5-5www/linux-chrome/distinfo
+1-2www/linux-chrome/Makefile
+6-72 files

FreeBSD/ports 3d9b2c5 — security/vuxml/vuln 2026.xml

security/vuxml: add www/{*chromium,linux-chrome} < 158.0.8127.107

Sponsored by:   Netzkommune GmbH
DeltaFile
+493-0security/vuxml/vuln/2026.xml
+493-01 files

LLVM/project 35f1032 — clang/test/OpenMP task_codegen.cpp, llvm/lib/Target/Hexagon HexagonGlobalSchedulerV2.cpp

Rebase, address comments, fix regressions, improvements

Created using spr 2.0.0-beta.1
DeltaFile
+5,270-0llvm/lib/Target/Hexagon/HexagonGlobalSchedulerV2.cpp
+1,626-1,617clang/test/OpenMP/task_codegen.cpp
+1,922-0mlir/test/Dialect/X86/vector-contract-16bit-fp-to-fma.mlir
+655-834llvm/test/CodeGen/AArch64/sve-fixed-length-masked-expandloads.ll
+688-788llvm/test/CodeGen/AArch64/sve-fixed-length-fp-extend-bf16.ll
+1,449-0llvm/test/CodeGen/RISCV/xqcilo-xqcilia-sfb-frame-index.ll
+11,610-3,2393,213 files not shown
+148,243-33,6873,219 files

LLVM/project 317a274 — libc/src/__support/HashTable CMakeLists.txt table.h, libc/test/src/__support/HashTable CMakeLists.txt table_test.cpp

[libc] Check AllocChecker before pointer offset in HashTable::allocate (#247861)

`HashTable::allocate` added `align_boundary` to `mem` before checking
the `AllocChecker` result from `operator new`, so a failed allocation
returned a non-null offset pointer instead of `nullptr`. Check `ac`
right after `operator new` and return `nullptr` when allocation fails,
and add a `table_test` case verifying the `nullptr` return.

Assisted-By: Gemini
DeltaFile
+27-1libc/test/src/__support/HashTable/table_test.cpp
+13-8libc/src/__support/HashTable/table.h
+1-0libc/test/src/__support/HashTable/CMakeLists.txt
+1-0libc/src/__support/HashTable/CMakeLists.txt
+42-94 files

LLVM/project a8b8046 — clang/include/clang/StaticAnalyzer/Core/PathSensitive Environment.h, clang/lib/StaticAnalyzer/Core Environment.cpp

[analyzer][NFC] Out-line `Environment` and `EnvironmentManager` members (#248252)

- Move the bodies of `Environment::begin`, `Environment::end`,
`Environment::Profile`, `Environment::operator==` and
`EnvironmentManager::getInitialEnvironment` from `Environment.h` into
`Environment.cpp`.
- Define the `EnvironmentManager` constructor and destructor out of line
too. They instantiated the `llvm::ImmutableMap` factory and its teardown
in every TU that includes the header, i.e. nearly every checker, though
only the engine constructs and destroys the manager.

Build-time impact (instructions retired, 196 `lib/StaticAnalyzer` TUs):
- Total: -0.22% (run-to-run noise 0.2%; 9 of 9 paired sweeps faster).
- 164 TUs change by more than 0.15%, by -0.28% over those.

Run-time impact (analyzer, 20 TUs of clang/lib/{AST,Sema,Parse,CodeGen},
elapsed cycles, 10 interleaved rounds per binary, before = merge base
a26d5a8):
- Result: no slowdown detected. Median of per-round totals -0.39%: no

    [9 lines not shown]
DeltaFile
+23-0clang/lib/StaticAnalyzer/Core/Environment.cpp
+7-12clang/include/clang/StaticAnalyzer/Core/PathSensitive/Environment.h
+30-122 files

LLVM/project f4c549e — llvm/include/llvm/Transforms/IPO Attributor.h

Remove AAPotentialConstantValues::getAssumedConstant

Its only caller was removed with AAValueSimplify.

Co-Authored-By: Claude Opus 5.5 <noreply at anthropic.com>
DeltaFile
+0-20llvm/include/llvm/Transforms/IPO/Attributor.h
+0-201 files

LLVM/project 0d6a78b — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN/PRE pre-basic-add.ll

[GVN] Treat DeadBlocks as poison

Same as PRE load, a deadblock should not be treated as something need
insertion. Insert poision for this.
DeltaFile
+8-7llvm/test/Transforms/GVN/PRE/pre-basic-add.ll
+3-5llvm/lib/Transforms/Scalar/GVN.cpp
+11-122 files

FreeBSD/src 8658253 — sys/fs/nfsserver nfs_nfsdstate.c

nfs_nfsdstate.c: Partial revert of 64857418bb23

Dropping the cached reply that is too large causes
a correctness problem that is too difficult to fix,
so revert this and leave it the way it was.

Although there is an argument that not doing could
cause resource exhaustion, it has not been reported
in the field as a problem.

(cherry picked from commit bc7366a340edb366c37352c636b8360de92aa3a2)
DeltaFile
+0-4sys/fs/nfsserver/nfs_nfsdstate.c
+0-41 files

LLVM/project fd477e2 — mlir/lib/Analysis/Presburger IntegerRelation.cpp, mlir/unittests/Analysis/Presburger IntegerRelationTest.cpp

[mlir][Presburger] Fix rangeProduct with locals (#247441)

rangeProduct copied the constraints of the second relation into a copy
of the first after inserting columns for the range variables of the
first, but did not account for local variables. When either relation had
locals, the copied constraints were misaligned with the columns of the
result, either asserting on the number of columns or silently producing
a different relation.

Build the result by extending each relation with the range variables of
the other and intersecting them, which merges their locals.

Assisted-by: gemini-4-carbon
DeltaFile
+5-27mlir/lib/Analysis/Presburger/IntegerRelation.cpp
+15-0mlir/unittests/Analysis/Presburger/IntegerRelationTest.cpp
+20-272 files

FreeBSD/src 4f5e70e — sys/fs/nfsserver nfs_nfsdstate.c nfs_nfsdserv.c

nfsd: Fix handling of RPC messages too large to cache

The NFSv4.1/4.2 session negotiates a limit to the size
of an RPC reply message that can be cached for the session
slot.

This patch fixes the code so that it checks that limit and
does not cache replies larger than the limit, even if the
client requested that it be cached.

This patch is slightly different than what the author
submitted, but retains the check for reply cache size limit.

(cherry picked from commit 64857418bb2379a7d89b6af04cddf92fa48dd28c)
DeltaFile
+6-0sys/fs/nfsserver/nfs_nfsdserv.c
+4-0sys/fs/nfsserver/nfs_nfsdstate.c
+10-02 files

LLVM/project fa2c92b — libc/src/string strndup.cpp, libc/test/src/string CMakeLists.txt strndup_test.cpp

[libc] Cap source length scan to size in strndup (#248241)

`strndup` computed the input length with `internal::string_length(src)`
before clamping to `size` and copied `len + 1` bytes before writing the
trailing null terminator. Use `internal::strnlen(src, size)` so the scan
stops at `size`, copy `len` bytes before setting `dest[len]` to `'\0'`,
and add unit tests for inputs without a null terminator within `size`
bytes.

Assisted-By: Gemini
DeltaFile
+85-1libc/test/src/string/strndup_test.cpp
+13-1libc/test/src/string/CMakeLists.txt
+8-5libc/src/string/strndup.cpp
+106-73 files

LLVM/project c81a355 — llvm/test/Transforms/SLPVectorizer/X86 vector-call-linear-parts.ll

[SLP][NFC]Add extra test for SESE vectorization with linear pointer args, NFC

Pull-request: https://github.com/llvm/llvm-project/pull/248265
DeltaFile
+134-42llvm/test/Transforms/SLPVectorizer/X86/vector-call-linear-parts.ll
+134-421 files

LLVM/project 9c12b00 — llvm/lib/Target/AMDGPU AMDGPUISelDAGToDAG.cpp, llvm/test/CodeGen/AMDGPU promote-constOffset-to-imm.ll gfx950-pk-f32-invalid-op-sel.ll

[AMDGPU] Use SADDR with out-of-range offsets

Add the part of a constant offset that does not fit the immediate field
to the SGPR base with a scalar add, instead of falling back to a 64-bit
VGPR address. This matters most for async LDS DMA loads, which have no
immediate field for the global address.
DeltaFile
+2,884-3,020llvm/test/CodeGen/AMDGPU/spill-scavenge-offset.ll
+789-140llvm/test/CodeGen/AMDGPU/global-saddr-load.ll
+126-272llvm/test/CodeGen/AMDGPU/llvm.amdgcn.av.load.b128.ll
+98-132llvm/test/CodeGen/AMDGPU/gfx950-pk-f32-invalid-op-sel.ll
+100-120llvm/test/CodeGen/AMDGPU/promote-constOffset-to-imm.ll
+139-46llvm/lib/Target/AMDGPU/AMDGPUISelDAGToDAG.cpp
+4,136-3,73011 files not shown
+4,500-3,84417 files

LLVM/project 47e97a3 — llvm/lib/Target/AMDGPU AMDGPUInstructionSelector.h AMDGPUInstructionSelector.cpp, llvm/test/CodeGen/AMDGPU/GlobalISel inst-select-load-global-saddr.mir

[AMDGPU] Restore SADDR add sharing in GlobalISel

Before GFX12, the scalar add expands into an s_add_u32/s_addc_u32 pair
linked through SCC, which MachineCSE cannot merge. Without the per-block
cache, each access in GlobalISel built its own pair, so code for those
targets grew, in some functions beyond what upstream generates. Restore
the cache and add a MIR test that checks two loads share one add.
DeltaFile
+72-0llvm/test/CodeGen/AMDGPU/GlobalISel/inst-select-load-global-saddr.mir
+15-5llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.cpp
+4-0llvm/lib/Target/AMDGPU/AMDGPUInstructionSelector.h
+91-53 files

FreeBSD/ports ac56f29 — graphics/mesa-devel Makefile distinfo

graphics/mesa-devel: update to 26.3.b.3542

Changes:        https://gitlab.freedesktop.org/mesa/mesa/-/compare/66e82ef1f61...4706e863c59
DeltaFile
+3-3graphics/mesa-devel/distinfo
+2-2graphics/mesa-devel/Makefile
+5-52 files

FreeBSD/ports 2c0fd57 — devel/spirv-llvm-translator distinfo.llvm23 distinfo.llvm22

devel/spirv-llvm-translator: update to November releases

Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v14.0.30
Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v15.0.30
Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v16.0.31
Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v17.0.30
Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v18.1.30
Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v19.1.25
Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v20.1.20
Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v21.1.14
Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v22.1.9
Changes:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/releases/tag/v23.1.4
Reported by:    GitHub (watch releases)
DeltaFile
+10-10devel/spirv-llvm-translator/Makefile
+5-5devel/spirv-llvm-translator/distinfo.llvm23
+5-5devel/spirv-llvm-translator/distinfo.llvm22
+5-5devel/spirv-llvm-translator/distinfo.llvm21
+5-5devel/spirv-llvm-translator/distinfo.llvm20
+5-5devel/spirv-llvm-translator/distinfo.llvm19
+35-354 files not shown
+55-5510 files

FreeBSD/ports c2de8ca — emulators/rpcs3 Makefile

emulators/rpcs3: unbreak with unpinned LLVM after 84f99af93620

rpcs3/Emu/CPU/CPUTranslator.h:35:10: fatal error: 'llvm/Support/KnownFPClass.h' file not found

https://github.com/RPCS3/rpcs3/commit/c278a19f85a2
DeltaFile
+1-1emulators/rpcs3/Makefile
+1-11 files

LLVM/project dabe551 — flang/include/flang/Optimizer/Dialect FortranVariableInterface.td FortranVariableInterface.h, flang/lib/Optimizer/Dialect FIROps.cpp

[flang] Add an interface for operations that store values (#247411)

FortranObjectStoreOpInterface names the values that an operation stores
and the operands that receive them. It has the same shape as the OpenACC
StoreLikeOpInterface, so that the two can later be merged into one MLIR
interface. It is implemented on fir.store, fir.copy, fir.save_result,
fir.char_convert, hlfir.assign, hlfir.copy_in, hlfir.copy_out and
cuf.data_transfer.

Alias analysis will use it to tell an address that is stored to memory
from an address that is only used to access memory.

Related to #243650.

Assisted-by: AI
DeltaFile
+489-0flang/unittests/Optimizer/FortranObjectStoreOpInterfaceTest.cpp
+58-0flang/lib/Optimizer/HLFIR/IR/HLFIROps.cpp
+46-0flang/include/flang/Optimizer/Dialect/FortranVariableInterface.h
+40-0flang/include/flang/Optimizer/Dialect/FortranVariableInterface.td
+30-0flang/lib/Optimizer/Dialect/FIROps.cpp
+19-0flang/lib/Optimizer/Dialect/CUF/CUFOps.cpp
+682-06 files not shown
+725-712 files

LLVM/project e163af4 — llvm/test/Transforms/SLPVectorizer/X86 vector-call-linear-parts.ll

[𝘀𝗽𝗿] initial version

Created using spr 2.0.0-beta.1
DeltaFile
+134-42llvm/test/Transforms/SLPVectorizer/X86/vector-call-linear-parts.ll
+134-421 files

LLVM/project ce82c97 — llvm/test/CodeGen/X86 cmov-into-branch.ll pr38539.ll, llvm/test/Transforms/CodeGenPrepare/X86 select-branch-weights.ll

[CodeGenPrepare] Ignore branch weights of logical and/or selects

SelectionDAGBuilder can split a conditional branch on a logical and/or
into one branch per condition.

After #154426, SimplifyCFG puts the branch weights of the folded branch
on the select that it creates. optimizeSelectInst() then finds the
select predictable and turns it into a branch on an i1 phi first. As a
result, the later conditions are computed before the first branch, and
the phi needs its own block. On x86, the fast path of
`if (a && b) [[likely]]` has two more instructions than with clang 21,
and more with three conditions.

Ignore the branch weights of logical and/or selects, including weights
from a profile. SelectOptimize does not turn them into branches either:
TTI::shouldTreatInstructionLikeSelect() returns false for them. A
logical and/or with a one-use compare as the condition can still become
a branch if an operand is worth sinking.


    [3 lines not shown]
DeltaFile
+1,344-1,375llvm/test/CodeGen/X86/i128-udiv.ll
+234-237llvm/test/CodeGen/X86/div-rem-pair-recomposition-signed.ll
+135-147llvm/test/CodeGen/X86/div-rem-pair-recomposition-unsigned.ll
+36-102llvm/test/Transforms/CodeGenPrepare/X86/select-branch-weights.ll
+52-65llvm/test/CodeGen/X86/pr38539.ll
+35-61llvm/test/CodeGen/X86/cmov-into-branch.ll
+1,836-1,9873 files not shown
+1,860-2,0179 files

LLVM/project 9dafd6f — llvm/lib/CodeGen CodeGenPrepare.cpp, llvm/test/CodeGen/AArch64 select-logical-op-br.ll

[CodeGenPrepare] Check shouldTreatInstructionLikeSelect() first

SelectOptimize does not start a group of selects with a select that
TTI::shouldTreatInstructionLikeSelect() rejects: a logical and/or or a
select of two constants. Use the hook in optimizeSelectInst() the same
way, instead of the check for a logical and/or in
isFormingBranchFromSelectProfitable():
- A select that the hook rejects does not become a branch, by its branch
  weights or to sink an expensive operand. The next select on the same
  condition is then checked on its own.
- As in SelectOptimize, the selects after the first one of a group on
  the same condition join the group without the check, and become phis
  with it (#238838).
- A group whose first select the target does not support is still
  expanded.

Selects of two constants with branch weights, which have become branches
since d66607bd8cd1 (2016), now stay selects.


    [4 lines not shown]
DeltaFile
+50-61llvm/test/Transforms/CodeGenPrepare/X86/select-branch-weights.ll
+23-26llvm/test/CodeGen/X86/cmov-into-branch.ll
+8-20llvm/test/CodeGen/AArch64/select-logical-op-br.ll
+13-14llvm/lib/CodeGen/CodeGenPrepare.cpp
+9-10llvm/test/CodeGen/PowerPC/cgp-select.ll
+1-1llvm/test/Transforms/CodeGenPrepare/debug-info-on-skipped-selects.ll
+104-1321 files not shown
+105-1337 files

LLVM/project b9fead2 — llvm/test/CodeGen/AArch64 select-logical-op-br.ll, llvm/test/CodeGen/PowerPC cgp-select.ll

[CodeGenPrepare] Add tests for weighted selects (NFC) (#245217)

Precommit tests for #244382 (issue #236043), which keeps CodeGenPrepare
from turning a select into a branch when the target does not treat it
like a select (TTI::shouldTreatInstructionLikeSelect()):
- logical and/or selects, most of them with branch weights and feeding a
  conditional branch in the same block;
- selects of two constants with branch weights, alone and next to other
  selects on the same condition;
- selects of vectors on PowerPC, which does not support a select of
  vectors on a scalar condition.

The CodeGenPrepare tests are for x86-64. The llc tests are for x86-64,
AArch64 (neoverse-v2, where a predictable select is expensive) and
PowerPC. The IR of the new tests is what opt -O2 produces.

Assisted-by: Claude Code (Claude Opus 5.5)
DeltaFile
+728-0llvm/test/Transforms/CodeGenPrepare/X86/select-branch-weights.ll
+291-0llvm/test/CodeGen/X86/cmov-into-branch.ll
+145-0llvm/test/CodeGen/PowerPC/cgp-select.ll
+101-0llvm/test/CodeGen/AArch64/select-logical-op-br.ll
+1,265-04 files

LLVM/project 0e026c7 — compiler-rt/lib/asan/tests CMakeLists.txt asan_report_receiver_test.cpp, compiler-rt/lib/tsan/tests/rtl CMakeLists.txt tsan_test_util.h

compiler-rt: add end-to-end ReportReceiver tests
DeltaFile
+99-0compiler-rt/lib/asan/tests/asan_report_receiver_test.cpp
+79-0compiler-rt/lib/tsan/tests/rtl/tsan_report_receiver_test.cpp
+14-1compiler-rt/lib/tsan/tests/rtl/tsan_test_util_posix.cpp
+5-0compiler-rt/lib/tsan/tests/rtl/tsan_test_util.h
+1-0compiler-rt/lib/tsan/tests/rtl/CMakeLists.txt
+1-0compiler-rt/lib/asan/tests/CMakeLists.txt
+199-16 files

LLVM/project 1e885cd — compiler-rt/lib/asan asan_errors.cpp, compiler-rt/lib/sanitizer_common sanitizer_report_receiver.cpp sanitizer_symbolizer_report.cpp

compiler-rt: pass StackTrace with explicit order to ReportReceiver

- NotifyStack/OnStack take a StackTrace plus a ReportStackOrder, so TSan
  (whose traces are outermost-first) hands over its raw traces without
  copying; the receiver reorders while filling its own buffer.
- Use Tid/kInvalidTid for the thread id, dropping kReportUnknownThread.
- Make ~ReportReceiver protected and non-virtual.
- ScopedSanitizerReport asserts the error report lock is held and no longer
  stores the sanitizer name.
- HandleDeadlySignal ends the report before Die() and reports
  "stack-overflow" as the type for stack overflows.
- ODR violation registration stacks use an unknown thread.
DeltaFile
+18-19compiler-rt/lib/tsan/rtl/tsan_report.cpp
+21-14compiler-rt/lib/sanitizer_common/sanitizer_report_receiver.h
+21-11compiler-rt/lib/sanitizer_common/tests/sanitizer_report_receiver_test.cpp
+9-5compiler-rt/lib/sanitizer_common/sanitizer_symbolizer_report.cpp
+8-5compiler-rt/lib/sanitizer_common/sanitizer_report_receiver.cpp
+5-5compiler-rt/lib/asan/asan_errors.cpp
+82-591 files not shown
+86-637 files

LLVM/project c69848f — compiler-rt/lib/sanitizer_common sanitizer_report_receiver.h sanitizer_report_receiver.cpp, compiler-rt/lib/sanitizer_common/tests sanitizer_report_receiver_test.cpp

compiler-rt: add test-only ReportReceiver reset and use a test fixture
DeltaFile
+18-18compiler-rt/lib/sanitizer_common/tests/sanitizer_report_receiver_test.cpp
+2-0compiler-rt/lib/sanitizer_common/sanitizer_report_receiver.h
+2-0compiler-rt/lib/sanitizer_common/sanitizer_report_receiver.cpp
+22-183 files

LLVM/project 325409c — llvm/lib/Transforms/Scalar GVN.cpp, llvm/test/Transforms/GVN pr17852.ll load-dead-block.ll

[GVN] Treat Deadblock as Available

PRE insert load instruction if there is only one predecessor cannot be
eliminated. A deadblock can actually be treat as Available so that it
doesn't count into the BB that needs to insert load.

Blocks unreachable from entry are treated the same way.
DeltaFile
+10-8llvm/test/Transforms/GVN/load-dead-block.ll
+15-3llvm/lib/Transforms/Scalar/GVN.cpp
+4-11llvm/test/Transforms/GVN/PRE/load-pre-num-unavailable-preds-crash.ll
+5-9llvm/test/Transforms/GVN/pr17852.ll
+34-314 files

LLVM/project 4726b29 — llvm/test/Transforms/GVN load-dead-block.ll, llvm/test/Transforms/GVN/PRE pre-basic-add.ll

[GVN][NFC] Add tests for dead and unreachable predecessors in PRE

Baseline tests for load PRE and scalar PRE where a predecessor is a
dead block or is unreachable from entry.

Assisted-by: Claude # Test
DeltaFile
+178-0llvm/test/Transforms/GVN/load-dead-block.ll
+148-0llvm/test/Transforms/GVN/PRE/pre-basic-add.ll
+326-02 files