RFR: 8342692: C2: long counted loop/long range checks: don't create loop-nest for short running loops [v22]

Christian Hagedorn chagedorn at openjdk.org
Wed May 21 08:40:12 UTC 2025


On Wed, 21 May 2025 07:49:01 GMT, Roland Westrelin <roland at openjdk.org> wrote:

>> src/hotspot/share/opto/loopnode.hpp line 219:
>> 
>>> 217: 
>>> 218:   virtual void set_trip_count(julong tc) = 0;
>>> 219:   virtual julong trip_count() = 0;
>> 
>> GitHub Actions seems to disagree with something here ;)
>> 
>> /home/runner/work/jdk/jdk/src/hotspot/share/opto/loopnode.hpp:219:18: error: ‘virtual julong BaseCountedLoopNode::trip_count()’ was hidden [-Werror=overloaded-virtual]
>>   219 |   virtual julong trip_count() = 0;
>>       |                  ^~~~~~~~~~
>> /home/runner/work/jdk/jdk/src/hotspot/share/opto/loopnode.hpp:310:10: note:   by ‘julong CountedLoopNode::trip_count() const’
>>   310 |   julong trip_count() const      { return _trip_count; }
>>       |          ^~~~~~~~~~
>
> Right. I wasn't done with @chhagedorn 's review. I was waiting for the answer to: https://github.com/openjdk/jdk/pull/21630#discussion_r2091476799
> I pushed those changes now (but I still need Christian to clarify his comment)

Sorry, lacking behind a little. Answered above :-)

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21630#discussion_r2099707530


More information about the hotspot-compiler-dev mailing list