[InstCombine] Use APInt for all the math in foldICmpDivConstant
authorCraig Topper <craig.topper@intel.com>
Sun, 1 Oct 2017 23:53:54 +0000 (23:53 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 1 Oct 2017 23:53:54 +0000 (23:53 +0000)
commit6e025a3ecc92c818bc7efd8db2d8a960adb0322e
tree1b681b74dc36ce5097b770f9883a41c422d79313
parentc20b46da2f48a76f2c2affb290d8073e9ce2aab4
[InstCombine] Use APInt for all the math in foldICmpDivConstant

Summary: This currently uses ConstantExpr to do its math, but as noted in a TODO it can all be done directly on APInt.

Reviewers: spatel, majnemer

Reviewed By: majnemer

Subscribers: llvm-commits

Differential Revision: https://reviews.llvm.org/D38440

llvm-svn: 314640
llvm/lib/Transforms/InstCombine/InstCombineCompares.cpp