This assertion is introduced by D157425.
We should calculate the cost iff Mask is not empty.
Fixes 64901
Paths
| Differential D158590
[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
This revision is now accepted and ready to land.Aug 23 2023, 4:55 AM This revision was landed with ongoing or failed builds.Aug 23 2023, 5:12 AM Closed by commit rG9a82bda9dedf: [RISCV] Fix assertion of getShuffleCost (authored by wangpc). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 552665 llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Transforms/SLPVectorizer/RISCV/reductions.ll
|
!Mask.empty()