A DESCRIPTION OF THE PROBLEM :
A new ideal optimization can be introduced for addnode: converting "x + x" into "x << 1".
// Convert "x + x" into "x << 1"
if (in1 == in2) {
return new LShiftINode(in1, phase->intcon(1));
}
Will submit a pull request associated with this.
A new ideal optimization can be introduced for addnode: converting "x + x" into "x << 1".
// Convert "x + x" into "x << 1"
if (in1 == in2) {
return new LShiftINode(in1, phase->intcon(1));
}
Will submit a pull request associated with this.
- relates to
-
JDK-8288564 C2: LShiftLNode::Ideal produces wrong result after JDK-8278114
-
- Closed
-
-
JDK-8279485 Incorrect copyright year in compiler/lib/ir_framework/IRNode.java after JDK-8278114
-
- Resolved
-