This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Simplify scalable vector case in lowerVectorMaskExt.
ClosedPublic

Authored by craig.topper on Mar 14 2022, 2:56 PM.

Details

Summary

Since we have SPLAT_VECTOR_PARTS these days, I don't think we need
to go through extra lengths to avoid introducing an illegal scalar type.
We can just call getConstant using the scalable vector type and let
it create either a SPLAT_VECTOR or a SPLAT_VECTOR_PARTS.

Diff Detail

Event Timeline

craig.topper created this revision.Mar 14 2022, 2:56 PM
craig.topper requested review of this revision.Mar 14 2022, 2:56 PM
rogfer01 accepted this revision.Mar 17 2022, 1:24 AM

LGTM. Thanks for the cleanup @craig.topper

This revision is now accepted and ready to land.Mar 17 2022, 1:24 AM
frasercrmck accepted this revision.Mar 17 2022, 1:27 AM

Ach I hadn't pressed submit on my acceptance, sorry. LGTM too

This revision was landed with ongoing or failed builds.Mar 17 2022, 9:43 AM
This revision was automatically updated to reflect the committed changes.