[DAGCombiner] Ensure we use the correct CC result type in visitSDIV
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 28 Jun 2018 09:54:28 +0000 (09:54 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 28 Jun 2018 09:54:28 +0000 (09:54 +0000)
commitabebe4c746e34220fdd1da6783dd3920125260d0
treefe63b1ad2c5dbbce5e8f8683bacd5c3c2a68b0cb
parent388af14f859b58a98c2400e4b4469922ea788d2f
[DAGCombiner] Ensure we use the correct CC result type in visitSDIV

We could get away with it for constant folded cases, but not for rL335719.

Thanks to Krzysztof Parzyszek for noticing.

llvm-svn: 335821
llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
llvm/test/CodeGen/Hexagon/sdiv-minsigned.ll [new file with mode: 0644]
llvm/test/CodeGen/X86/combine-sdiv.ll