This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Teach needVSETVLIPHI to handle mask register instructions.
ClosedPublic

Authored by craig.topper on Nov 4 2021, 10:37 AM.

Details

Summary

This handles the case where the mask register instruction input
comes from a Phi of vsetvlis. If the VLMAX is the same as the VLMAX
required by the mask register instruction, we can avoid a vsetvli.

Diff Detail

Event Timeline

craig.topper created this revision.Nov 4 2021, 10:37 AM
craig.topper requested review of this revision.Nov 4 2021, 10:37 AM
Herald added a project: Restricted Project. · View Herald TranscriptNov 4 2021, 10:37 AM
Herald added a subscriber: MaskRay. · View Herald Transcript
This revision is now accepted and ready to land.Nov 15 2021, 9:30 AM

Though the clang-format thing should probably be addressed.

This revision was landed with ongoing or failed builds.Nov 15 2021, 9:57 AM
This revision was automatically updated to reflect the committed changes.