[PATCH] D28053: Cleanup the handling of noinline function attributes, -fno-inline, -fno-inline-functions, -O0, and optnone.
Mehdi AMINI via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Thu Dec 22 10:15:54 PST 2016
mehdi_amini added inline comments.
================
Comment at: lib/Frontend/CompilerInvocation.cpp:453
+ // There is no effect at O0 when we won't inline anyways.
+ if (Opts.OptimizationLevel > 1) {
+ const Option &InlineOpt = InlineArg->getOption();
----------------
I'd switch the two if
https://reviews.llvm.org/D28053
More information about the cfe-commits
mailing list