diff options
author | 2024-08-02 12:29:50 -0700 | |
---|---|---|
committer | 2024-08-06 16:17:56 +0000 | |
commit | 6d0c6524abaef7a7c7ff3c0f409c2a4b1f0a6246 (patch) | |
tree | dd4b088b8e5ced044a847c3d5314c30a66f74c8d | |
parent | 430d5fb274f3fe1a20caacc2befbe55d0a2d67f4 (diff) |
Remove unused variables.
Test: Builds with -Wunused-variable
Change-Id: I151f837b7d17f0156f0e6bc889ad26ac064b7dae
-rw-r--r-- | compiler/optimizing/code_generator_arm64.cc | 1 | ||||
-rw-r--r-- | compiler/optimizing/load_store_elimination.cc | 1 | ||||
-rw-r--r-- | compiler/utils/riscv64/assembler_riscv64.cc | 1 | ||||
-rw-r--r-- | test/2246-trace-v2/dump_trace.cc | 1 |
4 files changed, 0 insertions, 4 deletions
diff --git a/compiler/optimizing/code_generator_arm64.cc b/compiler/optimizing/code_generator_arm64.cc index 400f9183f0..d6375f8b59 100644 --- a/compiler/optimizing/code_generator_arm64.cc +++ b/compiler/optimizing/code_generator_arm64.cc @@ -829,7 +829,6 @@ class TracingMethodEntryExitHooksSlowPathARM64 : public SlowPathCodeARM64 { void EmitNativeCode(CodeGenerator* codegen) override { QuickEntrypointEnum entry_point = (is_method_entry_) ? kQuickRecordEntryTraceEvent : kQuickRecordExitTraceEvent; - CodeGeneratorARM64* arm64_codegen = down_cast<CodeGeneratorARM64*>(codegen); vixl::aarch64::Label call; __ Bind(GetEntryLabel()); uint32_t entrypoint_offset = GetThreadOffset<kArm64PointerSize>(entry_point).Int32Value(); diff --git a/compiler/optimizing/load_store_elimination.cc b/compiler/optimizing/load_store_elimination.cc index 7441e28e77..f9bcc4860d 100644 --- a/compiler/optimizing/load_store_elimination.cc +++ b/compiler/optimizing/load_store_elimination.cc @@ -1365,7 +1365,6 @@ void LSEVisitor::PrepareLoopRecords(HBasicBlock* block) { heap_values.resize(num_heap_locations, {/*value=*/Value::Unknown(), /*stored_by=*/Value::Unknown()}); // Also keep the stores before the loop header, including in blocks that were not visited yet. - bool is_osr = GetGraph()->IsCompilingOsr(); for (size_t idx = 0u; idx != num_heap_locations; ++idx) { KeepStores(Value::ForLoopPhiPlaceholder(GetPhiPlaceholder(block->GetBlockId(), idx))); } diff --git a/compiler/utils/riscv64/assembler_riscv64.cc b/compiler/utils/riscv64/assembler_riscv64.cc index 4309601d21..69f54e8ded 100644 --- a/compiler/utils/riscv64/assembler_riscv64.cc +++ b/compiler/utils/riscv64/assembler_riscv64.cc @@ -69,7 +69,6 @@ void Riscv64Assembler::FinalizeCode() { void Riscv64Assembler::Lui(XRegister rd, uint32_t imm20) { if (IsExtensionEnabled(Riscv64Extension::kZca)) { - int32_t simm = static_cast<int32_t>(imm20); if (rd != Zero && rd != SP && IsImmCLuiEncodable(imm20)) { CLui(rd, imm20); return; diff --git a/test/2246-trace-v2/dump_trace.cc b/test/2246-trace-v2/dump_trace.cc index 68e5661808..4dfc42ef4b 100644 --- a/test/2246-trace-v2/dump_trace.cc +++ b/test/2246-trace-v2/dump_trace.cc @@ -185,7 +185,6 @@ bool ProcessTraceEntries(std::unique_ptr<File>& file, int64_t prev_method_value = 0; for (int i = 0; i < num_records; i++) { int64_t diff = 0; - auto buffer_ptr = current_buffer_ptr; if (!DecodeSignedLeb128Checked(¤t_buffer_ptr, buffer + total_size - 1, &diff)) { LOG(FATAL) << "Reading past the buffer???"; } |