[PATCH] D27722: [GVNHoist] Move GVNHoist to function simplification part of pipeline.

Sebastian Pop via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 13 12:06:51 PST 2016

On Tue, Dec 13, 2016 at 1:59 PM, Hal Finkel <hfinkel at anl.gov> wrote:
> Broader topic, but shouldn't we run a full function-simplification pipeline before inlining?
> That seems necessary in order to generate good inline cost estimates.

Yes, exactly, that makes the code smaller, and avoids having to do the same
transform again and again on the inlined code, so it saves compilation time.
That's also why we run a few code compression passes like cfg-simplify and
early-cse before inline.

More information about the llvm-commits mailing list