Missing optimisation: strength reduction of floating-point multiplication
e.g. x * 2.0 should turn into x + x. See #2253 (closed) (program 6) for an example.
Whether this is best done as a builtin RULE or in cmmMachOpFold, or possibly both, I don't know.
Trac metadata
| Trac field | Value |
|---|---|
| Version | 7.4.2 |
| Type | Bug |
| TypeOfFailure | OtherFailure |
| Priority | normal |
| Resolution | Unresolved |
| Component | Compiler |
| Test case | |
| Differential revisions | |
| BlockedBy | |
| Related | |
| Blocking | |
| CC | |
| Operating system | |
| Architecture |