RFR: 8324655: Identify integer minimum and maximum patterns created with if statements
Aleksey Shipilev
shade at openjdk.org
Fri Jan 26 09:55:36 UTC 2024
On Thu, 25 Jan 2024 18:59:23 GMT, Jasmine Karthikeyan <jkarthikeyan at openjdk.org> wrote:
> Ah true, I hadn't considered that- do you think it makes sense to only do the transform if the if statement isn't highly predictable?
Yeah, I think if this is effectively translating branches to cmovs, it should be gated by cmov conversion heuristics somehow. Not sure how to do this cleanly, given the choice for cmov-s for min/max is done only later in matching rules.
-------------
PR Comment: https://git.openjdk.org/jdk/pull/17574#issuecomment-1911769670
More information about the hotspot-compiler-dev
mailing list