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
24
25 package org.graalvm.compiler.core.test;
26
27 import org.graalvm.compiler.debug.DebugContext;
28 import org.graalvm.compiler.nodes.ProxyNode;
29 import org.graalvm.compiler.nodes.StructuredGraph;
30 import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions;
31 import org.graalvm.compiler.nodes.spi.LoweringTool;
32 import org.graalvm.compiler.phases.OptimisticOptimizations;
33 import org.graalvm.compiler.phases.OptimisticOptimizations.Optimization;
34 import org.graalvm.compiler.phases.common.CanonicalizerPhase;
35 import org.graalvm.compiler.phases.common.ConditionalEliminationPhase;
36 import org.graalvm.compiler.phases.common.ConvertDeoptimizeToGuardPhase;
37 import org.graalvm.compiler.phases.common.IterativeConditionalEliminationPhase;
38 import org.graalvm.compiler.phases.common.LoweringPhase;
39 import org.graalvm.compiler.phases.schedule.SchedulePhase;
40 import org.graalvm.compiler.phases.tiers.HighTierContext;
41 import org.graalvm.compiler.phases.tiers.PhaseContext;
42 import org.junit.Assert;
43
44 /**
45 * Collection of tests for {@link org.graalvm.compiler.phases.common.ConditionalEliminationPhase}
46 * including those that triggered bugs in this phase.
47 */
48 public class ConditionalEliminationTestBase extends GraalCompilerTest {
49 protected static int sink0;
50 protected static int sink1;
51 protected static int sink2;
52
53 /**
54 * These tests assume all code paths in called routines are reachable so disable removal of dead
55 * code based on method profiles.
56 */
|
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
24
25 package org.graalvm.compiler.core.test;
26
27 import org.graalvm.compiler.debug.DebugContext;
28 import org.graalvm.compiler.nodes.ProxyNode;
29 import org.graalvm.compiler.nodes.StructuredGraph;
30 import org.graalvm.compiler.nodes.StructuredGraph.AllowAssumptions;
31 import org.graalvm.compiler.nodes.spi.LoweringTool;
32 import org.graalvm.compiler.phases.OptimisticOptimizations;
33 import org.graalvm.compiler.phases.OptimisticOptimizations.Optimization;
34 import org.graalvm.compiler.phases.common.CanonicalizerPhase;
35 import org.graalvm.compiler.phases.common.ConditionalEliminationPhase;
36 import org.graalvm.compiler.loop.phases.ConvertDeoptimizeToGuardPhase;
37 import org.graalvm.compiler.phases.common.IterativeConditionalEliminationPhase;
38 import org.graalvm.compiler.phases.common.LoweringPhase;
39 import org.graalvm.compiler.phases.schedule.SchedulePhase;
40 import org.graalvm.compiler.phases.tiers.HighTierContext;
41 import org.graalvm.compiler.phases.tiers.PhaseContext;
42 import org.junit.Assert;
43
44 /**
45 * Collection of tests for {@link org.graalvm.compiler.phases.common.ConditionalEliminationPhase}
46 * including those that triggered bugs in this phase.
47 */
48 public class ConditionalEliminationTestBase extends GraalCompilerTest {
49 protected static int sink0;
50 protected static int sink1;
51 protected static int sink2;
52
53 /**
54 * These tests assume all code paths in called routines are reachable so disable removal of dead
55 * code based on method profiles.
56 */
|