This is an archive of the discontinued LLVM Phabricator instance.

[PowerPC] Do not increase cost for getUserCost with MMA types
ClosedPublic

Authored by nemanjai on Dec 8 2021, 9:47 PM.

Details

Reviewers
amyk
Group Reviewers
Restricted Project
Commits
rGa3ea9052d6a1: [PowerPC] Do not increase cost for getUserCost with MMA types
Summary

Commit 150681f increases
cost of producing MMA types (vector pair and quad).
However, it increases the cost for getUserCost() which is
used in unrolling. As a result, loops that contain these
types already (from the user code) cannot be unrolled
(even with the user's unroll pragma). This was an unintended
sideeffect. Reverting that portion of the commit to allow
unrolling such loops.

Diff Detail

Event Timeline

nemanjai created this revision.Dec 8 2021, 9:47 PM
nemanjai requested review of this revision.Dec 8 2021, 9:47 PM
Herald added a project: Restricted Project. · View Herald TranscriptDec 8 2021, 9:47 PM
amyk accepted this revision as: amyk.Dec 13 2021, 5:37 PM

LGTM, thank you Nemanja.

This revision is now accepted and ready to land.Dec 13 2021, 5:37 PM