< prev index next >

src/hotspot/share/opto/phaseX.hpp

Print this page
rev 52425 : 8213381: Hook to allow GC to inject Node::Ideal() calls

@@ -403,10 +403,13 @@
 // Phase for performing local, pessimistic GVN-style optimizations.
 class PhaseGVN : public PhaseValues {
 protected:
   bool is_dominator_helper(Node *d, Node *n, bool linear_only);
 
+  // Helper to call Node::Ideal() and BarrierSetC2::ideal_node().
+  Node* apply_ideal(Node* i, bool can_reshape);
+
 public:
   PhaseGVN( Arena *arena, uint est_max_size ) : PhaseValues( arena, est_max_size ) {}
   PhaseGVN( PhaseGVN *gvn ) : PhaseValues( gvn ) {}
   PhaseGVN( PhaseGVN *gvn, const char *dummy ) : PhaseValues( gvn, dummy ) {}
 
< prev index next >