Add NeverOptimizeNone to facilitate removing OptimizeNone. This allows
us to remove OptimizeNone even if -O0 is passed on the cmdline. This patch
is needed for D125723 to allow removing OptimizeNone from a function.
Details
Details
- Reviewers
aaron.ballman arsenm
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
clang/lib/CodeGen/CodeGenModule.cpp | ||
---|---|---|
1934 | I still think adding optnone to everything at -O0 is a bad idea in the first place, and the optimization level should not be encoded in the IR |
I still think adding optnone to everything at -O0 is a bad idea in the first place, and the optimization level should not be encoded in the IR