hotspot/src/share/vm/opto/idealKit.cpp
author jrose
Sat, 09 Apr 2011 21:16:12 -0700
changeset 9124 f60dee480d49
parent 8921 14bfe81f2a9d
parent 9100 860ba6f8b53f
child 13486 4f0635e148c1
permissions -rw-r--r--
Merge
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     1
/*
8921
14bfe81f2a9d 7010070: Update all 2010 Oracle-changed OpenJDK files to have the proper copyright dates - second pass
trims
parents: 8732
diff changeset
     2
 * Copyright (c) 2005, 2011, Oracle and/or its affiliates. All rights reserved.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     4
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
489c9b5090e2 Initial load
duke
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
489c9b5090e2 Initial load
duke
parents:
diff changeset
     7
 * published by the Free Software Foundation.
489c9b5090e2 Initial load
duke
parents:
diff changeset
     8
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
489c9b5090e2 Initial load
duke
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
489c9b5090e2 Initial load
duke
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
489c9b5090e2 Initial load
duke
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
489c9b5090e2 Initial load
duke
parents:
diff changeset
    13
 * accompanied this code).
489c9b5090e2 Initial load
duke
parents:
diff changeset
    14
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
489c9b5090e2 Initial load
duke
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    18
 *
5547
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3919
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3919
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f4b087cbb361 6941466: Oracle rebranding changes for Hotspot repositories
trims
parents: 3919
diff changeset
    21
 * questions.
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    22
 *
489c9b5090e2 Initial load
duke
parents:
diff changeset
    23
 */
489c9b5090e2 Initial load
duke
parents:
diff changeset
    24
7397
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    25
#include "precompiled.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    26
#include "opto/addnode.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    27
#include "opto/callnode.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    28
#include "opto/cfgnode.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    29
#include "opto/idealKit.hpp"
5b173b4ca846 6989984: Use standard include model for Hospot
stefank
parents: 5547
diff changeset
    30
#include "opto/runtime.hpp"
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    31
489c9b5090e2 Initial load
duke
parents:
diff changeset
    32
// Static initialization
489c9b5090e2 Initial load
duke
parents:
diff changeset
    33
489c9b5090e2 Initial load
duke
parents:
diff changeset
    34
// This declares the position where vars are kept in the cvstate
489c9b5090e2 Initial load
duke
parents:
diff changeset
    35
// For some degree of consistency we use the TypeFunc enum to
489c9b5090e2 Initial load
duke
parents:
diff changeset
    36
// soak up spots in the inputs even though we only use early Control
489c9b5090e2 Initial load
duke
parents:
diff changeset
    37
// and Memory slots. (So far.)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    38
const uint IdealKit::first_var = TypeFunc::Parms + 1;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    39
489c9b5090e2 Initial load
duke
parents:
diff changeset
    40
