Mercurial > hg > graal-jvmci-8
comparison src/share/vm/opto/loopopts.cpp @ 108:a761c2d3b76a
6684385: Loop unswitching crashes without LoopNode
Summary: Without LoopNode, exit early from loop unswitching and partial peeling
Reviewed-by: kvn, never, sgoldman
author | rasbold |
---|---|
date | Wed, 09 Apr 2008 09:25:45 -0700 |
parents | 8bb88f9877e5 |
children | c436414a719e |
comparison
equal
deleted
inserted
replaced
107:93b6525e3b82 | 108:a761c2d3b76a |
---|---|
2255 // v | 2255 // v |
2256 // exitA | 2256 // exitA |
2257 // | 2257 // |
2258 bool PhaseIdealLoop::partial_peel( IdealLoopTree *loop, Node_List &old_new ) { | 2258 bool PhaseIdealLoop::partial_peel( IdealLoopTree *loop, Node_List &old_new ) { |
2259 | 2259 |
2260 if (!loop->_head->is_Loop()) { | |
2261 return false; } | |
2262 | |
2260 LoopNode *head = loop->_head->as_Loop(); | 2263 LoopNode *head = loop->_head->as_Loop(); |
2261 | 2264 |
2262 if (head->is_partial_peel_loop() || head->partial_peel_has_failed()) { | 2265 if (head->is_partial_peel_loop() || head->partial_peel_has_failed()) { |
2263 return false; | 2266 return false; |
2264 } | 2267 } |