mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-25 21:11:25 +00:00
[RISCV] Remove dead code from doPeepholeMaskedRVV [nfc]
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.
This commit is contained in:
parent
43593a0a14
commit
c4a3bd7f8b
@ -3193,14 +3193,11 @@ bool RISCVDAGToDAGISel::doPeepholeMaskedRVV(SDNode *N) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user