//----------------------------IdealKit-----------------------------------------
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    41
IdealKit::IdealKit(GraphKit* gkit, bool delay_all_transforms, bool has_declarations) :
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    42
  _gvn(gkit->gvn()), C(gkit->C) {
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    43
  _initial_ctrl = gkit->control();
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    44
  _initial_memory = gkit->merged_memory();
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    45
  _initial_i_o = gkit->i_o();
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    46
  _delay_all_transforms = delay_all_transforms;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    47
  _var_ct = 0;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    48
  _cvstate = NULL;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    49
  // We can go memory state free or else we need the entire memory state
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    50
  assert(_initial_memory == NULL || _initial_memory->Opcode() == Op_MergeMem, "memory must be pre-split");
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    51
  int init_size = 5;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    52
  _pending_cvstates = new (C->node_arena()) GrowableArray<Node*>(C->node_arena(), init_size, 0, 0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    53
  _delay_transform  = new (C->node_arena()) GrowableArray<Node*>(C->node_arena(), init_size, 0, 0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    54
  DEBUG_ONLY(_state = new (C->node_arena()) GrowableArray<int>(C->node_arena(), init_size, 0, 0));
3268
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
    55
  if (!has_declarations) {
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
    56
     declarations_done();
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
    57
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    58
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    59
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    60
//----------------------------sync_kit-----------------------------------------
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    61
void IdealKit::sync_kit(GraphKit* gkit) {
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    62
  set_all_memory(gkit->merged_memory());
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    63
  set_i_o(gkit->i_o());
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    64
  set_ctrl(gkit->control());
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    65
}
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
    66
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
    67
//-------------------------------if_then-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
    68
// Create:  if(left relop right)
489c9b5090e2 Initial load
duke
parents:
diff changeset
    69
//          /  \
489c9b5090e2 Initial load
duke
parents:
diff changeset
    70
//   iffalse    iftrue
489c9b5090e2 Initial load
duke
parents:
diff changeset
    71
// Push the iffalse cvstate onto the stack. The iftrue becomes the current cvstate.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    72
void IdealKit::if_then(Node* left, BoolTest::mask relop,
489c9b5090e2 Initial load
duke
parents:
diff changeset
    73
                       Node* right, float prob, float cnt, bool push_new_state) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    74
  assert((state() & (BlockS|LoopS|IfThenS|ElseS)), "bad state for new If");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    75
  Node* bol;
489c9b5090e2 Initial load
duke
parents:
diff changeset
    76
  if (left->bottom_type()->isa_ptr() == NULL) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    77
    if (left->bottom_type()->isa_int() != NULL) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    78
      bol = Bool(CmpI(left, right), relop);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    79
    } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    80
      assert(left->bottom_type()->isa_long() != NULL, "what else?");
489c9b5090e2 Initial load
duke
parents:
diff changeset
    81
      bol = Bool(CmpL(left, right), relop);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    82
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    83
489c9b5090e2 Initial load
duke
parents:
diff changeset
    84
  } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
    85
    bol = Bool(CmpP(left, right), relop);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    86
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
    87
  // Delay gvn.tranform on if-nodes until construction is finished
489c9b5090e2 Initial load
duke
parents:
diff changeset
    88
  // to prevent a constant bool input from discarding a control output.
489c9b5090e2 Initial load
duke
parents:
diff changeset
    89
  IfNode* iff = delay_transform(new (C, 2) IfNode(ctrl(), bol, prob, cnt))->as_If();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    90
  Node* then  = IfTrue(iff);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    91
  Node* elsen = IfFalse(iff);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    92
  Node* else_cvstate = copy_cvstate();
489c9b5090e2 Initial load
duke
parents:
diff changeset
    93
  else_cvstate->set_req(TypeFunc::Control, elsen);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    94
  _pending_cvstates->push(else_cvstate);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    95
  DEBUG_ONLY(if (push_new_state) _state->push(IfThenS));
489c9b5090e2 Initial load
duke
parents:
diff changeset
    96
  set_ctrl(then);
489c9b5090e2 Initial load
duke
parents:
diff changeset
    97
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
    98
489c9b5090e2 Initial load
duke
parents:
diff changeset
    99
//-------------------------------else_-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   100
// Pop the else cvstate off the stack, and push the (current) then cvstate.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   101
// The else cvstate becomes the current cvstate.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   102
void IdealKit::else_() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   103
  assert(state() == IfThenS, "bad state for new Else");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   104
  Node* else_cvstate = _pending_cvstates->pop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   105
  DEBUG_ONLY(_state->pop());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   106
  // save current (then) cvstate for later use at endif
489c9b5090e2 Initial load
duke
parents:
diff changeset
   107
  _pending_cvstates->push(_cvstate);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   108
  DEBUG_ONLY(_state->push(ElseS));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   109
  _cvstate = else_cvstate;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   110
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   111
489c9b5090e2 Initial load
duke
parents:
diff changeset
   112
//-------------------------------end_if-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   113
// Merge the "then" and "else" cvstates.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   114
//
3268
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
   115
// The if_then() pushed a copy of the current state for later use
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   116
// as the initial state for a future "else" clause.  The
489c9b5090e2 Initial load
duke
parents:
diff changeset
   117
// current state then became the initial state for the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   118
// then clause.  If an "else" clause was encountered, it will
489c9b5090e2 Initial load
duke
parents:
diff changeset
   119
// pop the top state and use it for it's initial state.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   120
// It will also push the current state (the state at the end of
489c9b5090e2 Initial load
duke
parents:
diff changeset
   121
// the "then" clause) for latter use at the end_if.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   122
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   123
// At the endif, the states are:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   124
// 1) else exists a) current state is end of "else" clause
489c9b5090e2 Initial load
duke
parents:
diff changeset
   125
//                b) top stack state is end of "then" clause
489c9b5090e2 Initial load
duke
parents:
diff changeset
   126
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   127
// 2) no else:    a) current state is end of "then" clause
489c9b5090e2 Initial load
duke
parents:
diff changeset
   128
//                b) top stack state is from the "if_then" which
489c9b5090e2 Initial load
duke
parents:
diff changeset
   129
//                   would have been the initial state of the else.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   130
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   131
// Merging the states is accomplished by:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   132
//   1) make a label for the merge
489c9b5090e2 Initial load
duke
parents:
diff changeset
   133
//   2) terminate the current state with a goto to the label
489c9b5090e2 Initial load
duke
parents:
diff changeset
   134
//   3) pop the top state from the stack and make it the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   135
//        current state
489c9b5090e2 Initial load
duke
parents:
diff changeset
   136
//   4) bind the label at the current state.  Binding a label
489c9b5090e2 Initial load
duke
parents:
diff changeset
   137
//        terminates the current state with a goto to the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   138
//        label and makes the label's state the current state.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   139
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   140
void IdealKit::end_if() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   141
  assert(state() & (IfThenS|ElseS), "bad state for new Endif");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   142
  Node* lab = make_label(1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   143
489c9b5090e2 Initial load
duke
parents:
diff changeset
   144
  // Node* join_state = _pending_cvstates->pop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   145
                  /* merging, join */
489c9b5090e2 Initial load
duke
parents:
diff changeset
   146
  goto_(lab);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   147
  _cvstate = _pending_cvstates->pop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   148
489c9b5090e2 Initial load
duke
parents:
diff changeset
   149
  bind(lab);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   150
  DEBUG_ONLY(_state->pop());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   151
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   152
489c9b5090e2 Initial load
duke
parents:
diff changeset
   153
//-------------------------------loop-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   154
// Create the loop head portion (*) of:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   155
//  *     iv = init
489c9b5090e2 Initial load
duke
parents:
diff changeset
   156
//  *  top: (region node)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   157
//  *     if (iv relop limit) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   158
//           loop body
489c9b5090e2 Initial load
duke
parents:
diff changeset
   159
//           i = i + 1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   160
//           goto top
489c9b5090e2 Initial load
duke
parents:
diff changeset
   161
//  *     } else // exits loop
489c9b5090e2 Initial load
duke
parents:
diff changeset
   162
//
489c9b5090e2 Initial load
duke
parents:
diff changeset
   163
// Pushes the loop top cvstate first, then the else (loop exit) cvstate
489c9b5090e2 Initial load
duke
parents:
diff changeset
   164
// onto the stack.
8732
16fc1c68714b 7008866: Missing loop predicate for loop with multiple entries
kvn
parents: 7397
diff changeset
   165
void IdealKit::loop(GraphKit* gkit, int nargs, IdealVariable& iv, Node* init, BoolTest::mask relop, Node* limit, float prob, float cnt) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   166
  assert((state() & (BlockS|LoopS|IfThenS|ElseS)), "bad state for new loop");
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   167
  if (UseLoopPredicate) {
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   168
    // Sync IdealKit and graphKit.
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   169
    gkit->sync_kit(*this);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   170
    // Add loop predicate.
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   171
    gkit->add_predicate(nargs);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   172
    // Update IdealKit memory.
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   173
    sync_kit(gkit);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   174
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   175
  set(iv, init);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   176
  Node* head = make_label(1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   177
  bind(head);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   178
  _pending_cvstates->push(head); // push for use at end_loop
489c9b5090e2 Initial load
duke
parents:
diff changeset
   179
  _cvstate = copy_cvstate();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   180
  if_then(value(iv), relop, limit, prob, cnt, false /* no new state */);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   181
  DEBUG_ONLY(_state->push(LoopS));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   182
  assert(ctrl()->is_IfTrue(), "true branch stays in loop");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   183
  assert(_pending_cvstates->top()->in(TypeFunc::Control)->is_IfFalse(), "false branch exits loop");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   184
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   185
489c9b5090e2 Initial load
duke
parents:
diff changeset
   186
//-------------------------------end_loop-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   187
// Creates the goto top label.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   188
// Expects the else (loop exit) cvstate to be on top of the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   189
// stack, and the loop top cvstate to be 2nd.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   190
void IdealKit::end_loop() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   191
  assert((state() == LoopS), "bad state for new end_loop");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   192
  Node* exit = _pending_cvstates->pop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   193
  Node* head = _pending_cvstates->pop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   194
  goto_(head);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   195
  clear(head);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   196
  DEBUG_ONLY(_state->pop());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   197
  _cvstate = exit;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   198
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   199
489c9b5090e2 Initial load
duke
parents:
diff changeset
   200
//-------------------------------make_label-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   201
// Creates a label.  The number of goto's
489c9b5090e2 Initial load
duke
parents:
diff changeset
   202
// must be specified (which should be 1 less than
489c9b5090e2 Initial load
duke
parents:
diff changeset
   203
// the number of precedessors.)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   204
Node* IdealKit::make_label(int goto_ct) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   205
  assert(_cvstate != NULL, "must declare variables before labels");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   206
  Node* lab = new_cvstate();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   207
  int sz = 1 + goto_ct + 1 /* fall thru */;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   208
  Node* reg = delay_transform(new (C, sz) RegionNode(sz));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   209
  lab->init_req(TypeFunc::Control, reg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   210
  return lab;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   211
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   212
489c9b5090e2 Initial load
duke
parents:
diff changeset
   213
//-------------------------------bind-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   214
// Bind a label at the current cvstate by simulating
489c9b5090e2 Initial load
duke
parents:
diff changeset
   215
// a goto to the label.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   216
void IdealKit::bind(Node* lab) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   217
  goto_(lab, true /* bind */);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   218
  _cvstate = lab;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   219
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   220
489c9b5090e2 Initial load
duke
parents:
diff changeset
   221
//-------------------------------goto_-------------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   222
// Make the current cvstate a predecessor of the label,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   223
// creating phi's to merge values.  If bind is true and
489c9b5090e2 Initial load
duke
parents:
diff changeset
   224
// this is not the last control edge, then ensure that
489c9b5090e2 Initial load
duke
parents:
diff changeset
   225
// all live values have phis created. Used to create phis
489c9b5090e2 Initial load
duke
parents:
diff changeset
   226
// at loop-top regions.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   227
void IdealKit::goto_(Node* lab, bool bind) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   228
  Node* reg = lab->in(TypeFunc::Control);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   229
  // find next empty slot in region
489c9b5090e2 Initial load
duke
parents:
diff changeset
   230
  uint slot = 1;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   231
  while (slot < reg->req() && reg->in(slot) != NULL) slot++;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   232
  assert(slot < reg->req(), "too many gotos");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   233
  // If this is last predecessor, then don't force phi creation
489c9b5090e2 Initial load
duke
parents:
diff changeset
   234
  if (slot == reg->req() - 1) bind = false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   235
  reg->init_req(slot, ctrl());
489c9b5090e2 Initial load
duke
parents:
diff changeset
   236
  assert(first_var + _var_ct == _cvstate->req(), "bad _cvstate size");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   237
  for (uint i = first_var; i < _cvstate->req(); i++) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   238
489c9b5090e2 Initial load
duke
parents:
diff changeset
   239
    // l is the value of var reaching the label. Could be a single value
489c9b5090e2 Initial load
duke
parents:
diff changeset
   240
    // reaching the label, or a phi that merges multiples values reaching
489c9b5090e2 Initial load
duke
parents:
diff changeset
   241
    // the label.  The latter is true if the label's input: in(..) is
489c9b5090e2 Initial load
duke
parents:
diff changeset
   242
    // a phi whose control input is the region node for the label.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   243
489c9b5090e2 Initial load
duke
parents:
diff changeset
   244
    Node* l = lab->in(i);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   245
    // Get the current value of the var
489c9b5090e2 Initial load
duke
parents:
diff changeset
   246
    Node* m = _cvstate->in(i);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   247
    // If the var went unused no need for a phi
489c9b5090e2 Initial load
duke
parents:
diff changeset
   248
    if (m == NULL) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   249
      continue;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   250
    } else if (l == NULL || m == l) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   251
      // Only one unique value "m" is known to reach this label so a phi
489c9b5090e2 Initial load
duke
parents:
diff changeset
   252
      // is not yet necessary unless:
489c9b5090e2 Initial load
duke
parents:
diff changeset
   253
      //    the label is being bound and all predecessors have not been seen,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   254
      //    in which case "bind" will be true.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   255
      if (bind) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   256
        m = promote_to_phi(m, reg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   257
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   258
      // Record the phi/value used for this var in the label's cvstate
489c9b5090e2 Initial load
duke
parents:
diff changeset
   259
      lab->set_req(i, m);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   260
    } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   261
      // More than one value for the variable reaches this label so
489c9b5090e2 Initial load
duke
parents:
diff changeset
   262
      // a create a phi if one does not already exist.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   263
      if (!was_promoted_to_phi(l, reg)) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   264
        l = promote_to_phi(l, reg);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   265
        lab->set_req(i, l);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   266
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   267
      // Record in the phi, the var's value from the current state
489c9b5090e2 Initial load
duke
parents:
diff changeset
   268
      l->set_req(slot, m);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   269
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   270
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   271
  do_memory_merge(_cvstate, lab);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   272
  stop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   273
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   274
489c9b5090e2 Initial load
duke
parents:
diff changeset
   275
//-----------------------------promote_to_phi-----------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   276
Node* IdealKit::promote_to_phi(Node* n, Node* reg) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   277
  assert(!was_promoted_to_phi(n, reg), "n already promoted to phi on this region");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   278
  // Get a conservative type for the phi
489c9b5090e2 Initial load
duke
parents:
diff changeset
   279
  const BasicType bt = n->bottom_type()->basic_type();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   280
  const Type* ct = Type::get_const_basic_type(bt);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   281
  return delay_transform(PhiNode::make(reg, n, ct));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   282
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   283
3268
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
   284
//-----------------------------declarations_done-------------------------------
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
   285
void IdealKit::declarations_done() {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   286
  _cvstate = new_cvstate();   // initialize current cvstate
489c9b5090e2 Initial load
duke
parents:
diff changeset
   287
  set_ctrl(_initial_ctrl);    // initialize control in current cvstate
489c9b5090e2 Initial load
duke
parents:
diff changeset
   288
  set_all_memory(_initial_memory);// initialize memory in current cvstate
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   289
  set_i_o(_initial_i_o);      // initialize i_o in current cvstate
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   290
  DEBUG_ONLY(_state->push(BlockS));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   291
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   292
489c9b5090e2 Initial load
duke
parents:
diff changeset
   293
//-----------------------------transform-----------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   294
Node* IdealKit::transform(Node* n) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   295
  if (_delay_all_transforms) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   296
    return delay_transform(n);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   297
  } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   298
    return gvn().transform(n);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   299
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   300
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   301
489c9b5090e2 Initial load
duke
parents:
diff changeset
   302
//-----------------------------delay_transform-----------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   303
Node* IdealKit::delay_transform(Node* n) {
3268
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
   304
  if (!gvn().is_IterGVN() || !gvn().is_IterGVN()->delay_transform()) {
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
   305
    gvn().set_type(n, n->bottom_type());
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
   306
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   307
  _delay_transform->push(n);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   308
  return n;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   309
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   310
489c9b5090e2 Initial load
duke
parents:
diff changeset
   311
//-----------------------------new_cvstate-----------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   312
Node* IdealKit::new_cvstate() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   313
  uint sz = _var_ct + first_var;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   314
  return new (C, sz) Node(sz);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   315
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   316
489c9b5090e2 Initial load
duke
parents:
diff changeset
   317
//-----------------------------copy_cvstate-----------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   318
Node* IdealKit::copy_cvstate() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   319
  Node* ns = new_cvstate();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   320
  for (uint i = 0; i < ns->req(); i++) ns->init_req(i, _cvstate->in(i));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   321
  // We must clone memory since it will be updated as we do stores.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   322
  ns->set_req(TypeFunc::Memory, MergeMemNode::make(C, ns->in(TypeFunc::Memory)));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   323
  return ns;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   324
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   325
489c9b5090e2 Initial load
duke
parents:
diff changeset
   326
//-----------------------------clear-----------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   327
void IdealKit::clear(Node* m) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   328
  for (uint i = 0; i < m->req(); i++) m->set_req(i, NULL);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   329
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   330
489c9b5090e2 Initial load
duke
parents:
diff changeset
   331
//-----------------------------drain_delay_transform----------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   332
void IdealKit::drain_delay_transform() {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   333
  while (_delay_transform->length() > 0) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   334
    Node* n = _delay_transform->pop();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   335
    gvn().transform(n);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   336
    if (!gvn().is_IterGVN()) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   337
      C->record_for_igvn(n);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   338
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   339
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   340
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   341
489c9b5090e2 Initial load
duke
parents:
diff changeset
   342
//-----------------------------IdealVariable----------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   343
IdealVariable::IdealVariable(IdealKit &k) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   344
  k.declare(this);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   345
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   346
489c9b5090e2 Initial load
duke
parents:
diff changeset
   347
Node* IdealKit::memory(uint alias_idx) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   348
  MergeMemNode* mem = merged_memory();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   349
  Node* p = mem->memory_at(alias_idx);
3268
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
   350
  if (!gvn().is_IterGVN() || !gvn().is_IterGVN()->delay_transform()) {
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
   351
    _gvn.set_type(p, Type::MEMORY);  // must be mapped
f034e0c86895 6851742: (EA) allocation elimination doesn't work with UseG1GC
kvn
parents: 670
diff changeset
   352
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   353
  return p;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   354
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   355
489c9b5090e2 Initial load
duke
parents:
diff changeset
   356
void IdealKit::set_memory(Node* mem, uint alias_idx) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   357
  merged_memory()->set_memory_at(alias_idx, mem);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   358
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   359
489c9b5090e2 Initial load
duke
parents:
diff changeset
   360
//----------------------------- make_load ----------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   361
Node* IdealKit::load(Node* ctl,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   362
                     Node* adr,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   363
                     const Type* t,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   364
                     BasicType bt,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   365
                     int adr_idx,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   366
                     bool require_atomic_access) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   367
489c9b5090e2 Initial load
duke
parents:
diff changeset
   368
  assert(adr_idx != Compile::AliasIdxTop, "use other make_load factory" );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   369
  const TypePtr* adr_type = NULL; // debug-mode-only argument
489c9b5090e2 Initial load
duke
parents:
diff changeset
   370
  debug_only(adr_type = C->get_adr_type(adr_idx));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   371
  Node* mem = memory(adr_idx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   372
  Node* ld;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   373
  if (require_atomic_access && bt == T_LONG) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   374
    ld = LoadLNode::make_atomic(C, ctl, mem, adr, adr_type, t);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   375
  } else {
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   376
    ld = LoadNode::make(_gvn, ctl, mem, adr, adr_type, t, bt);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   377
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   378
  return transform(ld);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   379
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   380
489c9b5090e2 Initial load
duke
parents:
diff changeset
   381
Node* IdealKit::store(Node* ctl, Node* adr, Node *val, BasicType bt,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   382
                                int adr_idx,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   383
                                bool require_atomic_access) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   384
  assert(adr_idx != Compile::AliasIdxTop, "use other store_to_memory factory" );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   385
  const TypePtr* adr_type = NULL;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   386
  debug_only(adr_type = C->get_adr_type(adr_idx));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   387
  Node *mem = memory(adr_idx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   388
  Node* st;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   389
  if (require_atomic_access && bt == T_LONG) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   390
    st = StoreLNode::make_atomic(C, ctl, mem, adr, adr_type, val);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   391
  } else {
360
21d113ecbf6a 6420645: Create a vm that uses compressed oops for up to 32gb heapsizes
coleenp
parents: 1
diff changeset
   392
    st = StoreNode::make(_gvn, ctl, mem, adr, adr_type, val, bt);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   393
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   394
  st = transform(st);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   395
  set_memory(st, adr_idx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   396
489c9b5090e2 Initial load
duke
parents:
diff changeset
   397
  return st;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   398
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   399
489c9b5090e2 Initial load
duke
parents:
diff changeset
   400
// Card mark store. Must be ordered so that it will come after the store of
489c9b5090e2 Initial load
duke
parents:
diff changeset
   401
// the oop.
3904
007a45522a7f 6877254: Server vm crashes with no branches off of store slice" when run with CMS and UseSuperWord(default)
cfang
parents: 3268
diff changeset
   402
Node* IdealKit::storeCM(Node* ctl, Node* adr, Node *val, Node* oop_store, int oop_adr_idx,
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   403
                        BasicType bt,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   404
                        int adr_idx) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   405
  assert(adr_idx != Compile::AliasIdxTop, "use other store_to_memory factory" );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   406
  const TypePtr* adr_type = NULL;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   407
  debug_only(adr_type = C->get_adr_type(adr_idx));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   408
  Node *mem = memory(adr_idx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   409
489c9b5090e2 Initial load
duke
parents:
diff changeset
   410
  // Add required edge to oop_store, optimizer does not support precedence edges.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   411
  // Convert required edge to precedence edge before allocation.
3904
007a45522a7f 6877254: Server vm crashes with no branches off of store slice" when run with CMS and UseSuperWord(default)
cfang
parents: 3268
diff changeset
   412
  Node* st = new (C, 5) StoreCMNode(ctl, mem, adr, adr_type, val, oop_store, oop_adr_idx);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   413
489c9b5090e2 Initial load
duke
parents:
diff changeset
   414
  st = transform(st);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   415
  set_memory(st, adr_idx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   416
489c9b5090e2 Initial load
duke
parents:
diff changeset
   417
  return st;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   418
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   419
489c9b5090e2 Initial load
duke
parents:
diff changeset
   420
//---------------------------- do_memory_merge --------------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   421
// The memory from one merging cvstate needs to be merged with the memory for another
489c9b5090e2 Initial load
duke
parents:
diff changeset
   422
// join cvstate. If the join cvstate doesn't have a merged memory yet then we
489c9b5090e2 Initial load
duke
parents:
diff changeset
   423
// can just copy the state from the merging cvstate
489c9b5090e2 Initial load
duke
parents:
diff changeset
   424
489c9b5090e2 Initial load
duke
parents:
diff changeset
   425
// Merge one slow path into the rest of memory.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   426
void IdealKit::do_memory_merge(Node* merging, Node* join) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   427
489c9b5090e2 Initial load
duke
parents:
diff changeset
   428
  // Get the region for the join state
489c9b5090e2 Initial load
duke
parents:
diff changeset
   429
  Node* join_region = join->in(TypeFunc::Control);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   430
  assert(join_region != NULL, "join region must exist");
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   431
  if (join->in(TypeFunc::I_O) == NULL ) {
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   432
    join->set_req(TypeFunc::I_O,  merging->in(TypeFunc::I_O));
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   433
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   434
  if (join->in(TypeFunc::Memory) == NULL ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   435
    join->set_req(TypeFunc::Memory,  merging->in(TypeFunc::Memory));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   436
    return;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   437
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   438
489c9b5090e2 Initial load
duke
parents:
diff changeset
   439
  // The control flow for merging must have already been attached to the join region
489c9b5090e2 Initial load
duke
parents:
diff changeset
   440
  // we need its index for the phis.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   441
  uint slot;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   442
  for (slot = 1; slot < join_region->req() ; slot ++ ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   443
    if (join_region->in(slot) == merging->in(TypeFunc::Control)) break;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   444
  }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   445
  assert(slot !=  join_region->req(), "edge must already exist");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   446
489c9b5090e2 Initial load
duke
parents:
diff changeset
   447
  MergeMemNode* join_m    = join->in(TypeFunc::Memory)->as_MergeMem();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   448
  MergeMemNode* merging_m = merging->in(TypeFunc::Memory)->as_MergeMem();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   449
489c9b5090e2 Initial load
duke
parents:
diff changeset
   450
  // join_m should be an ancestor mergemem of merging
489c9b5090e2 Initial load
duke
parents:
diff changeset
   451
  // Slow path memory comes from the current map (which is from a slow call)
489c9b5090e2 Initial load
duke
parents:
diff changeset
   452
  // Fast path/null path memory comes from the call's input
489c9b5090e2 Initial load
duke
parents:
diff changeset
   453
489c9b5090e2 Initial load
duke
parents:
diff changeset
   454
  // Merge the other fast-memory inputs with the new slow-default memory.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   455
  // for (MergeMemStream mms(merged_memory(), fast_mem->as_MergeMem()); mms.next_non_empty2(); ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   456
  for (MergeMemStream mms(join_m, merging_m); mms.next_non_empty2(); ) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   457
    Node* join_slice = mms.force_memory();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   458
    Node* merging_slice = mms.memory2();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   459
    if (join_slice != merging_slice) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   460
      PhiNode* phi;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   461
      // bool new_phi = false;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   462
      // Is the phi for this slice one that we created for this join region or simply
489c9b5090e2 Initial load
duke
parents:
diff changeset
   463
      // one we copied? If it is ours then add
489c9b5090e2 Initial load
duke
parents:
diff changeset
   464
      if (join_slice->is_Phi() && join_slice->as_Phi()->region() == join_region) {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   465
        phi = join_slice->as_Phi();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   466
      } else {
489c9b5090e2 Initial load
duke
parents:
diff changeset
   467
        // create the phi with join_slice filling supplying memory for all of the
489c9b5090e2 Initial load
duke
parents:
diff changeset
   468
        // control edges to the join region
489c9b5090e2 Initial load
duke
parents:
diff changeset
   469
        phi = PhiNode::make(join_region, join_slice, Type::MEMORY, mms.adr_type(C));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   470
        phi = (PhiNode*) delay_transform(phi);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   471
        // gvn().set_type(phi, Type::MEMORY);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   472
        // new_phi = true;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   473
      }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   474
      // Now update the phi with the slice for the merging slice
489c9b5090e2 Initial load
duke
parents:
diff changeset
   475
      phi->set_req(slot, merging_slice/* slow_path, slow_slice */);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   476
      // this updates join_m with the phi
489c9b5090e2 Initial load
duke
parents:
diff changeset
   477
      mms.set_memory(phi);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   478
    }
489c9b5090e2 Initial load
duke
parents:
diff changeset
   479
  }
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   480
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   481
  Node* join_io    = join->in(TypeFunc::I_O);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   482
  Node* merging_io = merging->in(TypeFunc::I_O);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   483
  if (join_io != merging_io) {
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   484
    PhiNode* phi;
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   485
    if (join_io->is_Phi() && join_io->as_Phi()->region() == join_region) {
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   486
      phi = join_io->as_Phi();
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   487
    } else {
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   488
      phi = PhiNode::make(join_region, join_io, Type::ABIO);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   489
      phi = (PhiNode*) delay_transform(phi);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   490
      join->set_req(TypeFunc::I_O, phi);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   491
    }
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   492
    phi->set_req(slot, merging_io);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   493
  }
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   494
}
489c9b5090e2 Initial load
duke
parents:
diff changeset
   495
489c9b5090e2 Initial load
duke
parents:
diff changeset
   496
489c9b5090e2 Initial load
duke
parents:
diff changeset
   497
//----------------------------- make_call  ----------------------------
489c9b5090e2 Initial load
duke
parents:
diff changeset
   498
// Trivial runtime call
489c9b5090e2 Initial load
duke
parents:
diff changeset
   499
void IdealKit::make_leaf_call(const TypeFunc *slow_call_type,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   500
                              address slow_call,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   501
                              const char *leaf_name,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   502
                              Node* parm0,
489c9b5090e2 Initial load
duke
parents:
diff changeset
   503
                              Node* parm1,
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   504
                              Node* parm2,
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   505
                              Node* parm3) {
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   506
489c9b5090e2 Initial load
duke
parents:
diff changeset
   507
  // We only handle taking in RawMem and modifying RawMem
489c9b5090e2 Initial load
duke
parents:
diff changeset
   508
  const TypePtr* adr_type = TypeRawPtr::BOTTOM;
489c9b5090e2 Initial load
duke
parents:
diff changeset
   509
  uint adr_idx = C->get_alias_index(adr_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   510
489c9b5090e2 Initial load
duke
parents:
diff changeset
   511
  // Slow-path leaf call
489c9b5090e2 Initial load
duke
parents:
diff changeset
   512
  int size = slow_call_type->domain()->cnt();
489c9b5090e2 Initial load
duke
parents:
diff changeset
   513
  CallNode *call =  (CallNode*)new (C, size) CallLeafNode( slow_call_type, slow_call, leaf_name, adr_type);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   514
489c9b5090e2 Initial load
duke
parents:
diff changeset
   515
  // Set fixed predefined input arguments
489c9b5090e2 Initial load
duke
parents:
diff changeset
   516
  call->init_req( TypeFunc::Control, ctrl() );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   517
  call->init_req( TypeFunc::I_O    , top() )     ;   // does no i/o
489c9b5090e2 Initial load
duke
parents:
diff changeset
   518
  // Narrow memory as only memory input
489c9b5090e2 Initial load
duke
parents:
diff changeset
   519
  call->init_req( TypeFunc::Memory , memory(adr_idx));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   520
  call->init_req( TypeFunc::FramePtr, top() /* frameptr() */ );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   521
  call->init_req( TypeFunc::ReturnAdr, top() );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   522
489c9b5090e2 Initial load
duke
parents:
diff changeset
   523
  if (parm0 != NULL)  call->init_req(TypeFunc::Parms+0, parm0);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   524
  if (parm1 != NULL)  call->init_req(TypeFunc::Parms+1, parm1);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   525
  if (parm2 != NULL)  call->init_req(TypeFunc::Parms+2, parm2);
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   526
  if (parm3 != NULL)  call->init_req(TypeFunc::Parms+3, parm3);
1
489c9b5090e2 Initial load
duke
parents:
diff changeset
   527
489c9b5090e2 Initial load
duke
parents:
diff changeset
   528
  // Node *c = _gvn.transform(call);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   529
  call = (CallNode *) _gvn.transform(call);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   530
  Node *c = call; // dbx gets confused with call call->dump()
489c9b5090e2 Initial load
duke
parents:
diff changeset
   531
489c9b5090e2 Initial load
duke
parents:
diff changeset
   532
  // Slow leaf call has no side-effects, sets few values
489c9b5090e2 Initial load
duke
parents:
diff changeset
   533
489c9b5090e2 Initial load
duke
parents:
diff changeset
   534
  set_ctrl(transform( new (C, 1) ProjNode(call,TypeFunc::Control) ));
489c9b5090e2 Initial load
duke
parents:
diff changeset
   535
489c9b5090e2 Initial load
duke
parents:
diff changeset
   536
  // Make memory for the call
489c9b5090e2 Initial load
duke
parents:
diff changeset
   537
  Node* mem = _gvn.transform( new (C, 1) ProjNode(call, TypeFunc::Memory) );
489c9b5090e2 Initial load
duke
parents:
diff changeset
   538
489c9b5090e2 Initial load
duke
parents:
diff changeset
   539
  // Set the RawPtr memory state only.
489c9b5090e2 Initial load
duke
parents:
diff changeset
   540
  set_memory(mem, adr_idx);
489c9b5090e2 Initial load
duke
parents:
diff changeset
   541
489c9b5090e2 Initial load
duke
parents:
diff changeset
   542
  assert(C->alias_type(call->adr_type()) == C->alias_type(adr_type),
489c9b5090e2 Initial load
duke
parents:
diff changeset
   543
         "call node must be constructed correctly");
489c9b5090e2 Initial load
duke
parents:
diff changeset
   544
}
9100
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   545
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   546
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   547
void IdealKit::make_leaf_call_no_fp(const TypeFunc *slow_call_type,
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   548
                              address slow_call,
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   549
                              const char *leaf_name,
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   550
                              const TypePtr* adr_type,
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   551
                              Node* parm0,
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   552
                              Node* parm1,
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   553
                              Node* parm2,
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   554
                              Node* parm3) {
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   555
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   556
  // We only handle taking in RawMem and modifying RawMem
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   557
  uint adr_idx = C->get_alias_index(adr_type);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   558
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   559
  // Slow-path leaf call
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   560
  int size = slow_call_type->domain()->cnt();
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   561
  CallNode *call =  (CallNode*)new (C, size) CallLeafNoFPNode( slow_call_type, slow_call, leaf_name, adr_type);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   562
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   563
  // Set fixed predefined input arguments
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   564
  call->init_req( TypeFunc::Control, ctrl() );
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   565
  call->init_req( TypeFunc::I_O    , top() )     ;   // does no i/o
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   566
  // Narrow memory as only memory input
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   567
  call->init_req( TypeFunc::Memory , memory(adr_idx));
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   568
  call->init_req( TypeFunc::FramePtr, top() /* frameptr() */ );
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   569
  call->init_req( TypeFunc::ReturnAdr, top() );
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   570
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   571
  if (parm0 != NULL)  call->init_req(TypeFunc::Parms+0, parm0);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   572
  if (parm1 != NULL)  call->init_req(TypeFunc::Parms+1, parm1);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   573
  if (parm2 != NULL)  call->init_req(TypeFunc::Parms+2, parm2);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   574
  if (parm3 != NULL)  call->init_req(TypeFunc::Parms+3, parm3);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   575
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   576
  // Node *c = _gvn.transform(call);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   577
  call = (CallNode *) _gvn.transform(call);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   578
  Node *c = call; // dbx gets confused with call call->dump()
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   579
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   580
  // Slow leaf call has no side-effects, sets few values
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   581
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   582
  set_ctrl(transform( new (C, 1) ProjNode(call,TypeFunc::Control) ));
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   583
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   584
  // Make memory for the call
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   585
  Node* mem = _gvn.transform( new (C, 1) ProjNode(call, TypeFunc::Memory) );
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   586
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   587
  // Set the RawPtr memory state only.
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   588
  set_memory(mem, adr_idx);
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   589
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   590
  assert(C->alias_type(call->adr_type()) == C->alias_type(adr_type),
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   591
         "call node must be constructed correctly");
860ba6f8b53f 7032314: Allow to generate CallLeafNoFPNode in IdealKit
kvn
parents: 8732
diff changeset
   592
}