Skip to content

Commit d4c7e30

Browse files
authored
Merge pull request #263 from nbhuiyan/alias-fix-0.56
(0.56) Invalidate alias sets upon refinement of unsafe shadows during VP
2 parents 82cc280 + eca8a77 commit d4c7e30

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

compiler/optimizer/VPHandlers.cpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -736,6 +736,11 @@ static bool refineUnsafeAccess(OMR::ValuePropagation *vp, TR::Node *node)
736736
return refuseToConstrainUnsafe(vp, node, "performTransformation denied");
737737

738738
node->setSymbolReference(arrayShadow);
739+
740+
// With the array-shadow symref replacing the unsafe shadow symref, the existing alias sets may no
741+
// longer be valid. We need to mark the current alias sets as invalid to trigger a recomputation of the
742+
// alias sets the next time they are needed.
743+
vp->optimizer()->setAliasSetsAreValid(false);
739744
return okToConstrainNormally;
740745
}
741746

0 commit comments

Comments
 (0)