]> granicus.if.org Git - llvm/commit
[InstCombine] avoid breaking up bitcasted vector min/max patterns (PR32306)
authorSanjay Patel <spatel@rotateright.com>
Thu, 16 Mar 2017 20:42:45 +0000 (20:42 +0000)
committerSanjay Patel <spatel@rotateright.com>
Thu, 16 Mar 2017 20:42:45 +0000 (20:42 +0000)
commit4616521acae6334c3c53d29eb7e02aa4c080ca8b
treecc16fa38da64a134615438f6279de78edbb46283
parent7d515a45544101b8bdd0eeb0604a806eefc678d5
[InstCombine] avoid breaking up bitcasted vector min/max patterns (PR32306)

As the related tests show, we're not canonicalizing to this form for scalars or vectors yet,
but this solves the immediate problem in:
https://bugs.llvm.org/show_bug.cgi?id=32306

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