commit | 642359b1274abe44916a87440c94ddf45b51f77d | [log] [tgz] |
---|---|---|
author | Michael Zolotukhin <mzolotukhin@apple.com> | Thu May 26 21:42:51 2016 +0000 |
committer | Michael Zolotukhin <mzolotukhin@apple.com> | Thu May 26 21:42:51 2016 +0000 |
tree | 8150fbbd44ce0ad0e9d1d3c0ea2c25b26394071f | |
parent | 514970f03eb6844c7fe341f8852aa1edf5dd6d83 [diff] |
[LoopUnrollAnalyzer] Fix a crash in analyzeLoopUnrollCost. Condition might be simplified to a Constant, but it doesn't have to be ConstantInt, so we should dyn_cast, instead of cast. This fixes PR27886. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@270924 91177308-0d34-0410-b5e6-96231b3b80d8