Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
8264957: Cleanup unused array Type::dual_type
Reviewed-by: jiefu, neliasso, thartmann
  • Loading branch information
Xiaohong Gong authored and Ningsheng Jian committed Apr 13, 2021
1 parent 954b9a1 commit 1935655
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 43 deletions.
41 changes: 0 additions & 41 deletions src/hotspot/share/opto/type.cpp
Expand Up @@ -993,47 +993,6 @@ const Type *Type::filter_helper(const Type *kills, bool include_speculative) con
}

//------------------------------xdual------------------------------------------
// Compute dual right now.
const Type::TYPES Type::dual_type[Type::lastype] = {
Bad, // Bad
Control, // Control
Bottom, // Top
Bad, // Int - handled in v-call
Bad, // Long - handled in v-call
Half, // Half
Bad, // NarrowOop - handled in v-call
Bad, // NarrowKlass - handled in v-call

Bad, // Tuple - handled in v-call
Bad, // Array - handled in v-call
Bad, // VectorA - handled in v-call
Bad, // VectorS - handled in v-call
Bad, // VectorD - handled in v-call
Bad, // VectorX - handled in v-call
Bad, // VectorY - handled in v-call
Bad, // VectorZ - handled in v-call

Bad, // AnyPtr - handled in v-call
Bad, // RawPtr - handled in v-call
Bad, // OopPtr - handled in v-call
Bad, // InstPtr - handled in v-call
Bad, // AryPtr - handled in v-call

Bad, // MetadataPtr - handled in v-call
Bad, // KlassPtr - handled in v-call

Bad, // Function - handled in v-call
Abio, // Abio
Return_Address,// Return_Address
Memory, // Memory
FloatBot, // FloatTop
FloatCon, // FloatCon
FloatTop, // FloatBot
DoubleBot, // DoubleTop
DoubleCon, // DoubleCon
DoubleTop, // DoubleBot
Top // Bottom
};

const Type *Type::xdual() const {
// Note: the base() accessor asserts the sanity of _base.
Expand Down
2 changes: 0 additions & 2 deletions src/hotspot/share/opto/type.hpp
Expand Up @@ -163,8 +163,6 @@ class Type {
// join to ensure my lattice is symmetric up and down. Dual is computed
// lazily, on demand, and cached in _dual.
const Type *_dual; // Cached dual value
// Table for efficient dualing of base types
static const TYPES dual_type[lastype];

#ifdef ASSERT
// One type is interface, the other is oop
Expand Down

1 comment on commit 1935655

@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.