OSDN Git Service

[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)
commit93aa3932e77ef01ea4c5c75c9238677b1d7cd177
tree57e307a0d8ccf763e86c0662b40fc623d7cdc09d
parent39d2c2868cbf10e097d0f83c95c4e8fa0c6c19c9
[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.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@335886 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp
test/CodeGen/Hexagon/sdiv-minsigned.ll [new file with mode: 0644]
test/CodeGen/X86/combine-sdiv.ll