Problem Description
amdgcn-cfg.py fails to create an edge because there is the following basic block in the middle. The script didn't take into account an early kernel terminator
.LBB0_40:
.loc 1 626 4 ; flash-attention.py:626:4
s_endpgm
The CFG logic needs to be fixed (somewhere around get_block_list function).
The output looks as follows If one deletes LBB0_40 label and a jump to this label

Operating System
Ubuntu 22.04.5 LTS
CPU
MI300X
GPU
AMD
ROCm Version
ROCm 6.2.3
ROCm Component
ROCm
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response
Problem Description
amdgcn-cfg.pyfails to create an edge because there is the following basic block in the middle. The script didn't take into account an early kernel terminatorThe CFG logic needs to be fixed (somewhere around
get_block_listfunction).The output looks as follows If one deletes
LBB0_40label and a jump to this labelOperating System
Ubuntu 22.04.5 LTS
CPU
MI300X
GPU
AMD
ROCm Version
ROCm 6.2.3
ROCm Component
ROCm
Steps to Reproduce
No response
(Optional for Linux users) Output of /opt/rocm/bin/rocminfo --support
No response
Additional Information
No response