Enhance integer division emulation support to handle types smaller than 32 bits,
authorPedro Artigas <partigas@apple.com>
Tue, 26 Feb 2013 23:33:20 +0000 (23:33 +0000)
committerPedro Artigas <partigas@apple.com>
Tue, 26 Feb 2013 23:33:20 +0000 (23:33 +0000)
commitb3201c5cf1e183d840f7c99ff779d57f1549d8e5
treef32bcd59978eb3b4c9bf9057ce74e40e3446beb5
parentbdc98d3510c1b3d32679ed3188becdc6d6dfd545
Enhance integer division emulation support to handle types smaller than 32 bits,
enhancement done the trivial way; by extending inputs and truncating outputs
which is addequate for targets with little or no support for integer arithmetic
on integer types less than 32 bits.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@176139 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Transforms/Utils/IntegerDivision.h
lib/Transforms/Utils/IntegerDivision.cpp