Repository navigation
[hlo] Unbreak hlo-legalize-to-lhlo test - #43069
Merged
tensorflow-copybara merged 1 commit intoSep 10, 2020
Merged
tensorflow-copybara merged 1 commit into
tensorflow-copybara merged 1 commit into
Conversation
pifon2a
previously approved these changes
Sep 9, 2020
|
Please resolve conflicts with the recent LLVM integrate. |
ehsan-nt
force-pushed
the
fix_hlo_legalize_to_lhlo_test
branch
from
September 9, 2020 15:31
a4f946a to
e39f1aa
Compare
sherhut
suggested changes
Sep 9, 2020
sherhut
left a comment
There was a problem hiding this comment.
Please also fix the style. Sorry, I missed this the first time round.
ehsan-nt
force-pushed
the
fix_hlo_legalize_to_lhlo_test
branch
from
September 10, 2020 08:41
e39f1aa to
8be0435
Compare
copybara-service Bot
pushed a commit
to tensorflow/mlir-hlo
that referenced
this pull request
Sep 10, 2020
Imported from GitHub PR tensorflow/tensorflow#43069 The legalization of mlhlo.ReturnOp to lhlo.TerminatorOp by using BufferAssignmentReturnOpConverter fails since the Memref typed results (or the Memref typed operands of Return operation) are set to stay as results after legalization but lhlo.TerminatorOp doesn't accept any operands. Therefore, BufferAssignmentReturnOpConverter must be replaced with a manual conversion that removes all operands of mlhlo.ReturnOp and inserts copy operations in their places. Copybara import of the project: -- 8be0435b0147263c3872bedec58fd215f784b450 by Ehsan Toosi <[email protected]>: [hlo] Unbreak hlo-legalize-to-lhlo test COPYBARA_INTEGRATE_REVIEW=tensorflow/tensorflow#43069 from dfki-ehna:fix_hlo_legalize_to_lhlo_test 8be0435b0147263c3872bedec58fd215f784b450 PiperOrigin-RevId: 330907602
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The legalization of mlhlo.ReturnOp to lhlo.TerminatorOp by using BufferAssignmentReturnOpConverter fails since the Memref typed results (or the Memref typed operands of Return operation) are set to stay as results after legalization but lhlo.TerminatorOp doesn't accept any operands. Therefore, BufferAssignmentReturnOpConverter must be replaced with a manual conversion that removes all operands of mlhlo.ReturnOp and inserts copy operations in their places.