Skip to content

Commit

Permalink
8303278: Imprecise bottom type of ExtractB/UB
Browse files Browse the repository at this point in the history
Reviewed-by: qamai, thartmann
  • Loading branch information
e1iu committed Apr 4, 2023
1 parent a1a9ec6 commit ac898e9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hotspot/share/opto/vectornode.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ class ExtractBNode : public ExtractNode {
public:
ExtractBNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {}
virtual int Opcode() const;
virtual const Type *bottom_type() const { return TypeInt::INT; }
virtual const Type* bottom_type() const { return TypeInt::BYTE; }
virtual uint ideal_reg() const { return Op_RegI; }
};

Expand All @@ -1298,7 +1298,7 @@ class ExtractUBNode : public ExtractNode {
public:
ExtractUBNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {}
virtual int Opcode() const;
virtual const Type *bottom_type() const { return TypeInt::INT; }
virtual const Type* bottom_type() const { return TypeInt::UBYTE; }
virtual uint ideal_reg() const { return Op_RegI; }
};

Expand Down

1 comment on commit ac898e9

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