aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorYaron Keren <yaron.keren@gmail.com>2015-03-26 19:45:19 +0000
committerYaron Keren <yaron.keren@gmail.com>2015-03-26 19:45:19 +0000
commit39fc5a6fd72136ef1ee4215cbdfd710f775c12a3 (patch)
treee03ba0587323a772daa1e2468e38c16b00c7838a /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parentefa49c2665b06f754f6b32348963c264cf27a38a (diff)
downloadllvm-39fc5a6fd72136ef1ee4215cbdfd710f775c12a3.zip
llvm-39fc5a6fd72136ef1ee4215cbdfd710f775c12a3.tar.gz
llvm-39fc5a6fd72136ef1ee4215cbdfd710f775c12a3.tar.bz2
Fix rare case where APInt divide algorithm applied un-needed transformation.
APInt uses Knuth's D algorithm for long division. In rare cases the implementation applied a transformation that was not needed. Added unit tests for long division. KnuthDiv() procedure is fully covered. There is a case in APInt::divide() that I believe is never used (marked with a comment) as all users of divide() handle trivial cases earlier. Patch by Pawel Bylica! http://reviews.llvm.org/D8448 llvm-svn: 233312
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions