Skip to content

Commit afb45ff

Browse files
committed
[RISCV][InsertVSETVLI] Treat mask policy as undemanded if usesMaskPolicy is false
Differential Revision: https://reviews.llvm.org/D135327
1 parent bc4bcbc commit afb45ff

File tree

4 files changed

+7
-151
lines changed

4 files changed

+7
-151
lines changed

llvm/lib/Target/RISCV/RISCVInsertVSETVLI.cpp

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -372,6 +372,10 @@ static DemandedFields getDemanded(const MachineInstr &MI) {
372372
Res.demandVTYPE();
373373
if (RISCVII::hasVLOp(TSFlags))
374374
Res.VL = true;
375+
376+
// Behavior is independent of mask policy.
377+
if (!RISCVII::usesMaskPolicy(TSFlags))
378+
Res.MaskPolicy = false;
375379
}
376380

377381
// Loads and stores with implicit EEW do not demand SEW or LMUL directly.

0 commit comments

Comments
 (0)