< prev index next >

src/share/vm/opto/loopnode.cpp

Print this page




1884     }
1885   }
1886   if (_head->is_CountedLoop()) {
1887     CountedLoopNode *cl = _head->as_CountedLoop();
1888     tty->print(" counted");
1889 
1890     Node* init_n = cl->init_trip();
1891     if (init_n  != NULL &&  init_n->is_Con())
1892       tty->print(" [%d,", cl->init_trip()->get_int());
1893     else
1894       tty->print(" [int,");
1895     Node* limit_n = cl->limit();
1896     if (limit_n  != NULL &&  limit_n->is_Con())
1897       tty->print("%d),", cl->limit()->get_int());
1898     else
1899       tty->print("int),");
1900     int stride_con  = cl->stride_con();
1901     if (stride_con > 0) tty->print("+");
1902     tty->print("%d", stride_con);
1903 
1904     tty->print(" (%d iters) ", (int)cl->profile_trip_cnt());
1905 
1906     if (cl->is_pre_loop ()) tty->print(" pre" );
1907     if (cl->is_main_loop()) tty->print(" main");
1908     if (cl->is_post_loop()) tty->print(" post");
1909   }
1910   tty->cr();
1911 }
1912 
1913 //------------------------------dump-------------------------------------------
1914 // Dump loops by loop tree
1915 void IdealLoopTree::dump( ) const {
1916   dump_head();
1917   if (_child) _child->dump();
1918   if (_next)  _next ->dump();
1919 }
1920 
1921 #endif
1922 
1923 static void log_loop_tree(IdealLoopTree* root, IdealLoopTree* loop, CompileLog* log) {
1924   if (loop == root) {




1884     }
1885   }
1886   if (_head->is_CountedLoop()) {
1887     CountedLoopNode *cl = _head->as_CountedLoop();
1888     tty->print(" counted");
1889 
1890     Node* init_n = cl->init_trip();
1891     if (init_n  != NULL &&  init_n->is_Con())
1892       tty->print(" [%d,", cl->init_trip()->get_int());
1893     else
1894       tty->print(" [int,");
1895     Node* limit_n = cl->limit();
1896     if (limit_n  != NULL &&  limit_n->is_Con())
1897       tty->print("%d),", cl->limit()->get_int());
1898     else
1899       tty->print("int),");
1900     int stride_con  = cl->stride_con();
1901     if (stride_con > 0) tty->print("+");
1902     tty->print("%d", stride_con);
1903 
1904     tty->print(" (%0.f iters) ", cl->profile_trip_cnt());
1905 
1906     if (cl->is_pre_loop ()) tty->print(" pre" );
1907     if (cl->is_main_loop()) tty->print(" main");
1908     if (cl->is_post_loop()) tty->print(" post");
1909   }
1910   tty->cr();
1911 }
1912 
1913 //------------------------------dump-------------------------------------------
1914 // Dump loops by loop tree
1915 void IdealLoopTree::dump( ) const {
1916   dump_head();
1917   if (_child) _child->dump();
1918   if (_next)  _next ->dump();
1919 }
1920 
1921 #endif
1922 
1923 static void log_loop_tree(IdealLoopTree* root, IdealLoopTree* loop, CompileLog* log) {
1924   if (loop == root) {


< prev index next >