This patch ports various fprintf calls in the inlining code to using the dump API, using the %C format code for printing cgraph_node *. I focussed on the dump messages that seemed most significant to end-users; I didn't port all of the calls. Doing so makes this information appear in -fopt-info and in optimization records, rather than just in the dump_file. It also changes the affected dumpfile-dumps from being unconditional (assuming the dump_file is enabled) to being guarded by the MSG_* status. Hence various tests with dg-final scan-*-dump directives need to gain "-all" or "-optimized" suffixes to -fdump-ipa-inline. The use of %C throughout also slightly changes the dump format for several messages, e.g. changing: Inlining void inline_me(char*) into int main(int, char**). to: ../../src/gcc/testsuite/g++.dg/tree-ssa/inline-1.C:13:8: optimized: Inlining void inline_me(char*)/0 into int main(int, char**)/2. amongst other things adding "/order" suffixes to the cgraph node names. gcc/ChangeLog: PR ipa/86395 * doc/invoke.texi (-fdump-ipa-): Document the "-optimized", "-missed", "-note", and "-all" sub-options. * ipa-inline.c (caller_growth_limits): Port from fprintf to dump API. (can_early_inline_edge_p): Likewise. (want_early_inline_function_p): Likewise. (want_inline_self_recursive_call_p): Likewise. (recursive_inlining): Likewise. (inline_small_functions): Likewise. (flatten_function): Likewise. (ipa_inline): Likewise. (inline_always_inline_functions): Likewise. (early_inline_small_functions): Likewise. (early_inliner): Likewise. * tree-inline.c (expand_call_inline): Likewise. gcc/testsuite/ChangeLog: PR ipa/86395 * g++.dg/ipa/devirt-12.C: Add "-all" suffix to "-fdump-ipa-inline". * g++.dg/ipa/imm-devirt-1.C: Add "-optimized" suffix to "-fdump-tree-einline". * g++.dg/tree-prof/inline_mismatch_args.C: Add "-all" suffix to "-fdump-tree-einline". * g++.dg/tree-ssa/inline-1.C: Add "-optimized" suffix to "-fdump-tree-einline". * g++.dg/tree-ssa/inline-2.C: Likewise. * g++.dg/tree-ssa/inline-3.C: Likewise. * g++.dg/tree-ssa/inline-4.C: New test, based on inline-1.C, but using "-fopt-info-inline". * gcc.dg/ipa/fopt-info-inline-1.c: New test. * gcc.dg/ipa/inline-4.c: Add "-all" suffix to "-fdump-ipa-inline". Add "-fopt-info-inline" and dg-optimized directive. * gcc.dg/ipa/inline-7.c: Add "-optimized" suffix to "-fdump-tree-einline". Add "-fopt-info-inline" and dg-optimized directive. Update scan-tree-dump-times to reflect /order suffixes. * gcc.dg/ipa/inlinehint-4.c: Update scan-tree-dump-times to reflect /order suffixes. * gcc.dg/plugin/dump-1.c: Add "-loop" to "-fopt-info-note" to avoid getting extra messages from inliner. * gcc.dg/plugin/dump-2.c: Likewise. * gcc.dg/pr26570.c: Add dg-prune-output to ignore new "function body not available" missed optimization messages. * gcc.dg/pr71969-2.c: Update scan-tree-dump-times to reflect /order suffixes. * gcc.dg/pr71969-3.c: Likewise. * gcc.dg/tree-ssa/inline-11.c: Add "-all" suffix to "-fdump-tree-einline". * gcc.dg/tree-ssa/inline-3.c: Add "-optimized" suffix to "-fdump-tree-einline". Update scan-tree-dump-times to reflect /order suffixes. * gcc.dg/tree-ssa/inline-4.c: Add "-optimized" suffix to "-fdump-tree-einline". Add "-fopt-info-inline" and dg-optimized directive. * gcc.dg/tree-ssa/inline-8.c: Add "-optimized" suffix to "-fdump-tree-einline". * gfortran.dg/pr79966.f90: Update scan-ipa-dump to reflect /order suffixes. From-SVN: r265920
Name |
Last commit
|
Last update |
---|---|---|
.. | ||
20090113-1.C | Loading commit data... | |
comdat.C | Loading commit data... | |
devirt-1.C | Loading commit data... | |
devirt-10.C | Loading commit data... | |
devirt-11.C | Loading commit data... | |
devirt-12.C | Loading commit data... | |
devirt-13.C | Loading commit data... | |
devirt-14.C | Loading commit data... | |
devirt-15.C | Loading commit data... | |
devirt-16.C | Loading commit data... | |
devirt-17.C | Loading commit data... | |
devirt-18.C | Loading commit data... | |
devirt-19.C | Loading commit data... | |
devirt-2.C | Loading commit data... | |
devirt-20.C | Loading commit data... | |
devirt-21.C | Loading commit data... | |
devirt-22.C | Loading commit data... | |
devirt-23.C | Loading commit data... | |
devirt-24.C | Loading commit data... | |
devirt-25.C | Loading commit data... | |
devirt-26.C | Loading commit data... | |
devirt-27.C | Loading commit data... | |
devirt-28.C | Loading commit data... | |
devirt-28a.C | Loading commit data... | |
devirt-29.C | Loading commit data... | |
devirt-3.C | Loading commit data... | |
devirt-30.C | Loading commit data... | |
devirt-31.C | Loading commit data... | |
devirt-32.C | Loading commit data... | |
devirt-33.C | Loading commit data... | |
devirt-34.C | Loading commit data... | |
devirt-35.C | Loading commit data... | |
devirt-36.C | Loading commit data... | |
devirt-37.C | Loading commit data... | |
devirt-38.C | Loading commit data... | |
devirt-39.C | Loading commit data... | |
devirt-4.C | Loading commit data... | |
devirt-40.C | Loading commit data... | |
devirt-41.C | Loading commit data... | |
devirt-42.C | Loading commit data... | |
devirt-43.C | Loading commit data... | |
devirt-44.C | Loading commit data... | |
devirt-45.C | Loading commit data... | |
devirt-46.C | Loading commit data... | |
devirt-47.C | Loading commit data... | |
devirt-48.C | Loading commit data... | |
devirt-49.C | Loading commit data... | |
devirt-5.C | Loading commit data... | |
devirt-50.C | Loading commit data... | |
devirt-51.C | Loading commit data... | |
devirt-52.C | Loading commit data... | |
devirt-6.C | Loading commit data... | |
devirt-7.C | Loading commit data... | |
devirt-9.C | Loading commit data... | |
devirt-c-1.C | Loading commit data... | |
devirt-c-2.C | Loading commit data... | |
devirt-c-3.C | Loading commit data... | |
devirt-c-4.C | Loading commit data... | |
devirt-c-5.C | Loading commit data... | |
devirt-c-6.C | Loading commit data... | |
devirt-c-7.C | Loading commit data... | |
devirt-c-8.C | Loading commit data... | |
devirt-d-1.C | Loading commit data... | |
devirt-g-1.C | Loading commit data... | |
iinline-1.C | Loading commit data... | |
iinline-2.C | Loading commit data... | |
iinline-3.C | Loading commit data... | |
imm-devirt-1.C | Loading commit data... | |
imm-devirt-2.C | Loading commit data... | |
inline-1.C | Loading commit data... | |
inline-2.C | Loading commit data... | |
inline-3.C | Loading commit data... | |
ipa-icf-1.C | Loading commit data... | |
ipa-icf-2.C | Loading commit data... | |
ipa-icf-3.C | Loading commit data... | |
ipa-icf-4.C | Loading commit data... | |
ipa-icf-5.C | Loading commit data... | |
ipa-icf-6.C | Loading commit data... | |
ipa-pta-1.C | Loading commit data... | |
ipa-pta-2.C | Loading commit data... | |
ivinline-1.C | Loading commit data... | |
ivinline-2.C | Loading commit data... | |
ivinline-3.C | Loading commit data... | |
ivinline-4.C | Loading commit data... | |
ivinline-5.C | Loading commit data... | |
ivinline-7.C | Loading commit data... | |
ivinline-8.C | Loading commit data... | |
ivinline-9.C | Loading commit data... | |
nothrow-1.C | Loading commit data... | |
polymorphic-call-1.C | Loading commit data... | |
pr43695.C | Loading commit data... | |
pr43812.C | Loading commit data... | |
pr44372.C | Loading commit data... | |
pr45565.C | Loading commit data... | |
pr45572-1.C | Loading commit data... | |
pr45572-2.C | Loading commit data... | |
pr45875.C | Loading commit data... | |
pr46053.C | Loading commit data... | |
pr46287-1.C | Loading commit data... | |
pr46287-2.C | Loading commit data... | |
pr46287-3.C | Loading commit data... | |
pr46984.C | Loading commit data... | |
pr50605.C | Loading commit data... | |
pr51759.C | Loading commit data... | |
pr51929.C | Loading commit data... | |
pr52939.C | Loading commit data... | |
pr55264.C | Loading commit data... | |
pr56310.C | Loading commit data... | |
pr57670.C | Loading commit data... | |
pr58371.C | Loading commit data... | |
pr59176.C | Loading commit data... | |
pr59355.C | Loading commit data... | |
pr59737.C | Loading commit data... | |
pr60419.C | Loading commit data... | |
pr60457.C | Loading commit data... | |
pr60600.C | Loading commit data... | |
pr60640-1.C | Loading commit data... | |
pr60640-2.C | Loading commit data... | |
pr60640-3.C | Loading commit data... | |
pr60640-4.C | Loading commit data... | |
pr61085.C | Loading commit data... | |
pr61160-1.C | Loading commit data... | |
pr61160-2.C | Loading commit data... | |
pr61160-3.C | Loading commit data... | |
pr61540.C | Loading commit data... | |
pr61654.C | Loading commit data... | |
pr61800.C | Loading commit data... | |
pr62015.C | Loading commit data... | |
pr63306.C | Loading commit data... | |
pr63470.C | Loading commit data... | |
pr63551.C | Loading commit data... | |
pr63574.C | Loading commit data... | |
pr63580.C | Loading commit data... | |
pr63587-1.C | Loading commit data... | |
pr63587-2.C | Loading commit data... | |
pr63595.C | Loading commit data... | |
pr63621.C | Loading commit data... | |
pr63814.C | Loading commit data... | |
pr63838.C | Loading commit data... | |
pr63894.C | Loading commit data... | |
pr64049-1.C | Loading commit data... | |
pr64049-2.C | Loading commit data... | |
pr64049.h | Loading commit data... | |
pr64059.C | Loading commit data... | |
pr64068.C | Loading commit data... | |
pr64146.C | Loading commit data... | |
pr64612.C | Loading commit data... | |
pr64858.C | Loading commit data... | |
pr64896.C | Loading commit data... | |
pr65002.C | Loading commit data... | |
pr65008.C | Loading commit data... | |
pr65034.C | Loading commit data... | |
pr65263.C | Loading commit data... | |
pr65465.C | Loading commit data... | |
pr65557.C | Loading commit data... | |
pr65722.C | Loading commit data... | |
pr65765.C | Loading commit data... | |
pr65908.C | Loading commit data... | |
pr66616.C | Loading commit data... | |
pr66896.C | Loading commit data... | |
pr67056.C | Loading commit data... | |
pr68672-1.C | Loading commit data... | |
pr68672-2.C | Loading commit data... | |
pr68672-3.C | Loading commit data... | |
pr68851.C | Loading commit data... | |
pr69239.C | Loading commit data... | |
pr69241-1.C | Loading commit data... | |
pr69241-2.C | Loading commit data... | |
pr69241-3.C | Loading commit data... | |
pr69241-4.C | Loading commit data... | |
pr69649.C | Loading commit data... | |
pr71146.C | Loading commit data... | |
pr71207.C | Loading commit data... | |
pr77333.C | Loading commit data... | |
pr77905.C | Loading commit data... | |
pr78188.C | Loading commit data... | |
pr78211.C | Loading commit data... | |
pr79776.C | Loading commit data... | |
pr79931.C | Loading commit data... | |
pr80205.C | Loading commit data... | |
pr81248.C | Loading commit data... | |
pr81261.C | Loading commit data... | |
pr82352.C | Loading commit data... | |
pr82801.C | Loading commit data... | |
pr83549.C | Loading commit data... | |
pr83667.C | Loading commit data... | |
pr84658.C | Loading commit data... | |
pr84825.C | Loading commit data... | |
pr85421.C | Loading commit data... | |
pr85447.C | Loading commit data... | |
pr85549.C | Loading commit data... | |
pr85607.C | Loading commit data... | |
pr86323.C | Loading commit data... | |
pr86529.C | Loading commit data... | |
pure-const-1.C | Loading commit data... | |
pure-const-2.C | Loading commit data... | |
pure-const-3.C | Loading commit data... | |
remref-1.C | Loading commit data... | |
remref-2.C | Loading commit data... | |
type-inheritance-1.C | Loading commit data... |