-
Notifications
You must be signed in to change notification settings - Fork 183
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[XLS] Fix proc-state-legalization for state-reads that influence next…
…_values If a next-value (state write)'s predicate depends on the read of that same state element, we would previously add the predicate to the state read - introducing a cycle in the graph, and causing codegen to fail with an error. To fix this, we automatically use a variant of the write's predicate, removing all dependency on the state read's value, but guaranteeing that the new predicate is true whenever the original expression would have been true. PiperOrigin-RevId: 719457555
- Loading branch information
1 parent
14e095b
commit 3466ae5
Showing
5 changed files
with
491 additions
and
35 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.