Add generic costs calculation for UADDSAT/USUBSAT intrinsics, this fallbacks to using generic costs for uadd_with_overflow/usub_with_overflow + a select.
Added x86 scalar uadd_with_overflow/usub_with_overflow costs.
Paths
| Differential D56907
[TTI] Add generic UADDSAT/USUBSAT and UADDO/USUBO costs ClosedPublic Authored by RKSimon on Jan 18 2019, 7:05 AM.
Details Summary Add generic costs calculation for UADDSAT/USUBSAT intrinsics, this fallbacks to using generic costs for uadd_with_overflow/usub_with_overflow + a select. Added x86 scalar uadd_with_overflow/usub_with_overflow costs.
Diff Detail
Event Timeline
RKSimon added inline comments.
RKSimon retitled this revision from [TTI] Add generic USUBSAT costs to [TTI] Add generic UADDSAT/USUBSAT and UADDO/USUBO costs. Comment ActionsI intend to add the overflow costs support as a pre-commit.
This revision is now accepted and ready to land.Jan 23 2019, 2:14 PM Closed by commit rL352043: [TTI] Add generic UADDO/USUBO costs (authored by RKSimon). · Explain WhyJan 24 2019, 4:11 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 183284 llvm/trunk/include/llvm/CodeGen/BasicTTIImpl.h
llvm/trunk/lib/Target/X86/X86TargetTransformInfo.cpp
llvm/trunk/test/Analysis/CostModel/X86/arith-overflow.ll
|