[all-commits] [llvm/llvm-project] dde30a: [CGP] Bail out if (Base|Scaled)Reg does not domina...

Florian Hahn via All-commits all-commits at lists.llvm.org
Fri Jun 6 04:38:52 PDT 2025


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: dde30a47313bf52fef02bbcb1de931a8d725659f
      https://github.com/llvm/llvm-project/commit/dde30a47313bf52fef02bbcb1de931a8d725659f
  Author: Florian Hahn <flo at fhahn.com>
  Date:   2025-06-06 (Fri, 06 Jun 2025)

  Changed paths:
    M llvm/lib/CodeGen/CodeGenPrepare.cpp
    A llvm/test/Transforms/CodeGenPrepare/X86/sink-addrmode-reg-does-not-geps.ll

  Log Message:
  -----------
  [CGP] Bail out if (Base|Scaled)Reg does not dominate insert point. (#142949)

(Base|Scaled)Reg may not dominate the chosen insert point, if there are
multiple uses of the address. Bail out if that's the case, otherwise we
will generate invalid IR.

In some cases, we could probably adjust the insert point or hoist the
(Base|Scaled)Reg.

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

PR: https://github.com/llvm/llvm-project/pull/142949



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