8325159: C2 SuperWord: measure time for CITime
Reviewed-by: rcastanedalo, kvn
This commit is contained in:
parent
8796f43c6c
commit
85e320121e
src/hotspot/share/opto
@ -37,6 +37,7 @@
|
||||
#include "opto/mulnode.hpp"
|
||||
#include "opto/movenode.hpp"
|
||||
#include "opto/opaquenode.hpp"
|
||||
#include "opto/phase.hpp"
|
||||
#include "opto/predicates.hpp"
|
||||
#include "opto/rootnode.hpp"
|
||||
#include "opto/runtime.hpp"
|
||||
@ -1101,6 +1102,8 @@ void IdealLoopTree::policy_unroll_slp_analysis(CountedLoopNode *cl, PhaseIdealLo
|
||||
// Enable this functionality target by target as needed
|
||||
if (SuperWordLoopUnrollAnalysis) {
|
||||
if (!cl->was_slp_analyzed()) {
|
||||
Compile::TracePhase tp("autoVectorize", &Phase::timers[Phase::_t_autoVectorize]);
|
||||
|
||||
SuperWord sw(phase);
|
||||
sw.transform_loop(this, false);
|
||||
|
||||
|
@ -4865,6 +4865,7 @@ void PhaseIdealLoop::build_and_optimize() {
|
||||
|
||||
// Convert scalar to superword operations at the end of all loop opts.
|
||||
if (C->do_superword() && C->has_loops() && !C->major_progress()) {
|
||||
Compile::TracePhase tp("autoVectorize", &timers[_t_autoVectorize]);
|
||||
// SuperWord transform
|
||||
SuperWord sw(this);
|
||||
for (LoopTreeIterator iter(_ltree_root); !iter.done(); iter.next()) {
|
||||
|
@ -81,6 +81,7 @@ void Phase::print_timers() {
|
||||
tty->print_cr (" Prune Useless: %7.3f s", timers[_t_vector_pru].seconds());
|
||||
tty->print_cr (" Renumber Live: %7.3f s", timers[_t_renumberLive].seconds());
|
||||
tty->print_cr (" IdealLoop: %7.3f s", timers[_t_idealLoop].seconds());
|
||||
tty->print_cr (" AutoVectorize: %7.3f s", timers[_t_autoVectorize].seconds());
|
||||
tty->print_cr (" IdealLoop Verify: %7.3f s", timers[_t_idealLoopVerify].seconds());
|
||||
tty->print_cr (" Cond Const Prop: %7.3f s", timers[_t_ccp].seconds());
|
||||
tty->print_cr (" GVN 2: %7.3f s", timers[_t_iterGVN2].seconds());
|
||||
|
@ -82,6 +82,7 @@ public:
|
||||
_t_vector_pru,
|
||||
_t_renumberLive,
|
||||
_t_idealLoop,
|
||||
_t_autoVectorize,
|
||||
_t_idealLoopVerify,
|
||||
_t_ccp,
|
||||
_t_iterGVN2,
|
||||
|
Loading…
x
Reference in New Issue
Block a user