[all-commits] [llvm/llvm-project] 1969e3: [WPD] Don't perform virtual constant propagation f...

Nikita Popov via All-commits all-commits at lists.llvm.org
Thu Jun 18 00:34:12 PDT 2026


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 1969e3061d58627f38397616862ce65f8f0d9e82
      https://github.com/llvm/llvm-project/commit/1969e3061d58627f38397616862ce65f8f0d9e82
  Author: Nikita Popov <npopov at redhat.com>
  Date:   2026-06-18 (Thu, 18 Jun 2026)

  Changed paths:
    M llvm/lib/Transforms/IPO/WholeProgramDevirt.cpp
    A llvm/test/Transforms/WholeProgramDevirt/virtual-const-prop-interposable.ll

  Log Message:
  -----------
  [WPD] Don't perform virtual constant propagation for interposable functions (#204317)

We can't do constant propagation through interposable functions, as the
definition we see may not be the prevailing one. Doing it through
inexact definitions (linkonce_odr) is fine.

TBH, I'm not completely sure whether this is necessary, maybe there is
some precondition for this pass (given that it's whole-program) that
makes it unnecessary. This behavior came up in
https://github.com/llvm/llvm-project/pull/203304.



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