Recommit r171461 which was incorrectly reverted. Mark DIV/IDIV instructions hasSideEf...
authorCraig Topper <craig.topper@gmail.com>
Sat, 5 Jan 2013 07:39:25 +0000 (07:39 +0000)
committerCraig Topper <craig.topper@gmail.com>
Sat, 5 Jan 2013 07:39:25 +0000 (07:39 +0000)
commit835e7bc48e101d92c8bbabf0b52cdcfe35b99c01
treee04d5570259ace4df2679fd038be85c51941ffed
parent5d1f5c17377e56d88a525cf82d02e6e5df254580
Recommit r171461 which was incorrectly reverted. Mark DIV/IDIV instructions hasSideEffects=1 because they can trap when dividing by 0. This is needed to keep early if conversion from moving them across basic blocks.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@171608 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/X86/X86InstrArithmetic.td
test/CodeGen/X86/early-ifcvt.ll