File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -3737,6 +3737,7 @@ bool RISCVDAGToDAGISel::performCombineVMergeAndVOps(SDNode *N) {
3737
3737
Info = RISCV::getMaskedPseudoInfo (TrueOpc);
3738
3738
IsMasked = true ;
3739
3739
}
3740
+ assert (!(IsMasked && !HasTiedDest) && " Expected tied dest" );
3740
3741
3741
3742
if (!Info)
3742
3743
return false ;
@@ -3756,11 +3757,10 @@ bool RISCVDAGToDAGISel::performCombineVMergeAndVOps(SDNode *N) {
3756
3757
3757
3758
// If True is masked then the vmerge must have an all 1s mask, since we're
3758
3759
// going to keep the mask from True.
3759
- if (IsMasked) {
3760
- assert (HasTiedDest && " Expected tied dest" );
3760
+ if (IsMasked && Mask) {
3761
3761
// FIXME: Support mask agnostic True instruction which would have an
3762
3762
// undef merge operand.
3763
- if (Mask && !usesAllOnesMask (Mask, Glue))
3763
+ if (!usesAllOnesMask (Mask, Glue))
3764
3764
return false ;
3765
3765
}
3766
3766
You can’t perform that action at this time.
0 commit comments