OSDN Git Service

InstructionSimplify: Simplify a shuffle with a undef mask to undef
authorZvi Rackover <zvi.rackover@intel.com>
Sun, 30 Apr 2017 06:06:26 +0000 (06:06 +0000)
committerZvi Rackover <zvi.rackover@intel.com>
Sun, 30 Apr 2017 06:06:26 +0000 (06:06 +0000)
commit778f5177f015657acfe30acfefac76f873faddba
tree32997898d2a96801b1c39c85076c40bb14ec4745
parent258bb897bdcf78c200608a5ae7ac76e98b8c6a96
InstructionSimplify: Simplify a shuffle with a undef mask to undef

Summary:
Following the discussion in pr32486, adding the simplification:
 shuffle %x, %y, undef -> undef

Reviewers: spatel, RKSimon, andreadb, davide

Reviewed By: spatel

Subscribers: jroelofs, davide, llvm-commits

Differential Revision: https://reviews.llvm.org/D32293

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@301764 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/InstructionSimplify.cpp
test/Transforms/InstSimplify/shufflevector.ll