This is after lowering of undef to IMPLICIT_DEF, so the condition is always false. Rather than fixing the intent (which was to match implicit_def per the comment), just delete it. We're in the process of migrating away from the TA pseudos, so using _TA more often is fine.
TailPolicyOpIdx = getVecPolicyOpIdx(N, MaskedMCID);
if (!(N->getConstantOperandVal(*TailPolicyOpIdx) &
RISCVII::TAIL_AGNOSTIC)) {
- // We can't use TA if the tie-operand is not IMPLICIT_DEF
- if (!N->getOperand(0).isUndef()) {
- // Keep the true-masked instruction when there is no unmasked TU
- // instruction
- if (I->UnmaskedTUPseudo == I->MaskedPseudo)
- return false;
- UseTUPseudo = true;
- }
+ // Keep the true-masked instruction when there is no unmasked TU
+ // instruction
+ if (I->UnmaskedTUPseudo == I->MaskedPseudo)
+ return false;
+ UseTUPseudo = true;
}
}
}