Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Incorrect Loop Transform #33

Open
TiemoJung opened this issue Mar 22, 2018 · 1 comment
Open

Incorrect Loop Transform #33

TiemoJung opened this issue Mar 22, 2018 · 1 comment

Comments

@TiemoJung
Copy link

TiemoJung commented Mar 22, 2018

Hi,

we found a quite tricky case where the loop transform and/or variable remapping just fails.
Consider this:

loop
   ige r2.z, r2.y, r0.w
   breakc_nz r2.z
   lt r2.z, cb0[[r2 + 16]].z, l(0)
   .....
   if_nz r2.z
     iadd r2.z, r2.y, l(1)
    .....
     mov r2.y, r2.z
   endif
   iadd r2.y, r2.y, l(1)
endloop

The move at the end of the if block gets turned into a write to a temp that is never used so the iadd r2z, r2.y, l(1) is lost.

@aet
Copy link
Contributor

aet commented Dec 27, 2018

Hi @TiemoJung, could you provide HLSL that triggers this? There's been another upstream merge into Github, if you have time to go through your existing issues to see if some of them are still valid or resolved? Thanks

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

No branches or pull requests

2 participants