Skip to content

Commit cee60a8

Browse files
committed
[RISCV] Remove dead early exit in performCombineVMergeAndVOps. NFC
Because a masked instruction always has a tied dest (because it has a passthru), the early exit if Merge is an implicit def will have always already been taken in the branch above that handles HasTiedDest.
1 parent 9110c2b commit cee60a8

File tree

1 file changed

+0
-3
lines changed

1 file changed

+0
-3
lines changed

llvm/lib/Target/RISCV/RISCVISelDAGToDAG.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3545,9 +3545,6 @@ bool RISCVDAGToDAGISel::performCombineVMergeAndVOps(SDNode *N) {
35453545

35463546
if (IsMasked) {
35473547
assert(HasTiedDest && "Expected tied dest");
3548-
// The vmerge instruction must be TU.
3549-
if (isImplicitDef(Merge))
3550-
return false;
35513548
// The vmerge instruction must have an all 1s mask since we're going to keep
35523549
// the mask from the True instruction.
35533550
// FIXME: Support mask agnostic True instruction which would have an

0 commit comments

Comments
 (0)