6686791: Side effect in NumberFormat tests with -server -Xcomp

Optimization in CmpPNode::sub() removed the valid compare instruction because of false positive answer from detect_dominating_control().

Reviewed-by: jrose, sgoldman
This commit is contained in:
Vladimir Kozlov 2008-04-16 19:19:48 -07:00
parent 997563be5d
commit df8fc19aac
4 changed files with 183 additions and 28 deletions

View file

@ -817,6 +817,12 @@ public:
// for the transformations to happen.
bool has_special_unique_user() const;
// Skip Proj and CatchProj nodes chains. Check for Null and Top.
Node* find_exact_control(Node* ctrl);
// Check if 'this' node dominates or equal to 'sub'.
bool dominates(Node* sub, Node_List &nlist);
protected:
bool remove_dead_region(PhaseGVN *phase, bool can_reshape);
public: