Skip to content

[Bug] --enable-insert-sync hangs on gemm_incore_0.pto in v0.22, works in v0.17 #450

@zhangqi-chen

Description

@zhangqi-chen

Component

Passes / Transforms (sync insertion via --enable-insert-sync)

Description

There appears to be a regression in sync instruction insertion triggered by --enable-insert-sync.

For the same input file:

  • PTOAS v0.17 works
  • PTOAS v0.22 hangs indefinitely

The reporter can attach the exact .pto file after the issue is created.

Reproduction (minimal)

Run PTOAS with sync insertion enabled on the same input file:

ptoas build_output/GemmProgram_20260407_154637/ptoas/gemm_incore_0.pto \
  -o build_output/GemmProgram_20260407_154637/ptoas/gemm_incore_0.cpp \
  --enable-insert-sync \
  --pto-level=level3

Observed behavior:

  1. PTOAS v0.17 completes successfully
  2. PTOAS v0.22 hangs indefinitely on the same input

Current file path in the reporter workspace:

gemm_incore_0.pto.txt

The reporter can attach this file to the issue after creation.

Expected behavior

v0.22 should handle this input the same way as v0.17, or fail with a diagnostic. It should not hang.

Actual behavior / error logs

With --enable-insert-sync, v0.22 gets stuck on this input and does not finish. No useful diagnostic has been captured yet.

Environment

  • Host platform: Linux (aarch64)
  • Host kernel: Linux liteserver-hps-148e-00001 5.10.0-182.0.0.95.r1941_123.hce2.aarch64
  • Affected versions: v0.17 (good), v0.22 (hang)
  • Local PTOAS checkout HEAD: 602136d7cd271a787bbfb2cb150fcdb4d09ed10e

Metadata

Metadata

Labels

bugSomething isn't workingpypto

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions