Ignore "no-frame-pointer-elim" and "no-frame-pointer-elim-non-leaf" in favor of "frame-pointer"

D56351 (included in LLVM 8.0.0) introduced "frame-pointer".  All tests
which use "no-frame-pointer-elim" or "no-frame-pointer-elim-non-leaf"
have been migrated to use "frame-pointer".

Implement UpgradeFramePointerAttributes to upgrade the two obsoleted
function attributes for bitcode. Their semantics are ignored.

Differential Revision: https://reviews.llvm.org/D71863
This commit is contained in:
Fangrui Song
2019-12-24 18:12:15 -08:00
parent ee3eebba0d
commit 03b9f0a5e1
6 changed files with 65 additions and 13 deletions

View File

@@ -1661,6 +1661,7 @@ Error BitcodeReader::parseAttributeGroupBlock() {
}
}
UpgradeFramePointerAttributes(B);
MAttributeGroups[GrpID] = AttributeList::get(Context, Idx, B);
break;
}