-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Change PeepholeRemoveDeadCode to stop asserting that the AST is norma…
…lized. The pass runs both before and after denormalize. So it’s a bug that the pass unconditionally asserts that the AST is normalized. This CL deletes the check. Alternatively, even just guarding the check with `isASTNormalized` would works - http://sponge2/c65113df-4f96-4148-9400-6f551562349c ``` if (!isASTNormalized()) { // the pass is running after denormalize return subtree; } throw checkNormalization(false, "WHILE"); ``` PiperOrigin-RevId: 561471939
- Loading branch information
1 parent
334e0b6
commit 4fbcc71
Showing
2 changed files
with
7 additions
and
8 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