summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorSanjoy Das <sanjoy@playingwithpointers.com>2016-01-19 20:53:51 +0000
committerSanjoy Das <sanjoy@playingwithpointers.com>2016-01-19 20:53:51 +0000
commit29a4b5dc0d754c9a45f62a8af0cc36e8de4f968d (patch)
treec1db3e48b0d1ca4c0ef7901a5fc6447c24f6e475 /lldb/packages/Python/lldbsuite/test
parent0ff078736f77aa204126bd214f35defece4e68ca (diff)
downloadbcm5719-llvm-29a4b5dc0d754c9a45f62a8af0cc36e8de4f968d.tar.gz
bcm5719-llvm-29a4b5dc0d754c9a45f62a8af0cc36e8de4f968d.zip
[SCEV] Fix PR26207
In some cases, the max backedge taken count can be more conservative than the exact backedge taken count (for instance, because ScalarEvolution::getRange is not control-flow sensitive whereas computeExitLimitFromICmp can be). In these cases, computeExitLimitFromCond (specifically the bit that deals with `and` and `or` instructions) can create an ExitLimit instance with a `SCEVCouldNotCompute` max backedge count expression, but a computable exact backedge count expression. This violates an implicit SCEV assumption: a computable exact BE count should imply a computable max BE count. This change - Makes the above implicit invariant explicit by adding an assert to ExitLimit's constructor - Changes `computeExitLimitFromCond` to be more robust around conservative max backedge counts llvm-svn: 258184
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud