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 } |