This patch eliminates library calls and intrinsic calls to fabs when the input is a squared value.
This pattern will occur when a subsequent patch that I am working on to optimize sqrt calls is introduced, so I thought it'd be better to send this one out for review first because it's smaller.
Note that no unsafe-math / fast-math assumptions are needed for this optimization.
Details
Details
Diff Detail
Diff Detail
- Repository
- rL LLVM