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
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D62747
[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 Event TimelineThis revision is now accepted and ready to land.May 31 2019, 1:37 PM Closed by commit rL362304: [InlineCost] Don't add the soft float function call cost for the fneg idiom… (authored by ctopper). · Explain WhyJun 1 2019, 12:38 PM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 202474 llvm/lib/Analysis/InlineCost.cpp
llvm/test/Transforms/Inline/ARM/inline-fp.ll
|
"it's"