# HG changeset patch # User Lukas Stadler # Date 1401292043 -7200 # Node ID da6941811da8546db483128b94aa71c717fc5945 # Parent 451a7e38ebce2f319e8e56d6b0fa7d8006f07784 fast path for IntegerStamp.meet diff -r 451a7e38ebce -r da6941811da8 graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/type/IntegerStamp.java --- a/graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/type/IntegerStamp.java Wed May 28 17:47:23 2014 +0200 +++ b/graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/type/IntegerStamp.java Wed May 28 17:47:23 2014 +0200 @@ -208,6 +208,9 @@ if (!(otherStamp instanceof IntegerStamp)) { return StampFactory.illegal(Kind.Illegal); } + if (equals(otherStamp)) { + return this; + } IntegerStamp other = (IntegerStamp) otherStamp; return createStamp(other, Math.max(upperBound, other.upperBound), Math.min(lowerBound, other.lowerBound), downMask & other.downMask, upMask | other.upMask); }