BuildSDIV and BuildUDIV only work for i32/i64, but they don't check that
authorChris Lattner <sabre@nondot.org>
Sat, 22 Oct 2005 18:50:15 +0000 (18:50 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 22 Oct 2005 18:50:15 +0000 (18:50 +0000)
commite9936d14b899cc17572bfd6165dd6a9aa0ff89b8
tree7a893ef43f59b10fdbf37d7b6c3ea78d1ba50221
parent5476b9bfced0413cc576bf49f539193c702b9574
BuildSDIV and BuildUDIV only work for i32/i64, but they don't check that
the input is that type, this caused a failure on gs on X86 last night.
Move the hard checks into Build[US]Div since that is where decisions like
this should be made.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@23881 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/SelectionDAG/DAGCombiner.cpp