Mercurial > hg > truffle
comparison src/share/vm/opto/loopnode.cpp @ 2465:3af54845df98
7004555: Add new policy for one iteration loops
Summary: Add new policy for one iteration loops (mostly formal pre- loops).
Reviewed-by: never
author | kvn |
---|---|
date | Fri, 08 Apr 2011 14:56:22 -0700 |
parents | 08eb13460b3a |
children | bad7ecd0b6ed |
comparison
equal
deleted
inserted
replaced
2463:3f49d30f8184 | 2465:3af54845df98 |
---|---|
1448 } | 1448 } |
1449 } | 1449 } |
1450 if (_head->is_CountedLoop()) { | 1450 if (_head->is_CountedLoop()) { |
1451 CountedLoopNode *cl = _head->as_CountedLoop(); | 1451 CountedLoopNode *cl = _head->as_CountedLoop(); |
1452 tty->print(" counted"); | 1452 tty->print(" counted"); |
1453 | |
1454 Node* init_n = cl->init_trip(); | |
1455 if (init_n != NULL && init_n->is_Con()) | |
1456 tty->print(" [%d,", cl->init_trip()->get_int()); | |
1457 else | |
1458 tty->print(" [int,"); | |
1459 Node* limit_n = cl->limit(); | |
1460 if (limit_n != NULL && limit_n->is_Con()) | |
1461 tty->print("%d),", cl->limit()->get_int()); | |
1462 else | |
1463 tty->print("int),"); | |
1464 int stride_con = cl->stride_con(); | |
1465 if (stride_con > 0) tty->print("+"); | |
1466 tty->print("%d", stride_con); | |
1467 | |
1453 if (cl->is_pre_loop ()) tty->print(" pre" ); | 1468 if (cl->is_pre_loop ()) tty->print(" pre" ); |
1454 if (cl->is_main_loop()) tty->print(" main"); | 1469 if (cl->is_main_loop()) tty->print(" main"); |
1455 if (cl->is_post_loop()) tty->print(" post"); | 1470 if (cl->is_post_loop()) tty->print(" post"); |
1456 } | 1471 } |
1457 tty->cr(); | 1472 tty->cr(); |