RFR: 8274328: C2: Redundant CFG edges fixup in block ordering [v2]

Yi Yang yyang at openjdk.java.net
Mon Nov 1 07:40:48 UTC 2021


On Thu, 28 Oct 2021 07:38:04 GMT, Tobias Hartmann <thartmann at openjdk.org> wrote:

>> Yi Yang has updated the pull request with a new target base due to a merge or a rebase. The incremental webrev excludes the unrelated changes brought in by the merge/rebase. The pull request contains three additional commits since the last revision:
>> 
>>  - use swap(ref,ref)
>>  - Merge branch 'master' into blockordering
>>  - 8274328: C2: Redundant CFG edges fixup in block ordering
>
> src/hotspot/share/opto/block.cpp line 916:
> 
>> 914:         ProjNode* tmp = proj0;
>> 915:         proj0 = proj1;
>> 916:         proj1 = tmp;
> 
> `swap(proj0, proj1)` can be used here.

Thanks Tobias for review. I have replaced above code with `swap(pointer ref,pointer ref)`

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

PR: https://git.openjdk.java.net/jdk/pull/5705


More information about the hotspot-compiler-dev mailing list