1.1 --- a/src/share/vm/opto/block.hpp Thu Mar 26 14:39:39 2009 -0700 1.2 +++ b/src/share/vm/opto/block.hpp Thu Mar 26 15:04:55 2009 -0700 1.3 @@ -371,6 +371,7 @@ 1.4 Block *_broot; // Basic block of root 1.5 uint _rpo_ctr; 1.6 CFGLoop* _root_loop; 1.7 + float _outer_loop_freq; // Outmost loop frequency 1.8 1.9 // Per node latency estimation, valid only during GCM 1.10 GrowableArray<uint> _node_latency; 1.11 @@ -537,6 +538,7 @@ 1.12 void compute_loop_depth(int depth); 1.13 void compute_freq(); // compute frequency with loop assuming head freq 1.0f 1.14 void scale_freq(); // scale frequency by loop trip count (including outer loops) 1.15 + float outer_loop_freq() const; // frequency of outer loop 1.16 bool in_loop_nest(Block* b); 1.17 float trip_count() const { return 1.0f / _exit_prob; } 1.18 virtual bool is_loop() { return true; }