mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-20 19:14:38 +02:00
7063628: Use cbcond on T4
Add new short branch instruction to Hotspot sparc assembler. Reviewed-by: never, twisti, jrose
This commit is contained in:
parent
aa16309657
commit
48c1293916
30 changed files with 966 additions and 1097 deletions
|
@ -517,7 +517,17 @@ uint Compile::scratch_emit_size(const Node* n) {
|
|||
buf.stubs()->initialize_shared_locs( &locs_buf[lsize * 2], lsize);
|
||||
|
||||
// Do the emission.
|
||||
|
||||
Label fakeL; // Fake label for branch instructions.
|
||||
bool is_branch = n->is_Branch() && n->as_Mach()->ideal_Opcode() != Op_Jump;
|
||||
if (is_branch) {
|
||||
MacroAssembler masm(&buf);
|
||||
masm.bind(fakeL);
|
||||
n->as_Mach()->label_set(&fakeL, 0);
|
||||
}
|
||||
n->emit(buf, this->regalloc());
|
||||
if (is_branch) // Clear the reference to fake label.
|
||||
n->as_Mach()->label_set(NULL, 0);
|
||||
|
||||
// End scratch_emit_size section.
|
||||
set_in_scratch_emit_size(false);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue