diff options
author | kvn <none@none> | 2008-10-02 08:37:44 -0700 |
---|---|---|
committer | kvn <none@none> | 2008-10-02 08:37:44 -0700 |
commit | 04a9d10966d518e2c0cd30392026a27a8e2169d9 (patch) | |
tree | 1a86fb6821517100731b532ab1c5a590a4398613 /src/share/vm/opto/node.hpp | |
parent | 0fbbb707208aa3c78d50719bc35e8d84625d2a29 (diff) |
6667595: Set probability FAIR for pre-, post- loops and ALWAYS for main loop
Summary: Fix loop's probability. Add optimizations to avoid spilling. Change InlineSmallCode to product flag.
Reviewed-by: never
Diffstat (limited to 'src/share/vm/opto/node.hpp')
-rw-r--r-- | src/share/vm/opto/node.hpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/share/vm/opto/node.hpp b/src/share/vm/opto/node.hpp index e027265bf..f55a40309 100644 --- a/src/share/vm/opto/node.hpp +++ b/src/share/vm/opto/node.hpp @@ -1320,7 +1320,8 @@ public: Node *pop() { if( _clock_index >= size() ) _clock_index = 0; Node *b = at(_clock_index); - map( _clock_index++, Node_List::pop()); + map( _clock_index, Node_List::pop()); + if (size() != 0) _clock_index++; // Always start from 0 _in_worklist >>= b->_idx; return b; } |