hg: jdk/jdk: 8236721: C2 should better optimize not-equal integer comparisons

tobias.hartmann at oracle.com tobias.hartmann at oracle.com
Wed Jan 15 07:45:19 UTC 2020


Changeset: 9c53fdf6ba63
Author:    thartmann
Date:      2020-01-15 08:44 +0100
URL:       https://hg.openjdk.java.net/jdk/jdk/rev/9c53fdf6ba63

8236721: C2 should better optimize not-equal integer comparisons
Summary: Narrow the type if an integer value is found to be unequal to it's lower/upper boundary.
Reviewed-by: roland, neliasso

! src/hotspot/share/opto/cfgnode.hpp
! src/hotspot/share/opto/ifnode.cpp
+ test/hotspot/jtreg/compiler/types/TestFoldNECompares.java



More information about the jdk-all-changes mailing list