This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Teach VSETVLI insertion to handle mask instruction which has avl from a PHI node.
AbandonedPublic

Authored by jacquesguan on Nov 10 2021, 11:32 PM.

Details

Summary

Use hasCompatibleVTYPE instead of hasSameVTYPE in needVSETVLIPHI, in order to avoid insert a vsetvli for mask instruction.

Diff Detail

Event Timeline

jacquesguan created this revision.Nov 10 2021, 11:32 PM
jacquesguan requested review of this revision.Nov 10 2021, 11:32 PM
Herald added a project: Restricted Project. · View Herald TranscriptNov 10 2021, 11:32 PM
jacquesguan abandoned this revision.Nov 11 2021, 12:38 AM

I already posted a patch for this https://reviews.llvm.org/D113204

OK, I will close this.