Skip to content
This repository was archived by the owner on Sep 15, 2025. It is now read-only.
This repository was archived by the owner on Sep 15, 2025. It is now read-only.

LLPC fails with LLVM fatal error: "PHI node has multiple entries for the same basic block with different incoming values!" #1034

@afd

Description

@afd

Running LLPC with IR verification on one of the attached shaders leads to a fatal error.

llpc revision: c877ce1
llvm-project revision: 88613f67ca2e3e64cc1c7c4ccd47e126495e6e23

tofile.zip

amdllpc small.spv -val=false -verify-ir -o temp.out
PHI node has multiple entries for the same basic block with different incoming values!
  %__llpc_output_proxy_.0.2 = phi float [ undef, %21 ], [ 1.000000e+00, %21 ], [ 5.000000e-01, %.entry ]
label %21
float 1.000000e+00
float undef
in function _amdgpu_ps_main
ERROR: LLVM FATAL ERROR: Broken function found, compilation aborted!
PLEASE submit a bug report to https://bugs.llvm.org/ and include the crash backtrace.
Stack dump:

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions