[PATCH] D33311: [X86] Match bitcast of vsetcc to pmovmsk

Zvi Rackover via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu May 18 00:34:01 PDT 2017


zvi created this revision.

Add an early combine to match patterns such as:

  (i16 bitcast (v16i1 setcc v16i8 v1, v2, gt))
  ->
  (movmsk (v16i8 setcc v16i8 v1, v2, gt))

This combine needs to happen early enough before
type-legalization scalarizes the result of the setcc.


https://reviews.llvm.org/D33311

Files:
  lib/Target/X86/X86ISelLowering.cpp
  test/CodeGen/X86/bitcast-setcc-128.ll
  test/CodeGen/X86/bitcast-setcc-256.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D33311.99400.patch
Type: text/x-patch
Size: 35354 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170518/5d3c06ef/attachment-0001.bin>


More information about the llvm-commits mailing list