[llvm] r365702 - [X86] Add BLSR and BLSMSK to isUseDefConvertible.

Craig Topper via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 10 15:14:40 PDT 2019


Author: ctopper
Date: Wed Jul 10 15:14:39 2019
New Revision: 365702

URL: http://llvm.org/viewvc/llvm-project?rev=365702&view=rev
Log:
[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.

Modified:
    llvm/trunk/lib/Target/X86/X86InstrInfo.cpp

Modified: llvm/trunk/lib/Target/X86/X86InstrInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/X86/X86InstrInfo.cpp?rev=365702&r1=365701&r2=365702&view=diff
==============================================================================
--- llvm/trunk/lib/Target/X86/X86InstrInfo.cpp (original)
+++ llvm/trunk/lib/Target/X86/X86InstrInfo.cpp Wed Jul 10 15:14:39 2019
@@ -3396,7 +3396,12 @@ static X86::CondCode isUseDefConvertible
   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.
   }
 }
 




More information about the llvm-commits mailing list