ARM: fix optimised division on WoA
authorSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 25 Mar 2016 00:34:11 +0000 (00:34 +0000)
committerSaleem Abdulrasool <compnerd@compnerd.org>
Fri, 25 Mar 2016 00:34:11 +0000 (00:34 +0000)
commit0dab98d9269355d3622c0949f27e2559892f2757
tree20f40085142028e9488d3841636f9bc0521f56ee
parent51d702812d8274d10f6ee96ccfd79d306ff701ec
ARM: fix optimised division on WoA

We did not have an explicit branch to the continuation BB.  When the check was
hoisted, this could permit control follow to fall through into the division
trap.  Add the explicit branch to the continuation basic block to ensure that
code execution is correct.

llvm-svn: 264370
llvm/lib/Target/ARM/ARMISelLowering.cpp
llvm/test/CodeGen/ARM/Windows/division.ll