The *Mod*Node::value methods contain comparisons of the form:
// X MOD X is 0
if (in(1) == in(2)) {
More of these might be added inJDK-8332268
These could be improved by using mod->in(1)->eqv_uncast(mod->in(2)) to see through the cast nodes as discussed here: https://github.com/openjdk/jdk/pull/22061#discussion_r1856621633
// X MOD X is 0
if (in(1) == in(2)) {
More of these might be added in
These could be improved by using mod->in(1)->eqv_uncast(mod->in(2)) to see through the cast nodes as discussed here: https://github.com/openjdk/jdk/pull/22061#discussion_r1856621633
- relates to
-
JDK-8332268 C2: Add missing optimizations for UDivI/L and UModI/L and unify the shared logic with the signed nodes
- Resolved