We were incorrectly creating a VRGATHER node with i1 vector type. We
could support this by promoting the mask to i8 and truncating it, but
for now I want to prevent the crash.
Fixes PR56007.
Paths
| Differential D127681
[RISCV] Disable matchSplatAsGather for i1 vectors to prevent creating illegal nodes. ClosedPublic Authored by craig.topper on Jun 13 2022, 12:07 PM.
Details Summary We were incorrectly creating a VRGATHER node with i1 vector type. We Fixes PR56007.
Diff Detail
Event TimelineComment Actions LGTM Minor comments:
This revision is now accepted and ready to land.Jun 13 2022, 12:29 PM Comment Actions
The DAG combine caller already checks isTypeLegal. It's also called by LowerBUILD_VECTOR which should only be called for legal types. I think any legal FP type or non-i1 int type should be ok for the VRGATHER. This revision was landed with ongoing or failed builds.Jun 13 2022, 1:41 PM Closed by commit rGe4062522d331: [RISCV] Disable matchSplatAsGather for i1 vectors to prevent creating illegal… (authored by craig.topper). · Explain Why This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 436504 llvm/lib/Target/RISCV/RISCVISelLowering.cpp
llvm/test/CodeGen/RISCV/rvv/vsplats-i1.ll
|
clang-format not found in user’s local PATH; not linting file.