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.
2 parents 3b5860a + 1eef051 commit 91b4aafCopy full SHA for 91b4aaf
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