[all-commits] [llvm/llvm-project] 7c1514: [SDAG] emit error when `llvm.type.checked.load` is...

Folkert de Vries via All-commits all-commits at lists.llvm.org
Tue Jul 14 01:58:55 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7c151447bc8abceefa3be9e5f1b27b83803d77af
      https://github.com/llvm/llvm-project/commit/7c151447bc8abceefa3be9e5f1b27b83803d77af
  Author: Folkert de Vries <folkert at folkertdev.nl>
  Date:   2026-07-14 (Tue, 14 Jul 2026)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.h
    R llvm/test/CodeGen/X86/pr142937.ll
    A llvm/test/CodeGen/X86/type-tests-must-be-lowered.ll

  Log Message:
  -----------
  [SDAG] emit error when `llvm.type.checked.load` is not lowered (#208058)

Fixes https://github.com/llvm/llvm-project/issues/164663

In rust we can enable devirtualization and LTO on a build that actually
builds a library and hence LTO does not really run. That means typed
loads are emitted, but they are not lowered (or cleaned up), which made
us hit an ICE. Giving a slightly better error message, analogous to the
existing one for `Intrinsic::type_test`, seems nice.

I'm putting this together based on
https://github.com/llvm/llvm-project/pull/179249 and
https://github.com/llvm/llvm-project/issues/164663#issuecomment-3433581033.



To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications


More information about the All-commits mailing list