[PATCH] D121881: [RISCV][RVV] Select unmasked TU RVV pseudos in a DAG post-process
ShihPo Hung via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 12 21:44:51 PDT 2022
arcbbb added inline comments.
================
Comment at: llvm/lib/Target/RISCV/RISCVInstrInfoVPseudos.td:436
Pseudo UnmaskedPseudo = !cast<Pseudo>(!subst("_MASK", "", NAME));
+ Pseudo UnmaskedTuPseudo = !cond(HasTU : !cast<Pseudo>(!subst("_MASK", "", NAME # "_TU")),
+ true : PseudoNoTU);
----------------
craig.topper wrote:
> craig.topper wrote:
> > Can you use `!if` instead of `!cond`? Then you don't need the `true : ` part
> Instead of having a Dummy Pseudo, could you use the MaskedPseudo value. Then in RISCVISelDAGToDAG.cpp detect that the return value was the same opcode you started with?
It looks better now. Thanks!
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D121881/new/
https://reviews.llvm.org/D121881
More information about the llvm-commits
mailing list