hg: jdk9/hs-comp/hotspot: 8043284: Optimize signed integer comparison

albert.noll at oracle.com albert.noll at oracle.com
Mon Aug 11 13:01:40 UTC 2014


Changeset: 954700ff3322
Author:    thartmann
Date:      2014-08-11 13:01 +0200
URL:       http://hg.openjdk.java.net/jdk9/hs-comp/hotspot/rev/954700ff3322

8043284: Optimize signed integer comparison
Summary: Folding of BoolNode if input add/sub of CmpI overflows and we can prove that compared value is not in the two resulting ranges. Added test for CmpI and CmpU optimizations.
Reviewed-by: kvn, rbackman, roland

! src/share/vm/opto/subnode.cpp
! src/share/vm/opto/subnode.hpp
+ test/compiler/IntegerArithmetic/TestIntegerComparison.java



More information about the jdk9-hs-comp-changes mailing list