d599485e06
Imported from GitHub PR https://github.com/tensorflow/tensorflow/pull/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 <ehsan.nadjaran_toosi@dfki.de>: [hlo] Unbreak hlo-legalize-to-lhlo test COPYBARA_INTEGRATE_REVIEW=https://github.com/tensorflow/tensorflow/pull/43069 from dfki-ehna:fix_hlo_legalize_to_lhlo_test 8be0435b0147263c3872bedec58fd215f784b450 PiperOrigin-RevId: 330907602 |
||
---|---|---|
.. | ||
IR | ||
transforms | ||
CMakeLists.txt |