Mercurial > hg > truffle
diff src/share/vm/opto/compile.hpp @ 2445:08eb13460b3a
7004535: Clone loop predicate during loop unswitch
Summary: Clone loop predicate for clonned loops
Reviewed-by: never
author | kvn |
---|---|
date | Sat, 02 Apr 2011 10:54:15 -0700 |
parents | c7f3d0b4570f |
children | 95134e034042 |
line wrap: on
line diff
--- a/src/share/vm/opto/compile.hpp Sat Apr 02 09:49:27 2011 -0700 +++ b/src/share/vm/opto/compile.hpp Sat Apr 02 10:54:15 2011 -0700 @@ -489,6 +489,9 @@ // remove the opaque nodes that protect the predicates so that the unused checks and // uncommon traps will be eliminated from the graph. void cleanup_loop_predicates(PhaseIterGVN &igvn); + bool is_predicate_opaq(Node * n) { + return _predicate_opaqs->contains(n); + } // Compilation environment. Arena* comp_arena() { return &_comp_arena; }