Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Select callee entry for inlining even if guard may fail when there's …
…a single candidate Summary: When a function argument's type is relaxed (eg, because it's simply loaded from a local) but the callee guards on a specific type, the JIT would refuse inlining because the argument type was not a subtype of the guarded type in the callee. This diff relaxes that condition by searching for all entry blocks where the guards may succeed (ie, if the argument type intersects the callee's guarded type) and, in case there's only one such block, selecting that one. Reviewed By: mofarrell Differential Revision: D15640002 fbshipit-source-id: d6dff01ecbe38bbf60daf0c5c3f2457a710f46a3
- Loading branch information