src/share/vm/opto/domgraph.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File hotspot Sdiff src/share/vm/opto

src/share/vm/opto/domgraph.cpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "libadt/vectset.hpp"
  27 #include "memory/allocation.hpp"

  28 #include "opto/block.hpp"
  29 #include "opto/machnode.hpp"
  30 #include "opto/phaseX.hpp"
  31 #include "opto/rootnode.hpp"
  32 
  33 // Portions of code courtesy of Clifford Click
  34 
  35 // A data structure that holds all the information needed to find dominators.
  36 struct Tarjan {
  37   Block *_block;                // Basic block for this info
  38 
  39   uint _semi;                   // Semi-dominators
  40   uint _size;                   // Used for faster LINK and EVAL
  41   Tarjan *_parent;              // Parent in DFS
  42   Tarjan *_label;               // Used for LINK and EVAL
  43   Tarjan *_ancestor;            // Used for LINK and EVAL
  44   Tarjan *_child;               // Used for faster LINK and EVAL
  45   Tarjan *_dom;                 // Parent in dominator tree (immediate dom)
  46   Tarjan *_bucket;              // Set of vertices with given semidominator
  47 


   1 /*
   2  * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved.
   3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
   4  *
   5  * This code is free software; you can redistribute it and/or modify it
   6  * under the terms of the GNU General Public License version 2 only, as
   7  * published by the Free Software Foundation.
   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  15  * You should have received a copy of the GNU General Public License version
  16  * 2 along with this work; if not, write to the Free Software Foundation,
  17  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  18  *
  19  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  20  * or visit www.oracle.com if you need additional information or have any
  21  * questions.
  22  *
  23  */
  24 
  25 #include "precompiled.hpp"
  26 #include "libadt/vectset.hpp"
  27 #include "memory/allocation.hpp"
  28 #include "memory/resourceArea.hpp"
  29 #include "opto/block.hpp"
  30 #include "opto/machnode.hpp"
  31 #include "opto/phaseX.hpp"
  32 #include "opto/rootnode.hpp"
  33 
  34 // Portions of code courtesy of Clifford Click
  35 
  36 // A data structure that holds all the information needed to find dominators.
  37 struct Tarjan {
  38   Block *_block;                // Basic block for this info
  39 
  40   uint _semi;                   // Semi-dominators
  41   uint _size;                   // Used for faster LINK and EVAL
  42   Tarjan *_parent;              // Parent in DFS
  43   Tarjan *_label;               // Used for LINK and EVAL
  44   Tarjan *_ancestor;            // Used for LINK and EVAL
  45   Tarjan *_child;               // Used for faster LINK and EVAL
  46   Tarjan *_dom;                 // Parent in dominator tree (immediate dom)
  47   Tarjan *_bucket;              // Set of vertices with given semidominator
  48 


src/share/vm/opto/domgraph.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File