Skip to content

Commit

Permalink
[GR-53717] PostRunCanonicalization phases must call super.notApplicab…
Browse files Browse the repository at this point in the history
…leTo()

PullRequest: graal/17629
  • Loading branch information
gergo- committed Apr 29, 2024
2 parents 50eaae7 + b522b2b commit ee40fc1
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2022, 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2022, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -134,7 +134,7 @@ public DominatorBasedGlobalValueNumberingPhase(CanonicalizerPhase canonicalizer)

@Override
public Optional<NotApplicable> notApplicableTo(GraphState graphState) {
return ALWAYS_APPLICABLE;
return super.notApplicableTo(graphState);
}

@Override
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* Copyright (c) 2023, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 2023, 2024, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -106,7 +106,9 @@ public OptimizeOffsetAddressPhase(CanonicalizerPhase canonicalizer) {

@Override
public Optional<NotApplicable> notApplicableTo(GraphState graphState) {
return NotApplicable.unlessRunBefore(this, StageFlag.FIXED_READS, graphState);
return NotApplicable.ifAny(
super.notApplicableTo(graphState),
NotApplicable.unlessRunBefore(this, StageFlag.FIXED_READS, graphState));
}

@Override
Expand Down

0 comments on commit ee40fc1

Please sign in to comment.