julia
4c805d23 - Stop setting force_noinline for function of union arguments (#27057)

Commit
5 years ago
Stop setting force_noinline for function of union arguments (#27057) 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.
Author
Parents
Loading