src/share/vm/opto/subnode.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File
*** old/src/share/vm/opto/subnode.cpp	Fri Feb 12 16:44:37 2016
--- new/src/share/vm/opto/subnode.cpp	Fri Feb 12 16:44:36 2016

*** 109,118 **** --- 109,129 ---- const Type* t2 = phase->type(in(2)); return sub(t1,t2); // Local flavor of type subtraction } + SubNode* SubNode::make(BasicType bt, Node *in1, Node *in2) { + switch(bt) { + case T_INT: return new SubINode(in1, in2); + case T_LONG: return new SubLNode(in1, in2); + case T_FLOAT: return new SubFNode(in1, in2); + case T_DOUBLE: return new SubDNode(in1, in2); + } + fatal("Bad basic type %s", type2name(bt)); + return NULL; + } + //============================================================================= //------------------------------Helper function-------------------------------- static bool ok_to_convert(Node* inc, Node* iv) { // Do not collapse (x+c0)-y if "+" is a loop increment, because the

src/share/vm/opto/subnode.cpp
Index Unified diffs Context diffs Sdiffs Patch New Old Previous File Next File