Skip to content

Commit ac898e9

Browse files
committed
8303278: Imprecise bottom type of ExtractB/UB
Reviewed-by: qamai, thartmann
1 parent a1a9ec6 commit ac898e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/hotspot/share/opto/vectornode.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,7 +1288,7 @@ class ExtractBNode : public ExtractNode {
12881288
public:
12891289
ExtractBNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {}
12901290
virtual int Opcode() const;
1291-
virtual const Type *bottom_type() const { return TypeInt::INT; }
1291+
virtual const Type* bottom_type() const { return TypeInt::BYTE; }
12921292
virtual uint ideal_reg() const { return Op_RegI; }
12931293
};
12941294

@@ -1298,7 +1298,7 @@ class ExtractUBNode : public ExtractNode {
12981298
public:
12991299
ExtractUBNode(Node* src, ConINode* pos) : ExtractNode(src, pos) {}
13001300
virtual int Opcode() const;
1301-
virtual const Type *bottom_type() const { return TypeInt::INT; }
1301+
virtual const Type* bottom_type() const { return TypeInt::UBYTE; }
13021302
virtual uint ideal_reg() const { return Op_RegI; }
13031303
};
13041304

0 commit comments

Comments
 (0)