-
Notifications
You must be signed in to change notification settings - Fork 14
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
No-op slices cause executables to drop outputs #496
Comments
We need to look at the Ir after We never discussed whether it's OK for a result or output arg to alias an input, but I would guess that it is not OK. therefore, we should be making a copy of I believe that this case is handled correctly in the case of |
@christopherbate Here's the IR after the
|
Ok. So if the
|
After discussing offline, we can fix this by adding an attribute to block arguments: |
If we have a no-op slice as follows:
MLIR-TRT correctly optimizes the generated StableHLO into an identity op, so we end up with:
After the bufferization passes, we have:
However, after the
DropEquivalentBufferResults
pass, we lose the function return value:The text was updated successfully, but these errors were encountered: