RFR: 8335444: Generalize implementation of AndNode mul_ring [v3]

Jasmine Karthikeyan jkarthikeyan at openjdk.org
Fri Aug 23 03:36:08 UTC 2024


On Mon, 19 Aug 2024 18:07:43 GMT, Quan Anh Mai <qamai at openjdk.org> wrote:

>> Jasmine Karthikeyan has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Check IR before macro expansion
>
> This is really nice. Given Christian's suggestion, what do you think about inferring the unsigned bounds and known bits from the signed bounds, do the calculation there and work back the signed bounds in the end?

Thanks for taking a look, @merykitty! With regard to unsigned and bitwise bounds I was thinking for this patch it might be better to keep everything in the signed domain to keep the patch simple, since AFAIK the analysis to go between the signed domain and the unsigned/bitwise domain can become quite complicated. I think it might be better to do that sort of analysis more generally in the type system, such as what you're doing with #17508. I was thinking this PR could be a sort of baseline for any future improvements using that system. Let me know what you think about this approach, or if you think I should explore unsigned and bitwise bounds in this patch. Thanks!

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

PR Comment: https://git.openjdk.org/jdk/pull/20066#issuecomment-2306115893


More information about the hotspot-compiler-dev mailing list