Skip to content

[WaveTransform] Fix FileCheck patterns for more tests#2691

Open
cdevadas wants to merge 3 commits into
amd-feature/wave-transformfrom
public/amd/dev/cdevadas/wave-transform/fix-more-control-flow-tests
Open

[WaveTransform] Fix FileCheck patterns for more tests#2691
cdevadas wants to merge 3 commits into
amd-feature/wave-transformfrom
public/amd/dev/cdevadas/wave-transform/fix-more-control-flow-tests

Conversation

@cdevadas

@cdevadas cdevadas commented May 27, 2026

Copy link
Copy Markdown

Fixed the check patterns for some more control flow tests
when enabled the wave transform flow.

Tests fixed in this commit:

  • mdt-preserving-crash.ll
  • memcpy-crash-issue63986.ll
  • memmove-var-size.ll
  • memory-legalizer-single-wave-workgroup-memops.ll
  • memset-param-combinations.ll
  • memset-pattern.ll
  • mfma-loop.ll
  • mfma-no-register-aliasing.ll
  • misaligned-vgpr-regsequence.mir
  • mmra.ll

Disabled late wave transform:

  • lower-control-flow-live-variables-update.xfail.mir.
    Disabled wave transform (-amdgpu-late-wave-transform=0)
    since test expects legacy SI_IF/SI_END_CF pseudos which
    are incompatible with wave transform.

@z1-cciauto

Copy link
Copy Markdown
Collaborator

@lalaniket8

Copy link
Copy Markdown

There seems to be overlap in tests covered in PR #2625

@cdevadas cdevadas force-pushed the public/amd/dev/cdevadas/wave-transform/fix-more-control-flow-tests branch from bcf113d to d582358 Compare May 27, 2026 17:31
@cdevadas

Copy link
Copy Markdown
Author

There seems to be overlap in tests covered in PR #2625

Removed the duplicates in the new commit.

@z1-cciauto

Copy link
Copy Markdown
Collaborator

@cdevadas cdevadas force-pushed the public/amd/dev/cdevadas/wave-transform/fix-more-control-flow-tests branch from d582358 to 26d0c43 Compare June 4, 2026 13:57
@rocm-cciapp

rocm-cciapp Bot commented Jun 4, 2026

Copy link
Copy Markdown

@cdevadas cdevadas force-pushed the public/amd/dev/cdevadas/wave-transform/fix-more-control-flow-tests branch from 26d0c43 to 0fb0ebd Compare June 9, 2026 16:11
@rocm-cciapp

rocm-cciapp Bot commented Jun 9, 2026

Copy link
Copy Markdown

Comment on lines +7 to +10
# CHECK: v_mov_b64_e32 v[0:1], 0
# CHECK: v_mov_b32_e32 v6, v1
# CHECK: v_mov_b32_e32 v4, 0
# CHECK: v_mov_b32_e32 v5, 0
# CHECK: v_mov_b32_e32 v6, 0
# CHECK: v_mov_b32_e32 v5, v0

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Extra v_mov operation generated since VGPR allocation is reordered and runs under VGPR partitioning, so %4 lands in an aligned pair (v[0:1]) instead of being assigned the misaligned v[5:6] slot directly — forcing v_mov_b64 + two copies instead of an in-place 2×v_mov_b32 expansion.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ya, such discrepancies would occur now. They are acceptable due to the pipeline changes. We should later analyze them if something can be done to avoid such scenarios. But not now.

@cdevadas cdevadas force-pushed the public/amd/dev/cdevadas/wave-transform/fix-more-control-flow-tests branch from 0fb0ebd to 6494265 Compare June 15, 2026 06:33
@rocm-cciapp

rocm-cciapp Bot commented Jun 15, 2026

Copy link
Copy Markdown

cdevadas added 3 commits June 27, 2026 13:21
Fixed the check patterns for some more control flow tests
when enabled the wave transform flow.

Tests fixed in this commit:
- mdt-preserving-crash.ll
- memcpy-crash-issue63986.ll
- memmove-var-size.ll
- memory-legalizer-single-wave-workgroup-memops.ll
- memset-param-combinations.ll
- memset-pattern.ll
- mfma-loop.ll
- mfma-no-register-aliasing.ll
- misaligned-vgpr-regsequence.mir
- mmra.ll

Disabled late wave transform:
- lower-control-flow-live-variables-update.xfail.mir.
  Disabled wave transform (-amdgpu-late-wave-transform=0)
  since test expects legacy SI_IF/SI_END_CF pseudos which
  are incompatible with wave transform.
@cdevadas cdevadas force-pushed the public/amd/dev/cdevadas/wave-transform/fix-more-control-flow-tests branch from 6494265 to ca59f2e Compare June 27, 2026 14:05
@rocm-cciapp

rocm-cciapp Bot commented Jun 27, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants