8303278: Imprecise bottom type of ExtractB/UB

Reviewed-by: qamai, thartmann
This commit is contained in:
Eric Liu 2023-04-04 01:18:10 +00:00
parent a1a9ec6e46
commit ac898e9051

@ -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; }
};
@ -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; }
};