[PATCH] D28404: IRGen: Add optnone attribute on function during O0
Mehdi AMINI via Phabricator via cfe-commits
cfe-commits at lists.llvm.org
Fri Jan 6 13:08:20 PST 2017
mehdi_amini added a comment.
In https://reviews.llvm.org/D28404#638217, @probinson wrote:
> Maybe instead, pass a flag to enable setting optnone on everything when the driver sees `-O0 -flto`?
I'm not fond of this: limiting discrepancy between LTO and non-LTO reduces the LTO specific bugs and reduces the maintenance of LTO.
> The patch as-is obviously has a massive testing cost, and it's easy to imagine people being tripped up by this in the future.
Can you clarify what massive testing cost you're referring to?
https://reviews.llvm.org/D28404
More information about the cfe-commits
mailing list