src/jdk.internal.vm.compiler/share/classes/org.graalvm.compiler.lir/src/org/graalvm/compiler/lir/phases/PreAllocationOptimizationStage.java
equal
deleted
inserted
replaced
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 } |