RE: [PATCH] D28404: IRGen: Add optnone attribute on function during O0

2017-01-09 Thread Robinson, Paul via cfe-commits
s.llvm.org > Cc: nhaeh...@gmail.com; wei.di...@amd.com; jholewin...@nvidia.com; Richard > Smith; cfe-commits; Peter Collingbourne > Subject: Re: [PATCH] D28404: IRGen: Add optnone attribute on function > during O0 > > This seems like a massive rehash of a discussion Peter Collingbourne

Re: [PATCH] D28404: IRGen: Add optnone attribute on function during O0

2017-01-09 Thread Duncan P. N. Exon Smith via cfe-commits
This seems like a massive rehash of a discussion Peter Collingbourne and I had about passing -O0 to the linker for -flto=full. I had previously thought of LTO as "link time optimization", but in practice it's useful for (and required for correctness of some) non-optimization IR passes. In othe