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

@ -70,7 +70,7 @@ public:
static Node *optimize_simple_memory_chain(Node *mchain, const TypePtr *t_adr, PhaseGVN *phase);
static Node *optimize_memory_chain(Node *mchain, const TypePtr *t_adr, PhaseGVN *phase);
// This one should probably be a phase-specific function:
static bool detect_dominating_control(Node* dom, Node* sub);
static bool all_controls_dominate(Node* dom, Node* sub);
// Is this Node a MemNode or some descendent? Default is YES.
virtual Node *Ideal_DU_postCCP( PhaseCCP *ccp );