https://gcc.gnu.org/bugzilla/show_bug.cgi?id=120358
--- Comment #24 from Sam James <sjames at gcc dot gnu.org> --- (In reply to Sam James from comment #11) > Created attachment 61749 [details] > small.cxx OK, on this, with a small adjustment to change the two ""s as args to char* str1, str2: --- a/small.cxx.057t.local-fnsummary2 +++ b/small.cxx.057t.local-fnsummary2 @@ -1795,7 +1795,6 @@ IPA function summary for ar<aq>::as ar<aq>::aw(ao) [with aq = QStringView]/104 i calls: long long int QtPrivate::ck(QStringView, long long int)/27 function not considered for inlining freq:0.41 loop depth: 0 size: 4 time: 13 callee size:12 stack: 0 predicate: (op1[offset: 32] >= 0) - op1 points to local or readonly memory struct as ar<QStringView>::aw (struct ar * const this, struct ao o) { @@ -1882,7 +1881,6 @@ IPA function summary for void ar<aq>::bc::operator++() [with aq = QStringView]/7 calls: long long int QtPrivate::ck(QStringView, long long int)/27 function not considered for inlining freq:0.41 loop depth: 0 size: 4 time: 13 callee size:12 stack: 0 predicate: (op0[ref offset: 256] >= 0) - op1 points to local or readonly memory void ar<QStringView>::bc::operator++ (struct bc * const this) { diff --git a/small.cxx.088i.fnsummary b/small.cxx.088i.fnsummary index 3b673e5..09d0885 100644 --- a/small.cxx.088i.fnsummary +++ b/small.cxx.088i.fnsummary @@ -233,7 +233,6 @@ IPA function summary for void ar<aq>::bc::operator++() [with aq = QStringView]/7 calls: long long int QtPrivate::ck(QStringView, long long int)/27 function not considered for inlining freq:0.41 loop depth: 0 size: 4 time: 13 predicate: (op0[ref offset: 256] >= 0) - op1 points to local or readonly memory Analyzing function: decltype (QtPrivate::dc<aq, dd>{0, l, df::t ...}) df(aq, dd, de ...) [with aq = QString; dd = int; de = {am, <unnamed enum>}]/72 --- a/small.cxx.088i.fnsummary +++ b/small.cxx.088i.fnsummary @@ -233,7 +233,6 @@ IPA function summary for void ar<aq>::bc::operator++() [with aq = QStringView]/7 calls: long long int QtPrivate::ck(QStringView, long long int)/27 function not considered for inlining freq:0.41 loop depth: 0 size: 4 time: 13 predicate: (op0[ref offset: 256] >= 0) - op1 points to local or readonly memory Analyzing function: decltype (QtPrivate::dc<aq, dd>{0, l, df::t ...}) df(aq, dd, de ...) [with aq = QString; dd = int; de = {am, <unnamed enum>}]/72 diff --git a/small.cxx.089i.inline b/small.cxx.089i.inline index c31c4f8..abe0280 100644 --- a/small.cxx.089i.inline +++ b/small.cxx.089i.inline @@ -182,7 +182,6 @@ IPA function summary for void ar<aq>::bc::operator++() [with aq = QStringView]/7 calls: long long int QtPrivate::ck(QStringView, long long int)/27 function not considered for inlining freq:0.41 loop depth: 0 size: 4 time: 13 callee size:12 stack: 0 predicate: (op0[ref offset: 256] >= 0) - op1 points to local or readonly memory IPA summary for bn< <template-parameter-1-1> >::~bn() [with ag = QString]/68 is missing. IPA function summary for bn< <template-parameter-1-1> >::~bn() [with ag = QString]/67 inlinable @@ -820,7 +819,7 @@ Updated mod-ref summary for int main()/52 Considering long long int QtPrivate::ck(QStringView, long long int)/27 with 24 size to be inlined into void ar<aq>::bc::operator++() [with aq = QStringView]/79 in small.cxx:177 Estimated badness is -0.000015, frequency 3.36. - Parm map: -1 -5 + Parm map: -1 -1 Updated mod-ref summary for int main()/52 loads: Base 0: alias set 8