Skip to content

Commit 518059f

Browse files
committed
fixup! address review comment:
1 parent 1c83609 commit 518059f

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

llvm/lib/Target/RISCV/RISCVInstrInfo.td

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,6 @@ def TrailingOnesMask : PatLeaf<(imm), [{
496496
if (!MRI.hasOneNonDBGUse(MI.getOperand(0).getReg()))
497497
return false;
498498
const auto &MO = MI.getOperand(1);
499-
if (!MO.isCImm())
500-
return false;
501499
return !isInt<12>(MO.getCImm()->getSExtValue()) &&
502500
isMask_64(MO.getCImm()->getZExtValue());
503501
}];

0 commit comments

Comments
 (0)