================
@@ -1864,7 +1864,8 @@ bool TargetInstrInfo::isFunctionSafeToSplit(const
MachineFunction &MF) const {
// or functions of unknown hotness. Lukewarm functions have no prefix.
std::optional<StringRef> SectionPrefix = MF.getFunction().getSectionPrefix();
if (SectionPrefix &&
- (*SectionPrefix == "unlikely" || *SectionPrefix == "unknown")) {
+ (*SectionPrefix == "unlikely" || *SectionPrefix == "unknown" ||
+ *SectionPrefix == "startup" || *SectionPrefix == "exit")) {
----------------
efriedma-quic wrote:
Missing test coverage for this change.
https://github.com/llvm/llvm-project/pull/200221
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits