Page MenuHomePhabricator

[InlineCost] Don't add the soft float functional call cost for the fneg idiom, fsub -0.0, %x
ClosedPublic

Authored by craig.topper on May 31 2019, 1:29 PM.

Details

Summary

Fneg can be implemented with an xor rather than a function call so we don't need to add the function call overhead. This was pointed out in D62699

Diff Detail

Repository
rL LLVM

Event Timeline

craig.topper created this revision.May 31 2019, 1:29 PM
efriedma accepted this revision.May 31 2019, 1:37 PM

LGTM

llvm/lib/Analysis/InlineCost.cpp
1099 ↗(On Diff #202474)

"it's"

This revision is now accepted and ready to land.May 31 2019, 1:37 PM
This revision was automatically updated to reflect the committed changes.