commit | 506cfb7ab745c49841675e969b01ea2ec3707df2 | [log] [tgz] |
---|---|---|
author | Jun Bum Lim <junbuml@codeaurora.org> | Fri Jun 23 16:12:37 2017 +0000 |
committer | Jun Bum Lim <junbuml@codeaurora.org> | Fri Jun 23 16:12:37 2017 +0000 |
tree | 6d8f07e2d3fbb79fcd9948ebd1556d72a432d1a0 | |
parent | eaf0051ba30a6d3262cd6f9d0fbccd93f0949305 [diff] |
[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