[PATCH] D57430: Add enum values to CodeGenOpt::Level
Sam Clegg via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 29 17:44:29 PST 2019
sbc100 created this revision.
Herald added subscribers: llvm-commits, kristina, aheejin.
sbc100 updated this revision to Diff 184212.
sbc100 added a comment.
revert
The absolute values of this enum are important at least in that
they get printed by SelectionDAGISel. e.g:
`Before: -O2 ; After: -O0`
Repository:
rL LLVM
https://reviews.llvm.org/D57430
Files:
include/llvm/Support/CodeGen.h
Index: include/llvm/Support/CodeGen.h
===================================================================
--- include/llvm/Support/CodeGen.h
+++ include/llvm/Support/CodeGen.h
@@ -49,10 +49,10 @@
// Code generation optimization level.
namespace CodeGenOpt {
enum Level {
- None, // -O0
- Less, // -O1
- Default, // -O2, -Os
- Aggressive // -O3
+ None=0, // -O0
+ Less=1, // -O1
+ Default=2, // -O2, -Os
+ Aggressive=3 // -O3
};
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D57430.184212.patch
Type: text/x-patch
Size: 531 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190130/fcb3c8a8/attachment.bin>
More information about the llvm-commits
mailing list