OSDN Git Service

[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)
commitecaac1300e9957c283fdf73f88517e62c9f85e68
tree79642b0bac3592f864d5cfbdf97cb6936d2fc7dc
parent7525c7b0755ec5c4e81392772dac094855381594
[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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@314640 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/InstCombine/InstCombineCompares.cpp