Skip to content

[pull] master from tensorflow:master#786

Merged
pull[bot] merged 3 commits intoakram:masterfrom
tensorflow:master
Dec 5, 2019
Merged

[pull] master from tensorflow:master#786
pull[bot] merged 3 commits intoakram:masterfrom
tensorflow:master

Conversation

@pull
Copy link
Copy Markdown

@pull pull bot commented Dec 5, 2019

See Commits and Changes for more details.


Created by pull[bot]. Want to support this open source service? Please star it : )

joker-eph and others added 3 commits December 5, 2019 04:36
The getMainJITDylib() method was removed in 4fc68b9b7f, replace it by creating a JITDylib on the fly.

PiperOrigin-RevId: 283948595
Change-Id: Ib6b6933188e5e36bced2be03a5fe08cb41101cf0
For serialization, when we have nested ops, the inner loop will create multiple
SPIR-V blocks. If the outer loop has block arguments (which corresponds to
OpPhi instructions), we defer the handling of OpPhi's parent block handling
until we serialized all blocks and then fix it up with the result <id>. These two
cases happening together was generating invalid SPIR-V blob because we
previously assume the parent block to be the block containing the terminator.
That is not true anymore when the block contains structured control flow ops.
If that happens, it should be fixed to use the structured control flow op's
merge block.

For deserialization, we record a map from header blocks to their corresponding
merge and continue blocks during the initial deserialization and then use the
info to construct spv.selection/spv.loop. The existing implementation will also
fall apart when we have nested loops. If so, we clone all blocks for the outer
loop, including the ones for the inner loop, to the spv.loop's region. So the map
for header blocks' merge info need to be updated; otherwise we are operating
on already deleted blocks.

PiperOrigin-RevId: 283949230
Change-Id: I3bc26d671073d6d704f4b5eda3e1e3bab05cd803
PiperOrigin-RevId: 283949442
Change-Id: I6a18e5ac36f99749294aab6d7b24b2f02f2ecaae
@pull pull bot added the ⤵️ pull label Dec 5, 2019
@pull pull bot merged commit 5aa0256 into akram:master Dec 5, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants