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.
Differential D127681
[RISCV] Disable matchSplatAsGather for i1 vectors to prevent creating illegal nodes. craig.topper on Jun 13 2022, 12:07 PM. Authored by
Details We were incorrectly creating a VRGATHER node with i1 vector type. We Fixes PR56007.
Diff Detail
Event TimelineComment Actions LGTM Minor comments:
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. |