[all-commits] [llvm/llvm-project] 318d8c: [SPIRV] Don't treat noipa aliasees as interposable...

David Blaikie via All-commits all-commits at lists.llvm.org
Fri Oct 2 16:08:06 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 318d8c3b0b5cd2b28869de20b1e326e28997c879
      https://github.com/llvm/llvm-project/commit/318d8c3b0b5cd2b28869de20b1e326e28997c879
  Author: David Blaikie <dblaikie at gmail.com>
  Date:   2026-10-02 (Fri, 02 Oct 2026)

  Changed paths:
    M llvm/lib/Target/SPIRV/SPIRVPrepareGlobals.cpp
    M llvm/test/CodeGen/SPIRV/passes/SPIRVPrepareGlobals.ll

  Log Message:
  -----------
  [SPIRV] Don't treat noipa aliasees as interposable in SPIRVPrepareGlobals (#228178)

SPIRVPrepareGlobals replaces aliases with their aliasee because the
backend can't lower GlobalAlias. It must skip aliasees that may be
replaced at link time, but `isInterposable()` also returns true for
`noipa` function definitions by default. `noipa` doesn't change which
definition is used at link time, so query
`isInterposable(/*CheckNoIPA=*/false)` so aliases of `noipa` functions
are still replaced.

This is one of a few refinements of noipa identified while working on
making optnone imply noipa - without these refinements,
optnone-implies-noipa, might substantially change clang -O0 codegen. I'm
open to discussing whether these refinements are the right direction,
though.

Assisted-By: Claude



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