HomePhabricator

Add support for canonicalizing callable regions during inlining.

Authored by rriddle on Oct 10 2019, 12:12 PM.

Description

Add support for canonicalizing callable regions during inlining.

This will allow for inlining newly devirtualized calls, as well as give a more accurate cost model(when we have one). Currently canonicalization will only run for nodes that have no child edges, as the child nodes may be erased during canonicalization. We can support this in the future, but it requires more intricate deletion tracking.

PiperOrigin-RevId: 274011386

Details