This is an archive of the discontinued LLVM Phabricator instance.

[RISCV] Add assertion of hasVecPolicyOp to catch masked intrinsic without policy operand.
ClosedPublic

Authored by fakepaper56 on Sep 5 2022, 7:12 AM.

Details

Summary

The original code may have incorrect result if there is a masked instruction
without policy operand to make us set its policy to TUMU. The patch adds an
assertion to catch the instruction.

Diff Detail