Mercurial > hg > graal-jvmci-8
diff src/share/vm/opto/loopUnswitch.cpp @ 20671:9e69e8d1c900
8058148: MaxNodeLimit and LiveNodeCountInliningCutoff
Reviewed-by: kvn, roland
author | vlivanov |
---|---|
date | Mon, 24 Nov 2014 07:29:03 -0800 |
parents | 2aff40cb4703 |
children |
line wrap: on
line diff
--- a/src/share/vm/opto/loopUnswitch.cpp Tue Nov 11 04:46:13 2014 -0800 +++ b/src/share/vm/opto/loopUnswitch.cpp Mon Nov 24 07:29:03 2014 -0800 @@ -59,8 +59,8 @@ if (!_head->is_Loop()) { return false; } - uint nodes_left = MaxNodeLimit - phase->C->live_nodes(); - if (2 * _body.size() > nodes_left) { + int nodes_left = phase->C->max_node_limit() - phase->C->live_nodes(); + if ((int)(2 * _body.size()) > nodes_left) { return false; // Too speculative if running low on nodes. } LoopNode* head = _head->as_Loop();