-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop setting force_noinline for function of union arguments
The original motivation for setting force_noinline for functions with union arguments seems to have been bugs in type intersection. However, the type system has improved quite a bit and at least in the test suites we don't seem to run into any issues. Thus, we can stop setting force_noinline. Nevertheless, it still make since to penalize functions with union arguments. Doing so encourages union splits to happen at the call site, rather than having multiple redundant union splits inside the function. However, for simple functions of intrinsics and builtins it can make a lot of sense to inline the union split signature.
- Loading branch information
Showing
2 changed files
with
24 additions
and
14 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