aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/IR/ConstantFold.cpp
diff options
context:
space:
mode:
authorPawel Bylica <chfast@gmail.com>2015-04-24 07:38:39 +0000
committerPawel Bylica <chfast@gmail.com>2015-04-24 07:38:39 +0000
commit86ac44744a0207fea281fc2267fffaa69660fc03 (patch)
treeb2061f060822dd06e933c96c25d25b0645a2c780 /llvm/lib/IR/ConstantFold.cpp
parentbccb773ebc005cc1456b37f6c9e9d634efe46312 (diff)
downloadllvm-86ac44744a0207fea281fc2267fffaa69660fc03.zip
llvm-86ac44744a0207fea281fc2267fffaa69660fc03.tar.gz
llvm-86ac44744a0207fea281fc2267fffaa69660fc03.tar.bz2
Fix APInt long division algorithm
Summary: This patch fixes step D4 of Knuth's division algorithm implementation. Negative sign of the step result was not always detected due to incorrect "borrow" handling. Test Plan: Unit test that reveals the bug included. Reviewers: chandlerc, yaron.keren Reviewed By: yaron.keren Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D9196 llvm-svn: 235699
Diffstat (limited to 'llvm/lib/IR/ConstantFold.cpp')
0 files changed, 0 insertions, 0 deletions