There are several policies/heuristics in C2's loop optimizations. For example, IdealLoopTree::policy_peeling decides based on the node count if peeling should be attempted. We should add a stress flag that randomizes these decision (50/50 or so).
We should also consider not hardcoding values like LoopNode::_unswitch_max.
We should also consider not hardcoding values like LoopNode::_unswitch_max.
- is blocked by
-
JDK-8288981 C2: Fix issues with skeleton predicates
- In Progress