This was a bug introduced in d764aa. A pointer type is not a primitive type, and thus we were ending up dividing by zero when computing VLMax.
Details
Details
Diff Detail
Diff Detail
Unit Tests
Unit Tests
Paths
| Differential D128219
[RISCV] Fix crash when costing scalable gather/scatter of pointer ClosedPublic Authored by reames on Jun 20 2022, 12:11 PM.
Details Summary This was a bug introduced in d764aa. A pointer type is not a primitive type, and thus we were ending up dividing by zero when computing VLMax.
Diff Detail
Unit TestsFailed Event TimelineThis revision is now accepted and ready to land.Jun 20 2022, 12:32 PM This revision was landed with ongoing or failed builds.Jun 20 2022, 12:51 PM Closed by commit rG0aebd1d87586: [RISCV] Fix crash when costing scalable gather/scatter of pointer (authored by reames). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 438452 llvm/lib/Target/RISCV/RISCVTargetTransformInfo.cpp
llvm/test/Analysis/CostModel/RISCV/scalable-gather.ll
llvm/test/Analysis/CostModel/RISCV/scalable-scatter.ll
|