[LLVM] Add new attribute optdebug to optimize for debugging (#66632)
This patch adds a new fn attribute, `optdebug`, that specifies that optimizations should make decisions that prioritize debug info quality, potentially at the cost of runtime performance. This patch does not add any functional changes triggered by this attribute, only the attribute itself. A subsequent patch will use this flag to disable the post-RA scheduler.
This commit is contained in:
1 parent
d0e8f3321e
commit
df3478e480
12 files changed
+42
-4
No files matched your search
@@ -1980,6 +1980,8 @@ static Attribute::AttrKind getAttrFromCode(uint64_t Code) {
|
||||
return Attribute::NoSanitizeCoverage;
|
||||
case bitc::ATTR_KIND_NULL_POINTER_IS_VALID:
|
||||
return Attribute::NullPointerIsValid;
|
||||
case bitc::ATTR_KIND_OPTIMIZE_FOR_DEBUGGING:
|
||||
return Attribute::OptimizeForDebugging;
|
||||
case bitc::ATTR_KIND_OPT_FOR_FUZZING:
|
||||
return Attribute::OptForFuzzing;
|
||||
case bitc::ATTR_KIND_OPTIMIZE_FOR_SIZE:
|
||||
|
||||
Reference in new issue
Block a user