Bug 902009 - Fold ToDouble(ToInt32(v)) conversions, r=jandem.

This commit is contained in:
Brian Hackett 2013-08-06 15:11:56 -06:00
parent 3e7896d3ed
commit 1276b126cd

View File

@ -1923,6 +1923,10 @@ MToDouble::foldsTo(bool useValueNumbers)
}
}
// Fold unnecessary numeric conversions.
if (input()->isToInt32())
replaceOperand(0, input()->getOperand(0));
return this;
}