src/share/vm/opto/phaseX.hpp

changeset 548
ba764ed4b6f2
parent 508
a8880a78d355
child 631
d1605aabd0a1
     1.1 --- a/src/share/vm/opto/phaseX.hpp	Fri Apr 11 09:56:35 2008 -0400
     1.2 +++ b/src/share/vm/opto/phaseX.hpp	Sun Apr 13 17:43:42 2008 -0400
     1.3 @@ -383,6 +383,10 @@
     1.4  // Phase for iteratively performing local, pessimistic GVN-style optimizations.
     1.5  // and ideal transformations on the graph.
     1.6  class PhaseIterGVN : public PhaseGVN {
     1.7 + private:
     1.8 +  bool _delay_transform;  // When true simply register the node when calling transform
     1.9 +                          // instead of actually optimizing it
    1.10 +
    1.11    // Idealize old Node 'n' with respect to its inputs and its value
    1.12    virtual Node *transform_old( Node *a_node );
    1.13  protected:
    1.14 @@ -446,6 +450,10 @@
    1.15      subsume_node(old, nn);
    1.16    }
    1.17  
    1.18 +  void set_delay_transform(bool delay) {
    1.19 +    _delay_transform = delay;
    1.20 +  }
    1.21 +
    1.22  #ifndef PRODUCT
    1.23  protected:
    1.24    // Sub-quadratic implementation of VerifyIterativeGVN.

mercurial