]> granicus.if.org Git - llvm/commit
[DAGCombine] SimplifySelectCC - call FoldSetCC with the setcc result type
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 21 Mar 2019 14:07:18 +0000 (14:07 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 21 Mar 2019 14:07:18 +0000 (14:07 +0000)
commit001665e9a867d399642150a4e7873e99cc8076f5
tree946f52d2966f8d63b1ce8206a94546aaf9c05eff
parentc4a68ddfbf2ad447212733fe40e15c730b4357c5
[DAGCombine] SimplifySelectCC - call FoldSetCC with the setcc result type

We were calling FoldSetCC with the compare operand type instead of the result type.

Found by OSS-Fuzz #13838 (https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=13838)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@356667 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/X86/sse-minmax.ll