Skip to content

Commit

Permalink
Merge pull request #212 from dylanjtuttle/constrainAload
Browse files Browse the repository at this point in the history
Fix underestimation of array length in constrainAload (0.48)
  • Loading branch information
pshipton authored Oct 3, 2024
2 parents cfe6789 + 40acb86 commit f8f0d78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/optimizer/VPHandlers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1962,7 +1962,7 @@ TR::Node *constrainAload(OMR::ValuePropagation *vp, TR::Node *node)
if (elementSize != 0)
{
constraint = TR::VPClass::create(vp, (TR::VPClassType*)constraint, NULL, NULL,
TR::VPArrayInfo::create(vp, 0, elementSize == 0 ? TR::getMaxSigned<TR::Int32>() : TR::getMaxSigned<TR::Int32>()/elementSize, elementSize),
TR::VPArrayInfo::create(vp, 0, TR::Compiler->om.maxArraySizeInElements(elementSize, vp->comp()), elementSize),
TR::VPObjectLocation::create(vp, TR::VPObjectLocation::NotClassObject));
}
}
Expand Down

0 comments on commit f8f0d78

Please sign in to comment.