This is a requested speed optimisation for Leon processors, reducing very slow double floating point operations to use singles. Obviously comes with precision loss and therefore not turned-on by default.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM
Event Timeline
Comment Actions
Added missing unit test and changed command-line invocation. Also added warning message when this optimisation is switched on.
Comment Actions
This seems like the wrong level at which to do such a transformation.
It would be better as a generic IR pass IMO -- but I'm also wondering how this makes sense to even do at all. Why wouldn't code that wants single-float math just do single-float math?
Comment Actions
We were asked to write this optimisation, but we'll revert and ask our customers if they still want this as the point made by James Knight has distinct point. This review may ultimately be cancelled entirely.
Comment Actions
We have discussed this with our customers. We have agreed that this pass does not make sense here and we will therefore cancel this change.