-
-
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.
Refine Type of CondBranchCheckType When Its Branch Leads to Unreachable
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`. Reviewed By: swtaarrs Differential Revision: D41747741 fbshipit-source-id: 9714c75
- Loading branch information
1 parent
15df819
commit e9c14b0
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