RFR: 8173709: Fix VerifyLoopOptimizations - step 1 - minimal infrastructure [v4]

Vladimir Kozlov kvn at openjdk.org
Thu Mar 30 16:29:31 UTC 2023


On Thu, 30 Mar 2023 06:31:31 GMT, Emanuel Peter <epeter at openjdk.org> wrote:

>> As the comment here says, infinite loops are not attached the first time we run `build_loop_tree`.
>> But from the second time on, we have the `NeverBranch` added, so it has a "fake" exit, and is not really an infinite loop any more, so it will always be found and attached to the loop tree.
>> `this` runs before `loop_verify`, so it is possible that `child` does not have the loop, but `child_verify` finds it. It is not possible the other way around.
>> I can add a comment to the code for that.
>
> Side note:
> Before my patch, we did not check if `loop_verify` had any loops that we did not have in `this`. That is why we did not have to deal with suddenly appearing infinite loops.

Yes, please add comment.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/13207#discussion_r1153505177


More information about the hotspot-compiler-dev mailing list