Skip to content

Commit d916f23

Browse files
committed
[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
1 parent a268129 commit d916f23

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

llvm/lib/Target/X86/X86InstrInfo.cpp

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3396,7 +3396,12 @@ static X86::CondCode isUseDefConvertible(const MachineInstr &MI) {
33963396
case X86::BLSI32rr:
33973397
case X86::BLSI64rr:
33983398
return X86::COND_AE;
3399-
// TODO: BLSR, BLSMSK, and TBM instructions.
3399+
case X86::BLSR32rr:
3400+
case X86::BLSR64rr:
3401+
case X86::BLSMSK32rr:
3402+
case X86::BLSMSK64rr:
3403+
return X86::COND_B;
3404+
// TODO: TBM instructions.
34003405
}
34013406
}
34023407

0 commit comments

Comments
 (0)