When optimising for size, make the cost of i1 logical operations relatively expensive so that optimisations don't try to combine predicates.
Details
Details
Diff Detail
Diff Detail
Paths
| Differential D86525
[ARM][CostModel] CodeSize costs for i1 arith ops ClosedPublic Authored by samparker on Aug 25 2020, 4:31 AM.
Details Summary When optimising for size, make the cost of i1 logical operations relatively expensive so that optimisations don't try to combine predicates.
Diff Detail Event Timeline
SjoerdMeijer added inline comments.
This revision is now accepted and ready to land.Sep 7 2020, 1:24 AM Closed by commit rG0af4147804aa: [ARM][CostModel] CodeSize costs for i1 arith ops (authored by samparker). · Explain WhySep 7 2020, 1:30 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 287627 llvm/lib/Target/ARM/ARMTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/ARM/arith.ll
|
I was wondering if this should be ST->isThumb2() perhaps? Or does it not matter, this didn't show unexpected regressions?