Mercurial > hg > truffle
diff src/share/vm/opto/graphKit.hpp @ 2383:9dc311b8473e
7008866: Missing loop predicate for loop with multiple entries
Summary: Add predicates when loop head bytecode is parsed instead of when back branch bytecode is parsed.
Reviewed-by: never
author | kvn |
---|---|
date | Mon, 21 Mar 2011 11:28:14 -0700 |
parents | f95d63e2154a |
children | 1d1603768966 07acc51c1d2a e1162778c1c8 |
line wrap: on
line diff
--- a/src/share/vm/opto/graphKit.hpp Mon Mar 21 02:30:49 2011 -0700 +++ b/src/share/vm/opto/graphKit.hpp Mon Mar 21 11:28:14 2011 -0700 @@ -793,6 +793,10 @@ if (!tst->is_Con()) record_for_igvn(iff); // Range-check and Null-check removal is later return iff; } + + // Insert a loop predicate into the graph + void add_predicate(int nargs = 0); + void add_predicate_impl(Deoptimization::DeoptReason reason, int nargs); }; // Helper class to support building of control flow branches. Upon