hotspot/src/share/vm/opto/loopPredicate.cpp
changeset 46630 75aa3e39d02c
parent 37287 c2660335bf81
child 46735 219c4312853e
equal deleted inserted replaced
46629:8eeacdc76bf2 46630:75aa3e39d02c
     1 /*
     1 /*
     2  * Copyright (c) 2011, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2011, 2017, 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.
   660   }
   660   }
   661 
   661 
   662   if (offset && (!offset->is_Con() || offset->get_int() != 0)){
   662   if (offset && (!offset->is_Con() || offset->get_int() != 0)){
   663     max_idx_expr = new AddINode(max_idx_expr, offset);
   663     max_idx_expr = new AddINode(max_idx_expr, offset);
   664     register_new_node(max_idx_expr, ctrl);
   664     register_new_node(max_idx_expr, ctrl);
   665     if (TraceLoopPredicate)
   665     if (TraceLoopPredicate) {
   666       if (offset->is_Con()) predString->print("+ %d ", offset->get_int());
   666       if (offset->is_Con()) {
   667       else predString->print("+ offset ");
   667         predString->print("+ %d ", offset->get_int());
       
   668       } else {
       
   669         predString->print("+ offset ");
       
   670       }
       
   671     }
   668   }
   672   }
   669 
   673 
   670   CmpUNode* cmp = new CmpUNode(max_idx_expr, range);
   674   CmpUNode* cmp = new CmpUNode(max_idx_expr, range);
   671   register_new_node(cmp, ctrl);
   675   register_new_node(cmp, ctrl);
   672   BoolNode* bol = new BoolNode(cmp, BoolTest::lt);
   676   BoolNode* bol = new BoolNode(cmp, BoolTest::lt);