We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cb46485 commit 1eef051Copy full SHA for 1eef051
compiler/src/jdk.graal.compiler/src/jdk/graal/compiler/nodes/java/ArrayLengthNode.java
@@ -187,7 +187,7 @@ public void simplify(SimplifierTool tool) {
187
*/
188
public static ValueNode maybeAddPositivePi(ValueNode length, FixedWithNextNode insertionPosition) {
189
StructuredGraph graph = insertionPosition.graph();
190
- ValueNode localLength = graph.addOrUnique(length);
+ ValueNode localLength = graph.addOrUniqueWithInputs(length);
191
ValueNode replacement = localLength;
192
if (!localLength.isConstant() && localLength.stamp(NodeView.DEFAULT).canBeImprovedWith(StampFactory.positiveInt())) {
193
ValueAnchorNode g = graph.add(new ValueAnchorNode());
0 commit comments