Skip to content

Commit

Permalink
Update src/hotspot/share/opto/loopUnswitch.cpp
Browse files Browse the repository at this point in the history
Co-authored-by: Emanuel Peter <emanuel.peter@oracle.com>
  • Loading branch information
chhagedorn and eme64 authored Feb 14, 2024
1 parent 17c27a5 commit 2e0d2a3
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions src/hotspot/share/opto/loopUnswitch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -156,12 +156,8 @@ class UnswitchedLoopSelector : public StackObj {

IfProjNode* create_proj_to_loop(const PathToLoop path_to_loop) {
const uint dom_depth = _phase->dom_depth(_original_loop_entry);
IfProjNode* proj_to_loop;
if (path_to_loop == TRUE_PATH) {
proj_to_loop = new IfTrueNode(_selector);
} else {
proj_to_loop = new IfFalseNode(_selector);
}
IfProjNode* proj_to_loop = (path_to_loop == TRUE_PATH) ? new IfTrueNode(_selector)
new IfFalseNode(_selector);
_phase->register_node(proj_to_loop, _outer_loop, _selector, dom_depth);
return proj_to_loop;
}
Expand Down

0 comments on commit 2e0d2a3

Please sign in to comment.