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

chris.hegarty at oracle.com chris.hegarty at oracle.com
Wed Jan 15 08:00:13 UTC 2020


Changeset: 9c53fdf6ba63
Author:    thartmann
Date:      2020-01-15 08:44 +0100
URL:       https://hg.openjdk.java.net/jdk/sandbox/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-sandbox-changes mailing list