Skip to content
Permalink
Browse files

8242090: Remove dead code from c1_LIR

Removed dead code.

Reviewed-by: redestad
  • Loading branch information
TobiHartmann committed Apr 6, 2020
1 parent b73460b commit 722a18d31ea609a9fc9c1031a6c7b10853d22311
Showing with 0 additions and 35 deletions.
  1. +0 −19 src/hotspot/share/c1/c1_LIR.cpp
  2. +0 −7 src/hotspot/share/c1/c1_LIR.hpp
  3. +0 −9 src/hotspot/share/c1/c1_LIRAssembler.cpp
@@ -72,21 +72,6 @@ LIR_Opr LIR_OprFact::value_type(ValueType* type) {
}


LIR_Opr LIR_OprFact::dummy_value_type(ValueType* type) {
switch (type->tag()) {
case objectTag: return LIR_OprFact::oopConst(NULL);
case addressTag:return LIR_OprFact::addressConst(0);
case intTag: return LIR_OprFact::intConst(0);
case floatTag: return LIR_OprFact::floatConst(0.0);
case longTag: return LIR_OprFact::longConst(0);
case doubleTag: return LIR_OprFact::doubleConst(0.0);
default: ShouldNotReachHere(); return LIR_OprFact::intConst(-1);
}
return illegalOpr;
}



//---------------------------------------------------


@@ -420,9 +405,7 @@ void LIR_OpVisitState::visit(LIR_Op* op) {
switch (op->code()) {

// LIR_Op0
case lir_word_align: // result and info always invalid
case lir_backwardbranch_target: // result and info always invalid
case lir_build_frame: // result and info always invalid
case lir_fpop_raw: // result and info always invalid
case lir_breakpoint: // result and info always invalid
case lir_membar: // result and info always invalid
@@ -1637,14 +1620,12 @@ const char * LIR_Op::name() const {
case lir_membar_storestore: s = "membar_storestore"; break;
case lir_membar_loadstore: s = "membar_loadstore"; break;
case lir_membar_storeload: s = "membar_storeload"; break;
case lir_word_align: s = "word_align"; break;
case lir_label: s = "label"; break;
case lir_nop: s = "nop"; break;
case lir_on_spin_wait: s = "on_spin_wait"; break;
case lir_backwardbranch_target: s = "backbranch"; break;
case lir_std_entry: s = "std_entry"; break;
case lir_osr_entry: s = "osr_entry"; break;
case lir_build_frame: s = "build_frm"; break;
case lir_fpop_raw: s = "fpop_raw"; break;
case lir_breakpoint: s = "breakpoint"; break;
case lir_get_thread: s = "get_thread"; break;
@@ -834,7 +834,6 @@ class LIR_OprFact: public AllStatic {
static LIR_Opr metadataConst(Metadata* m) { return (LIR_Opr)(new LIR_Const(m)); }

static LIR_Opr value_type(ValueType* type);
static LIR_Opr dummy_value_type(ValueType* type);
};


@@ -880,13 +879,11 @@ class LIR_OpAssert;
enum LIR_Code {
lir_none
, begin_op0
, lir_word_align
, lir_label
, lir_nop
, lir_backwardbranch_target
, lir_std_entry
, lir_osr_entry
, lir_build_frame
, lir_fpop_raw
, lir_breakpoint
, lir_rtcall
@@ -2052,7 +2049,6 @@ class LIR_List: public CompilationResourceObj {
}

void get_thread(LIR_Opr result) { append(new LIR_Op0(lir_get_thread, result)); }
void word_align() { append(new LIR_Op0(lir_word_align)); }
void membar() { append(new LIR_Op0(lir_membar)); }
void membar_acquire() { append(new LIR_Op0(lir_membar_acquire)); }
void membar_release() { append(new LIR_Op0(lir_membar_release)); }
@@ -2062,7 +2058,6 @@ class LIR_List: public CompilationResourceObj {
void membar_storeload() { append(new LIR_Op0(lir_membar_storeload)); }

void nop() { append(new LIR_Op0(lir_nop)); }
void build_frame() { append(new LIR_Op0(lir_build_frame)); }

void std_entry(LIR_Opr receiver) { append(new LIR_Op0(lir_std_entry, receiver)); }
void osr_entry(LIR_Opr osrPointer) { append(new LIR_Op0(lir_osr_entry, osrPointer)); }
@@ -2235,8 +2230,6 @@ class LIR_List: public CompilationResourceObj {

void update_crc32(LIR_Opr crc, LIR_Opr val, LIR_Opr res) { append(new LIR_OpUpdateCRC32(crc, val, res)); }

void fpop_raw() { append(new LIR_Op0(lir_fpop_raw)); }

void instanceof(LIR_Opr result, LIR_Opr object, ciKlass* klass, LIR_Opr tmp1, LIR_Opr tmp2, LIR_Opr tmp3, bool fast_check, CodeEmitInfo* info_for_patch, ciMethod* profiled_method, int profiled_bci);
void store_check(LIR_Opr object, LIR_Opr array, LIR_Opr tmp1, LIR_Opr tmp2, LIR_Opr tmp3, CodeEmitInfo* info_for_exception, ciMethod* profiled_method, int profiled_bci);

@@ -595,11 +595,6 @@ void LIR_Assembler::emit_op1(LIR_Op1* op) {

void LIR_Assembler::emit_op0(LIR_Op0* op) {
switch (op->code()) {
case lir_word_align: {
_masm->align(BytesPerWord);
break;
}

case lir_nop:
assert(op->info() == NULL, "not supported");
_masm->nop();
@@ -609,10 +604,6 @@ void LIR_Assembler::emit_op0(LIR_Op0* op) {
Unimplemented();
break;

case lir_build_frame:
build_frame();
break;

case lir_std_entry:
// init offsets
offsets()->set_value(CodeOffsets::OSR_Entry, _masm->offset());

0 comments on commit 722a18d

Please sign in to comment.