RFR: JDK-8153837: AArch64: Handle special cases for MaxINode & MinINode [v2]

Dmitry Chuyko dchuyko at openjdk.org
Mon Dec 19 08:24:53 UTC 2022


On Mon, 19 Dec 2022 06:58:18 GMT, Xiaohong Gong <xgong at openjdk.org> wrote:

> It sounds more sense to me if the ideal can make sure the constant input is the right child like what you did in the last commit. So that we only need the first rule like other commutative ops.

To achieve that we will have to change max(max[...]) and max(add[...]) optimizations. For example the latter likely will have to look into both inputs. I.e. if we order Max to the left and Con to the right, Add can appear at any side etc. - any fixed order for 2 of 3 means not guaranteed order for the third one.

-------------

PR: https://git.openjdk.org/jdk/pull/11570


More information about the hotspot-compiler-dev mailing list