Mercurial > hg > truffle
annotate graal/com.oracle.graal.compiler/src/com/oracle/graal/compiler/phases/LowTier.java @ 13378:16d99e9d77ad
Options: rename flag (AOTCompilation -> ImmutableCode)
author | Bernhard Urban <bernhard.urban@jku.at> |
---|---|
date | Wed, 18 Dec 2013 11:13:17 +0100 |
parents | a66169e30623 |
children | 75a67ebd50e8 |
rev | line source |
---|---|
9264 | 1 /* |
2 * Copyright (c) 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 package com.oracle.graal.compiler.phases; | |
24 | |
11566
aa9ce8d56771
New methods for incremental canonicalization.
Roland Schatz <roland.schatz@oracle.com>
parents:
10671
diff
changeset
|
25 import static com.oracle.graal.phases.GraalOptions.*; |
aa9ce8d56771
New methods for incremental canonicalization.
Roland Schatz <roland.schatz@oracle.com>
parents:
10671
diff
changeset
|
26 |
9264 | 27 import com.oracle.graal.phases.*; |
9271
7409a84b6001
Move more phases into tiers.
Roland Schatz <roland.schatz@oracle.com>
parents:
9264
diff
changeset
|
28 import com.oracle.graal.phases.common.*; |
9264 | 29 import com.oracle.graal.phases.tiers.*; |
30 | |
31 public class LowTier extends PhaseSuite<LowTierContext> { | |
32 | |
33 public LowTier() { | |
13378
16d99e9d77ad
Options: rename flag (AOTCompilation -> ImmutableCode)
Bernhard Urban <bernhard.urban@jku.at>
parents:
12657
diff
changeset
|
34 CanonicalizerPhase canonicalizer = new CanonicalizerPhase(!ImmutableCode.getValue()); |
11566
aa9ce8d56771
New methods for incremental canonicalization.
Roland Schatz <roland.schatz@oracle.com>
parents:
10671
diff
changeset
|
35 |
11584 | 36 appendPhase(new LoweringPhase(canonicalizer)); |
9271
7409a84b6001
Move more phases into tiers.
Roland Schatz <roland.schatz@oracle.com>
parents:
9264
diff
changeset
|
37 |
12657
a66169e30623
Move second RemoveValueProxyPhase.
Roland Schatz <roland.schatz@oracle.com>
parents:
11584
diff
changeset
|
38 appendPhase(new RemoveValueProxyPhase()); |
a66169e30623
Move second RemoveValueProxyPhase.
Roland Schatz <roland.schatz@oracle.com>
parents:
11584
diff
changeset
|
39 |
10029
839791e70ff1
Method for adding a new phase at the beginning of a suite.
Roland Schatz <roland.schatz@oracle.com>
parents:
9443
diff
changeset
|
40 appendPhase(new ExpandLogicPhase()); |
9443
490d283dbe90
Add Logic conjunction and disjunction and expand them before lir generation
Gilles Duboscq <duboscq@ssw.jku.at>
parents:
9271
diff
changeset
|
41 |
10029
839791e70ff1
Method for adding a new phase at the beginning of a suite.
Roland Schatz <roland.schatz@oracle.com>
parents:
9443
diff
changeset
|
42 appendPhase(new DeadCodeEliminationPhase()); |
9264 | 43 } |
44 } |