src/share/vm/opto/machnode.cpp

changeset 3882
8c92982cbbc4
parent 3310
6729bbc1fcd6
child 4037
da91efe96a93
equal deleted inserted replaced
3849:eba1d5bce9e8 3882:8c92982cbbc4
1 /* 1 /*
2 * Copyright (c) 1997, 2010, Oracle and/or its affiliates. All rights reserved. 2 * Copyright (c) 1997, 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.
437 return false; 437 return false;
438 438
439 // Don't remateralize somebody with bound inputs - it stretches a 439 // Don't remateralize somebody with bound inputs - it stretches a
440 // fixed register lifetime. 440 // fixed register lifetime.
441 uint idx = oper_input_base(); 441 uint idx = oper_input_base();
442 if( req() > idx ) { 442 if (req() > idx) {
443 const RegMask &rm = in_RegMask(idx); 443 const RegMask &rm = in_RegMask(idx);
444 if( rm.is_bound1() || rm.is_bound2() ) 444 if (rm.is_bound(ideal_reg()))
445 return false; 445 return false;
446 } 446 }
447 447
448 return true; 448 return true;
449 } 449 }

mercurial