[X86] Add BLSR and BLSMSK to isUseDefConvertible.

Unfortunately subo formation in CGP prevents obvious ways of
testing this.

But we already have BLSI in here and the flag behavior is
well understood.

Might become more useful if we improve PR42571.

llvm-svn: 365702
This commit is contained in:
Craig Topper 2019-07-10 22:14:39 +00:00
parent a2681296e0
commit d916f23b83
1 changed files with 6 additions and 1 deletions

View File

@ -3396,7 +3396,12 @@ static X86::CondCode isUseDefConvertible(const MachineInstr &MI) {
case X86::BLSI32rr:
case X86::BLSI64rr:
return X86::COND_AE;
// TODO: BLSR, BLSMSK, and TBM instructions.
case X86::BLSR32rr:
case X86::BLSR64rr:
case X86::BLSMSK32rr:
case X86::BLSMSK64rr:
return X86::COND_B;
// TODO: TBM instructions.
}
}