switch the inliner from being recursive to being iterative.