This is an archive of the discontinued LLVM Phabricator instance.

[TTI] NFC: Reduce InstructionCost::getValue() usage...
ClosedPublic

Authored by dfukalov on May 31 2021, 6:38 AM.

Details

Summary

in order to propagate InstructionCost value upper.

Diff Detail

Event Timeline

dfukalov created this revision.May 31 2021, 6:38 AM
dfukalov requested review of this revision.May 31 2021, 6:38 AM
Herald added a project: Restricted Project. · View Herald TranscriptMay 31 2021, 6:38 AM
dfukalov updated this revision to Diff 349214.Jun 2 2021, 3:14 AM

Do not call expectedCost(VF) second time just for assert.

dfukalov updated this revision to Diff 453475.Aug 17 2022, 4:35 PM

Rebased...

Herald added a project: Restricted Project. · View Herald TranscriptAug 17 2022, 4:35 PM
Herald added a subscriber: ormris. · View Herald Transcript
fhahn added a subscriber: fhahn.Aug 25 2022, 9:12 AM
fhahn added inline comments.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
6293

The caller at the moment passes in ...getValue(). So it should probably be updated as well?

dfukalov updated this revision to Diff 455695.Aug 25 2022, 12:52 PM

Addressed comment, removed few more getValue() calls.

fhahn accepted this revision.Aug 26 2022, 2:48 AM

LGTM, thanks!

This revision is now accepted and ready to land.Aug 26 2022, 2:48 AM
This revision was landed with ongoing or failed builds.Aug 26 2022, 6:38 AM
This revision was automatically updated to reflect the committed changes.