Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

8264957: Cleanup unused array Type::dual_type #3410

Closed
wants to merge 2 commits into from
Closed
Changes from 1 commit
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
@@ -993,48 +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, // VectorMask - 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.
@@ -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