Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8262259: Remove unused variable in MethodLiveness::BasicBlock::comput…
…e_gen_kill_single

Reviewed-by: stuefe, thartmann
  • Loading branch information
zhengyu123 committed Feb 24, 2021
1 parent 0d2dbd2 commit 8c07063
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/hotspot/share/compiler/methodLiveness.cpp
@@ -1,5 +1,5 @@
/*
* Copyright (c) 1998, 2019, Oracle and/or its affiliates. All rights reserved.
* Copyright (c) 1998, 2021, Oracle and/or its affiliates. All rights reserved.
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* This code is free software; you can redistribute it and/or modify it
Expand Down Expand Up @@ -467,8 +467,6 @@ void MethodLiveness::BasicBlock::compute_gen_kill_range(ciBytecodeStream *bytes)
}

void MethodLiveness::BasicBlock::compute_gen_kill_single(ciBytecodeStream *instruction) {
int localNum;

// We prohibit _gen and _kill from having locals in common. If we
// know that one is definitely going to be applied before the other,
// we could save some computation time by relaxing this prohibition.
Expand Down Expand Up @@ -693,7 +691,7 @@ void MethodLiveness::BasicBlock::compute_gen_kill_single(ciBytecodeStream *instr

case Bytecodes::_lstore:
case Bytecodes::_dstore:
store_two(localNum = instruction->get_index());
store_two(instruction->get_index());
break;

case Bytecodes::_lstore_0:
Expand Down

1 comment on commit 8c07063

@openjdk-notifier
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.