[PATCH] D47453: [X86] Emit BZHI when mask is ~(-1 << nbits))

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Jun 4 09:17:24 PDT 2018


RKSimon added inline comments.


================
Comment at: lib/Target/X86/X86InstrInfo.td:2524
+            (BZHI64rm addr:$src,
+              (INSERT_SUBREG (i64 (IMPLICIT_DEF)), GR8:$lz, sub_8bit))>;
 } // HasBMI2
----------------
We're duplicating all these patterns for 32/64 cases - worth wrapping these in a bzhi_patterns multiclass?


Repository:
  rL LLVM

https://reviews.llvm.org/D47453





More information about the llvm-commits mailing list