mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 902009 - Fold ToDouble(ToInt32(v)) conversions, r=jandem.
This commit is contained in:
parent
3e7896d3ed
commit
1276b126cd
@ -1923,6 +1923,10 @@ MToDouble::foldsTo(bool useValueNumbers)
|
||||
}
|
||||
}
|
||||
|
||||
// Fold unnecessary numeric conversions.
|
||||
if (input()->isToInt32())
|
||||
replaceOperand(0, input()->getOperand(0));
|
||||
|
||||
return this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user