-
-
Notifications
You must be signed in to change notification settings - Fork 121
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[jit] Refine Type of CondBranchCheckType When Its Branch Leads to Unr…
…eachable Summary: For example, in this program: ``` bb 0 { v0:Object = LoadArg<0> CondBranchCheckType<1, 2, TupleExact> v0 } bb 1 { ... } bb 2 { Unreachable } ``` We know that because `bb 2` is unreachable, `v0` must be a `TupleExact`. This diff inserts a `RefineType<TupleExact> v0` before the `Branch` that replaces the `CondBranchCheckType`. And if `bb 1` had been unreachable, the `RefineType `would be for `Object - TupleExact`. Test Plan: unit tests Reviewers: bsimmers, emacs, #cinderjit Reviewed By: bsimmers Differential Revision: https://phabricator.intern.facebook.com/D41747741 Tasks: T138210636 Tags: cinder-310-exclusive LaMa Project: L1125187
- Loading branch information
Showing
2 changed files
with
123 additions
and
6 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