commit | 16e7603633073a4f452f11020646d1b876bafe00 | [log] [tgz] |
---|---|---|
author | Craig Topper <craig.topper@intel.com> | Mon Aug 21 22:56:12 2017 +0000 |
committer | Craig Topper <craig.topper@intel.com> | Mon Aug 21 22:56:12 2017 +0000 |
tree | b62de12a84d9e63daf7f7a8379820b93804d3288 | |
parent | 6995f18af0e2943658589950b82fbc4ad4a64cef [diff] |
[ValueTracking] Add assertions that the starting Depth in isKnownToBeAPowerOfTwo and ComputeNumSignBitsImpl is not above MaxDepth The function does an equality check later to terminate the recursion, but that won't work if its starts out too high. Similar assert already exists in computeKnownBits. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@311400 91177308-0d34-0410-b5e6-96231b3b80d8