src/share/vm/opto/mulnode.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File
hotspot Cdiff src/share/vm/opto/mulnode.hpp
src/share/vm/opto/mulnode.hpp
Print this page
rev 10221 : 8149745: C2 should optimize long accumulations in a counted loop
summary: Look for parallel iv for long adds
Reviewed-by:
*** 39,49 ****
// multiply-double, and binary-and are all inherited from this class. The
// various identity values are supplied by virtual functions.
class MulNode : public Node {
virtual uint hash() const;
public:
! MulNode( Node *in1, Node *in2 ): Node(0,in1,in2) {
init_class_id(Class_Mul);
}
// Handle algebraic identities here. If we have an identity, return the Node
// we are equivalent to. We look for "add of zero" as an identity.
--- 39,49 ----
// multiply-double, and binary-and are all inherited from this class. The
// various identity values are supplied by virtual functions.
class MulNode : public Node {
virtual uint hash() const;
public:
! MulNode(Node *in1, Node *in2): Node(0,in1,in2) {
init_class_id(Class_Mul);
}
// Handle algebraic identities here. If we have an identity, return the Node
// we are equivalent to. We look for "add of zero" as an identity.
*** 59,69 ****
// Supplied function returns the product of the inputs.
// This also type-checks the inputs for sanity. Guaranteed never to
// be passed a TOP or BOTTOM type, these are filtered out by a pre-check.
// This call recognizes the multiplicative zero type.
! virtual const Type *mul_ring( const Type *, const Type * ) const = 0;
// Supplied function to return the multiplicative identity type
virtual const Type *mul_id() const = 0;
// Supplied function to return the additive identity type
--- 59,69 ----
// Supplied function returns the product of the inputs.
// This also type-checks the inputs for sanity. Guaranteed never to
// be passed a TOP or BOTTOM type, these are filtered out by a pre-check.
// This call recognizes the multiplicative zero type.
! virtual const Type *mul_ring(const Type*, const Type*) const = 0;
// Supplied function to return the multiplicative identity type
virtual const Type *mul_id() const = 0;
// Supplied function to return the additive identity type
*** 73,82 ****
--- 73,83 ----
virtual int add_opcode() const = 0;
// Supplied function to return the multiplicative opcode
virtual int mul_opcode() const = 0;
+ static MulNode* make(BasicType bt, Node *in1, Node *in2);
};
//------------------------------MulINode---------------------------------------
// Multiply 2 integers
class MulINode : public MulNode {
src/share/vm/opto/mulnode.hpp
Index
Unified diffs
Context diffs
Sdiffs
Patch
New
Old
Previous File
Next File