RFR: 8290248: Implement MaxINode::Ideal transformation
Bhavana-Kilambi
duke at openjdk.org
Mon Aug 1 16:13:00 UTC 2022
This patch implements Ideal transformations for MaxINode, which are
similar to the ones defined for MinINode to transform/optimize a couple
of commonly occuring patterns such as -
MaxI(x + c0, MaxI(y + c1, z)) ==> MaxI(AddI(x, MAX2(c0, c1)), z) when x
== y
MaxI(x + c0, y + c1) ==> AddI(x, MAX2(c0, c1)) when x == y
IR tests to test the Ideal transformations of both MaxI and MinI nodes
are also included in this patch.
-------------
Commit messages:
- 8290248: Implement MaxINode::Ideal transformation
Changes: https://git.openjdk.org/jdk/pull/9703/files
Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=9703&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8290248
Stats: 202 lines in 4 files changed: 201 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/9703.diff
Fetch: git fetch https://git.openjdk.org/jdk pull/9703/head:pull/9703
PR: https://git.openjdk.org/jdk/pull/9703
More information about the hotspot-compiler-dev
mailing list