[PATCH] D47690: [X86][BMI][TBM] Only demand bottom 16-bits of the BEXTR control op (PR34042)

Roman Lebedev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jun 3 13:24:16 PDT 2018


lebedev.ri added inline comments.


================
Comment at: lib/Target/X86/X86InstrCompiler.td:2051
-            (BEXTRI64ri GR64:$src1, i64immSExt32:$src2)>;
   def : Pat<(X86bextr (loadi64 addr:$src1), i64immSExt32:$src2),
             (BEXTRI64mi addr:$src1, i64immSExt32:$src2)>;
----------------
Why `SExt`; ahouldn't `ZExt` be fine, especially since only low 16 bits will be used?


Repository:
  rL LLVM

https://reviews.llvm.org/D47690





More information about the llvm-commits mailing list