[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)
commit342c3bcf110f4ce4f75f1855845e43ab1553bdb9
treee8a10cfcccf15a667baab327d24fc9282f99b8dc
parentdb834837c2645ed2f3df1e77aff6a4aa14d6980c
[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

llvm-svn: 341981
llvm/lib/Transforms/InstCombine/InstCombineSimplifyDemanded.cpp
llvm/test/Transforms/InstCombine/shuffle-select-narrow.ll