summaryrefslogtreecommitdiffstats
path: root/llvm/lib/CodeGen/RegAllocGreedy.cpp
diff options
context:
space:
mode:
authorCraig Topper <craig.topper@intel.com>2017-08-21 22:56:12 +0000
committerCraig Topper <craig.topper@intel.com>2017-08-21 22:56:12 +0000
commit7227ebad9cc6775ee63656315811b8233cf28085 (patch)
tree93e6f2c52d922e4df9bd9623a77b19ddb8fd6109 /llvm/lib/CodeGen/RegAllocGreedy.cpp
parent416bc3d70ab774514c896f966040cdf854874c1f (diff)
downloadbcm5719-llvm-7227ebad9cc6775ee63656315811b8233cf28085.tar.gz
bcm5719-llvm-7227ebad9cc6775ee63656315811b8233cf28085.zip
[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. llvm-svn: 311400
Diffstat (limited to 'llvm/lib/CodeGen/RegAllocGreedy.cpp')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud