diff options
author | Jun Bum Lim <junbuml@codeaurora.org> | 2017-06-23 16:12:37 +0000 |
---|---|---|
committer | Jun Bum Lim <junbuml@codeaurora.org> | 2017-06-23 16:12:37 +0000 |
commit | 506cfb7ab745c49841675e969b01ea2ec3707df2 (patch) | |
tree | 6d8f07e2d3fbb79fcd9948ebd1556d72a432d1a0 /llvm/lib/Support/BinaryStreamReader.cpp | |
parent | eaf0051ba30a6d3262cd6f9d0fbccd93f0949305 (diff) | |
download | llvm-506cfb7ab745c49841675e969b01ea2ec3707df2.zip llvm-506cfb7ab745c49841675e969b01ea2ec3707df2.tar.gz llvm-506cfb7ab745c49841675e969b01ea2ec3707df2.tar.bz2 |
[InlineCost] Do not take INT_MAX when Cost is negative
Summary: visitSwitchInst should not take INT_MAX when Cost is negative. Instead of INT_MAX , we also use a valid upperbound cost when overflow occurs in Cost.
Reviewers: hans, echristo, dmgreen
Reviewed By: dmgreen
Subscribers: mcrosier, javed.absar, llvm-commits, eraman
Differential Revision: https://reviews.llvm.org/D34436
llvm-svn: 306118
Diffstat (limited to 'llvm/lib/Support/BinaryStreamReader.cpp')
0 files changed, 0 insertions, 0 deletions