[InstCombine] allow splat vector folds in adjustMinMax() (retry r285732)
authorSanjay Patel <spatel@rotateright.com>
Mon, 7 Nov 2016 15:52:45 +0000 (15:52 +0000)
committerSanjay Patel <spatel@rotateright.com>
Mon, 7 Nov 2016 15:52:45 +0000 (15:52 +0000)
commit86408a80486971d41d94a9959baf5080356cbae3
treee2a813974143801bee8ad05b7e5d5cf9a308a8f7
parent4f0509fab3c934a2f31ad5b464a75b3029cb2c12
[InstCombine] allow splat vector folds in adjustMinMax() (retry r285732)

This was reverted at r285866 because there was a crash handling a scalar
select of vectors. I added a check for that pattern and a test case based
on the example provided in the post-commit thread for r285732.

llvm-svn: 286113
llvm/lib/Transforms/InstCombine/InstCombineSelect.cpp
llvm/test/Transforms/InstCombine/adjust-for-minmax.ll