[PATCH] D61806: [DAGCombiner] try to move bitcast after extract_subvector

Simon Pilgrim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 11 09:12:21 PDT 2019


RKSimon added inline comments.


================
Comment at: llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp:17595
+    unsigned DestNumElts = V.getValueType().getVectorNumElements();
+    if (SrcNumElts >= DestNumElts) {
+      unsigned SrcDestRatio = SrcNumElts / DestNumElts;
----------------
Its typically safer to do (SrcNumElts % DestNumElts) == 0


================
Comment at: llvm/test/CodeGen/X86/sad.ll:1452
 ; AVX2-NEXT:    vmovd %xmm0, %eax
 ; AVX2-NEXT:    vzeroupper
 ; AVX2-NEXT:    retq
----------------
weird - if this is all xmm code now why hasn't the vzeroupper gone?


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

https://reviews.llvm.org/D61806





More information about the llvm-commits mailing list