[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)
commitda4992bf8ddb1586268c1aea8dbc6caa81b95030
tree1b65343e65fb3ec81532cb6d27dc7ccf98bb5eb4
parentd3511a214e47a54d840f4c0efe80ea94f60f5f25
[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)

llvm-svn: 356667
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/X86/sse-minmax.ll