mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 11:04:34 +02:00
7079317: Incorrect branch's destination block in PrintoOptoAssembly output
Save/restore label and block in scratch_emit_size() Reviewed-by: never
This commit is contained in:
parent
134c40b4db
commit
080f790edc
11 changed files with 84 additions and 85 deletions
|
@ -340,12 +340,11 @@ bool InstructForm::is_ideal_jump() const {
|
|||
return _matrule->is_ideal_jump();
|
||||
}
|
||||
|
||||
// Return 'true' if instruction matches ideal 'If' | 'Goto' |
|
||||
// 'CountedLoopEnd' | 'Jump'
|
||||
// Return 'true' if instruction matches ideal 'If' | 'Goto' | 'CountedLoopEnd'
|
||||
bool InstructForm::is_ideal_branch() const {
|
||||
if( _matrule == NULL ) return false;
|
||||
|
||||
return _matrule->is_ideal_if() || _matrule->is_ideal_goto() || _matrule->is_ideal_jump();
|
||||
return _matrule->is_ideal_if() || _matrule->is_ideal_goto();
|
||||
}
|
||||
|
||||
|
||||
|
@ -383,7 +382,7 @@ bool InstructForm::is_ideal_nop() const {
|
|||
bool InstructForm::is_ideal_control() const {
|
||||
if ( ! _matrule) return false;
|
||||
|
||||
return is_ideal_return() || is_ideal_branch() || is_ideal_halt();
|
||||
return is_ideal_return() || is_ideal_branch() || _matrule->is_ideal_jump() || is_ideal_halt();
|
||||
}
|
||||
|
||||
// Return 'true' if this instruction matches an ideal 'Call' node
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue