Mercurial > hg > graal-compiler
comparison src/share/vm/opto/ifnode.cpp @ 14909:4ca6dc0799b6
Backout jdk9 merge
author | Gilles Duboscq <duboscq@ssw.jku.at> |
---|---|
date | Tue, 01 Apr 2014 13:57:07 +0200 |
parents | cd5d10655495 |
children | 89152779163c |
comparison
equal
deleted
inserted
replaced
14908:8db6e76cb658 | 14909:4ca6dc0799b6 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2000, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
74 // Look for a compare of a constant and a merged value | 74 // Look for a compare of a constant and a merged value |
75 Node *i1 = iff->in(1); | 75 Node *i1 = iff->in(1); |
76 if( !i1->is_Bool() ) return NULL; | 76 if( !i1->is_Bool() ) return NULL; |
77 BoolNode *b = i1->as_Bool(); | 77 BoolNode *b = i1->as_Bool(); |
78 Node *cmp = b->in(1); | 78 Node *cmp = b->in(1); |
79 if( cmp->is_FlagsProj() ) return NULL; | |
79 if( !cmp->is_Cmp() ) return NULL; | 80 if( !cmp->is_Cmp() ) return NULL; |
80 i1 = cmp->in(1); | 81 i1 = cmp->in(1); |
81 if( i1 == NULL || !i1->is_Phi() ) return NULL; | 82 if( i1 == NULL || !i1->is_Phi() ) return NULL; |
82 PhiNode *phi = i1->as_Phi(); | 83 PhiNode *phi = i1->as_Phi(); |
83 if( phi->is_copy() ) return NULL; | 84 if( phi->is_copy() ) return NULL; |