diff options
author | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-06-06 05:24:10 +0000 |
---|---|---|
committer | Sanjoy Das <sanjoy@playingwithpointers.com> | 2015-06-06 05:24:10 +0000 |
commit | ad714b1af3d57b18439f62f2a0a7b96798c2b62b (patch) | |
tree | ee494f840941b9b9bb09368d72c34a6379e2449d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp | |
parent | 1c297e66fb839f574cfe2796acbcb8a499168259 (diff) | |
download | llvm-ad714b1af3d57b18439f62f2a0a7b96798c2b62b.zip llvm-ad714b1af3d57b18439f62f2a0a7b96798c2b62b.tar.gz llvm-ad714b1af3d57b18439f62f2a0a7b96798c2b62b.tar.bz2 |
[LoopUnroll] Fix truncation bug in canUnrollCompletely.
Summary:
canUnrollCompletely takes `unsigned` values for `UnrolledCost` and
`RolledDynamicCost` but is passed in `uint64_t`s that are silently
truncated. Because of this, when `UnrolledSize` is a large integer
that has a small remainder with UINT32_MAX, LLVM tries to completely
unroll loops with high trip counts.
Reviewers: mzolotukhin, chandlerc
Subscribers: llvm-commits
Differential Revision: http://reviews.llvm.org/D10293
llvm-svn: 239218
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions