This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Fix assertion of getShuffleCost
ClosedPublic

Authored by wangpc on Aug 23 2023, 2:56 AM.

Details

Summary

This assertion is introduced by D157425.

We should calculate the cost iff Mask is not empty.

Fixes 64901

Diff Detail

Event Timeline

wangpc created this revision.Aug 23 2023, 2:56 AM
wangpc requested review of this revision.Aug 23 2023, 2:56 AM
Herald added a project: Restricted Project. · View Herald TranscriptAug 23 2023, 2:56 AM
wangpc edited the summary of this revision. (Show Details)Aug 23 2023, 3:25 AM
ABataev added inline comments.Aug 23 2023, 4:15 AM
llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
364

!Mask.empty()

wangpc updated this revision to Diff 552661.Aug 23 2023, 4:54 AM

Address comment.

This revision is now accepted and ready to land.Aug 23 2023, 4:55 AM
wangpc updated this revision to Diff 552664.Aug 23 2023, 5:09 AM

move test to reductions.ll.

This revision was landed with ongoing or failed builds.Aug 23 2023, 5:12 AM
This revision was automatically updated to reflect the committed changes.