[PATCH] D80563: [X86][SSE] Convert PTEST to MOVMSK for allsign bits vector results.

Craig Topper via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 26 10:53:59 PDT 2020


craig.topper added inline comments.


================
Comment at: llvm/lib/Target/X86/X86ISelLowering.cpp:40178
+            Res = DAG.getBitcast(MovmskVT, Res);
+            Res = getPMOVMSKB(DL, Res, DAG, Subtarget);
+            Res = DAG.getNode(ISD::AND, DL, MVT::i32, Res,
----------------
Do we need getPMOVMSKB here or can we just use plain getNode? The only thing getPMOVMSKB does is handle AVX and BWI splitting right? But if we start from PTEST we should never need to split?


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D80563/new/

https://reviews.llvm.org/D80563





More information about the llvm-commits mailing list