|
|
|
|
|
by amelius
2756 days ago
|
|
Because it's more work for the compiler to reduce the expression to something canonical (and it might even be impossible). Also what good will it bring? What if the canonical expression triggers the slow path? Now you have no means to change it into the fast version. Further, in the case of floating point operations, operation order matters for rounding. And with integer operations, the actual form used can be important for preventing overflow (of intermediate results). |
|