Merge "Move optimizations out of HInliner::TryBuildAndInlineHelper."