[all-commits] [llvm/llvm-project] 45940c: DAG: Use phi in alloca constant case to create vir...

Matt Arsenault via All-commits all-commits at lists.llvm.org
Thu Mar 6 22:34:46 PST 2025


  Branch: refs/heads/users/arsenm/dag/use-phi-op-to-create-register-not-constant-case
  Home:   https://github.com/llvm/llvm-project
  Commit: 45940c374167fb1f540698fad52d2b056cecefea
      https://github.com/llvm/llvm-project/commit/45940c374167fb1f540698fad52d2b056cecefea
  Author: Matt Arsenault <Matthew.Arsenault at amd.com>
  Date:   2025-03-07 (Fri, 07 Mar 2025)

  Changed paths:
    M llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp
    M llvm/test/CodeGen/AMDGPU/copy-to-reg-frameindex.ll

  Log Message:
  -----------
  DAG: Use phi in alloca constant case to create virtual registers

This is a follow up from 39bf765bb671fa7df3fe6c164cc9532fcb8653bd,
for the other case handled here. We would create CopyToReg marked
as uniform, even though the end phi would need to use VGPRs due
to another divergent input. There's no directly observable change in
the final output of the new test, but it does hit this case.



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