hotspot/src/share/vm/opto/phaseX.hpp
changeset 360 21d113ecbf6a
parent 246 b029af7e69d3
child 670 ddf3e9583f2f
--- a/hotspot/src/share/vm/opto/phaseX.hpp	Fri Apr 11 09:56:35 2008 -0400
+++ b/hotspot/src/share/vm/opto/phaseX.hpp	Sun Apr 13 17:43:42 2008 -0400
@@ -383,6 +383,10 @@
 // Phase for iteratively performing local, pessimistic GVN-style optimizations.
 // and ideal transformations on the graph.
 class PhaseIterGVN : public PhaseGVN {
+ private:
+  bool _delay_transform;  // When true simply register the node when calling transform
+                          // instead of actually optimizing it
+
   // Idealize old Node 'n' with respect to its inputs and its value
   virtual Node *transform_old( Node *a_node );
 protected:
@@ -446,6 +450,10 @@
     subsume_node(old, nn);
   }
 
+  void set_delay_transform(bool delay) {
+    _delay_transform = delay;
+  }
+
 #ifndef PRODUCT
 protected:
   // Sub-quadratic implementation of VerifyIterativeGVN.