forked from dotnet/runtime
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove duplication and a couple of goto's from `fgRemoveDeadStore`. This part was very confusing: ` /* If this is GT_CATCH_ARG saved to a local var don't bother */ JITDUMP("removing stmt with no side effects\n"); if (asgNode->gtFlags & GTF_ORDER_SIDEEFF) { if (rhsNode->gtOper == GT_CATCH_ARG) { goto EXTRACT_SIDE_EFFECTS; } } ` The `goto` was to the preceding `if` and was useless since the call to `gtExtractSideEffList(rhsNode, &sideEffList);` couldn't possibly find side effects because we already checked that `rhsNode->gtFlags & GTF_SIDE_EFFECT == 0`. Commit migrated from dotnet/coreclr@dc389a8
- Loading branch information
1 parent
9d42c65
commit f349a2c
Showing
1 changed file
with
57 additions
and
113 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