src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/phases/PreAllocationOptimizationStage.java
changeset 48861 47f19ff9903c
parent 47216 71c04702a3d5
child 50858 2d3e99a72541
equal deleted inserted replaced
48860:5bce1b7e7800 48861:47f19ff9903c
     1 /*
     1 /*
     2  * Copyright (c) 2015, 2015, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2015, 2018, 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.
    29 
    29 
    30 public class PreAllocationOptimizationStage extends LIRPhaseSuite<PreAllocationOptimizationContext> {
    30 public class PreAllocationOptimizationStage extends LIRPhaseSuite<PreAllocationOptimizationContext> {
    31     public PreAllocationOptimizationStage(OptionValues options) {
    31     public PreAllocationOptimizationStage(OptionValues options) {
    32         if (ConstantLoadOptimization.Options.LIROptConstantLoadOptimization.getValue(options)) {
    32         if (ConstantLoadOptimization.Options.LIROptConstantLoadOptimization.getValue(options)) {
    33             appendPhase(new ConstantLoadOptimization());
    33             appendPhase(new ConstantLoadOptimization());
    34             appendPhase(new SaveCalleeSaveRegisters());
       
    35         }
    34         }
       
    35         appendPhase(new SaveCalleeSaveRegisters());
    36     }
    36     }
    37 }
    37 }