OSDN Git Service

[InstCombine] enhance vector demanded elements to look at a vector select condition...
authorSanjay Patel <spatel@rotateright.com>
Tue, 11 Sep 2018 18:49:00 +0000 (18:49 +0000)
committerSanjay Patel <spatel@rotateright.com>
Tue, 11 Sep 2018 18:49:00 +0000 (18:49 +0000)
commitca29f6a30b2adfd44f21a3e18b213aebdd8e8293
tree1e2bd7d7c6c7cefbf731d9dd5c0a7136e45cac98
parent7aabb1450397971a14d668d30c8187ea769e8c59
[InstCombine] enhance vector demanded elements to look at a vector select condition operand

I noticed that we were not back-propagating undef lanes to shuffle masks when we have a
shuffle that reduces the vector width. This is part of investigating/solving PR38691:
https://bugs.llvm.org/show_bug.cgi?id=38691

The DAG equivalent was proposed with:
D51696

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@341981 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
test/Transforms/InstCombine/shuffle-select-narrow.ll