[PATCH] D19614: [InstCombine][SSE] Add MOVMSK support to SimplifyDemandedUseBits

Simon Pilgrim via llvm-commits llvm-commits at lists.llvm.org
Wed Apr 27 13:09:29 PDT 2016


RKSimon created this revision.
RKSimon added reviewers: ab, andreadb, spatel.
RKSimon added a subscriber: llvm-commits.
RKSimon set the repository for this revision to rL LLVM.

The MOVMSK instructions copies a vector elements' sign bits to the low bits of a scalar register and zeros the high bits.

This patch adds MOVMSK support to SimplifyDemandedUseBits so that its aware that the upper bits are known to be zero. It also removes the call to MOVMSK if none of the lower bits are actually required and just returns zero.

Repository:
  rL LLVM

http://reviews.llvm.org/D19614

Files:
  lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
  test/Transforms/InstCombine/x86-movmsk.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D19614.55301.patch
Type: text/x-patch
Size: 6314 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20160427/c788d323/attachment.bin>


More information about the llvm-commits mailing list