1 /* |
1 /* |
2 * Copyright (c) 1997, 2005, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
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 |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
20 * or visit www.oracle.com if you need additional information or have any |
20 * or visit www.oracle.com if you need additional information or have any |
21 * questions. |
21 * questions. |
22 * |
22 * |
23 */ |
23 */ |
24 |
24 |
25 #include "incls/_precompiled.incl" |
25 #include "precompiled.hpp" |
26 #include "incls/_rootnode.cpp.incl" |
26 #include "memory/allocation.inline.hpp" |
|
27 #include "opto/callnode.hpp" |
|
28 #include "opto/cfgnode.hpp" |
|
29 #include "opto/phaseX.hpp" |
|
30 #include "opto/regmask.hpp" |
|
31 #include "opto/rootnode.hpp" |
|
32 #include "opto/subnode.hpp" |
|
33 #include "opto/type.hpp" |
27 |
34 |
28 //------------------------------Ideal------------------------------------------ |
35 //------------------------------Ideal------------------------------------------ |
29 // Remove dead inputs |
36 // Remove dead inputs |
30 Node *RootNode::Ideal(PhaseGVN *phase, bool can_reshape) { |
37 Node *RootNode::Ideal(PhaseGVN *phase, bool can_reshape) { |
31 for( uint i = 1; i < req(); i++ ) { // For all inputs |
38 for( uint i = 1; i < req(); i++ ) { // For all inputs |