Skip to content

Commit

Permalink
8248671: AArch64: Remove unused variables
Browse files Browse the repository at this point in the history
Remove unused variables in the AArch64 backend. Detected by compiling with MSVC, which warns about them.

Reviewed-by: aph, dholmes
  • Loading branch information
lewurm committed Jul 21, 2020
1 parent 9ff01f7 commit dff37f8
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 2 deletions.
1 change: 0 additions & 1 deletion src/hotspot/cpu/aarch64/c1_LIRAssembler_aarch64.cpp
Expand Up @@ -2284,7 +2284,6 @@ void LIR_Assembler::emit_arraycopy(LIR_OpArrayCopy* op) {
assert(default_type != NULL && default_type->is_array_klass() && default_type->is_loaded(), "must be true at this point"); assert(default_type != NULL && default_type->is_array_klass() && default_type->is_loaded(), "must be true at this point");


int elem_size = type2aelembytes(basic_type); int elem_size = type2aelembytes(basic_type);
int shift_amount;
int scale = exact_log2(elem_size); int scale = exact_log2(elem_size);


Address src_length_addr = Address(src, arrayOopDesc::length_offset_in_bytes()); Address src_length_addr = Address(src, arrayOopDesc::length_offset_in_bytes());
Expand Down
1 change: 0 additions & 1 deletion src/hotspot/cpu/aarch64/stubGenerator_aarch64.cpp
Expand Up @@ -697,7 +697,6 @@ class StubGenerator: public StubCodeGenerator {
int unit = wordSize * direction; int unit = wordSize * direction;
int bias = (UseSIMDForMemoryOps ? 4:2) * wordSize; int bias = (UseSIMDForMemoryOps ? 4:2) * wordSize;


int offset;
const Register t0 = r3, t1 = r4, t2 = r5, t3 = r6, const Register t0 = r3, t1 = r4, t2 = r5, t3 = r6,
t4 = r7, t5 = r10, t6 = r11, t7 = r12; t4 = r7, t5 = r10, t6 = r11, t7 = r12;
const Register stride = r13; const Register stride = r13;
Expand Down

0 comments on commit dff37f8

Please sign in to comment.