[DAGCombiner] Ensure we use the correct CC result type in visitSDIV (REAPPLIED)
authorSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 28 Jun 2018 17:33:41 +0000 (17:33 +0000)
committerSimon Pilgrim <llvm-dev@redking.me.uk>
Thu, 28 Jun 2018 17:33:41 +0000 (17:33 +0000)
commit9c70d48cb2e9aafbfb3193aa366a53fccd3c7b2f
tree2e1b7ca5577233d6fbccb35d682657612af06bfb
parent8238def2a8c579311527c2dc8f51c0d9c6dbfb38
[DAGCombiner] Ensure we use the correct CC result type in visitSDIV (REAPPLIED)

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

Thanks to Krzysztof Parzyszek for noticing.

Reapply original commit rL335821 which was reverted at rL335871 due to a WebAssembly bug that was fixed at rL335884.

llvm-svn: 335886
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