]> granicus.if.org Git - llvm/commit
[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)
commit901ccced28ac6e50826b8eaf6cbae93953dd1b6d
tree15f56919abb81fcaf98b02afdc28e5ff68410799
parent175d83abfecdb61b3c54d04d5a913801181ae826
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@286113 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineSelect.cpp
test/Transforms/InstCombine/adjust-for-minmax.ll