diff options
author | Pawel Bylica <chfast@gmail.com> | 2015-04-24 07:38:39 +0000 |
---|---|---|
committer | Pawel Bylica <chfast@gmail.com> | 2015-04-24 07:38:39 +0000 |
commit | 86ac44744a0207fea281fc2267fffaa69660fc03 (patch) | |
tree | b2061f060822dd06e933c96c25d25b0645a2c780 /llvm/lib/IR/ConstantFold.cpp | |
parent | bccb773ebc005cc1456b37f6c9e9d634efe46312 (diff) | |
download | llvm-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