Skip to content
Permalink
Browse files
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 1935655622226421797ea9109bebd4a00fe60402
Showing with 0 additions and 43 deletions.
  1. +0 −41 src/hotspot/share/opto/type.cpp
  2. +0 −2 src/hotspot/share/opto/type.hpp
@@ -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.
@@ -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

1 comment on commit 1935655

@openjdk-notifier

This comment has been minimized.

Copy link

@openjdk-notifier openjdk-notifier bot commented on 1935655 Apr 13, 2021

Please sign in to comment.