OSDN Git Service

[InstCombine][SSE] Add MOVMSK constant folding (PR27982)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 7 Jun 2016 08:18:35 +0000 (08:18 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Tue, 7 Jun 2016 08:18:35 +0000 (08:18 +0000)
commit4d1d561550b554002a219550d9865081ec9fbd9d
tree9963ae23e8e137f203fe8cf83e448aff753e5155
parent55ae04708dfb25b4b77b5c3bff49f6b7eb6cec26
[InstCombine][SSE] Add MOVMSK constant folding (PR27982)

This patch adds support for folding undef/zero/constant inputs to MOVMSK instructions.

The SSE/AVX versions can be fully folded, but the MMX version can only handle undef inputs.

Differential Revision: http://reviews.llvm.org/D20998

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271990 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCalls.cpp
test/Transforms/InstCombine/x86-movmsk.ll