From 0983125d2d9aa577fdaa78fd55981f066fdcf2e2 Mon Sep 17 00:00:00 2001 From: "Wolfgang (Blub) Bumiller" Date: Fri, 30 Nov 2012 11:47:35 +0100 Subject: [PATCH] print the number of performed optimizations after compiling --- main.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/main.c b/main.c index db9f2b8..9d9c5f3 100644 --- a/main.c +++ b/main.c @@ -686,6 +686,14 @@ srcdone: /* stuff */ + if (!opts_pp_only) { + for (itr = 0; itr < COUNT_OPTIMIZATIONS; ++itr) { + if (optimization_count[itr]) { + con_out("%s: %u\n", opts_opt_list[itr].name, (unsigned int)optimization_count[itr]); + } + } + } + cleanup: util_debug("COM", "cleaning ...\n"); ftepp_finish();