commit | c711b13613a36bfd4a662d6d4d8fd188348cc4f4 | [log] [tgz] |
---|---|---|
author | Michael Zolotukhin <mzolotukhin@apple.com> | Mon Jun 06 19:21:40 2016 +0000 |
committer | Michael Zolotukhin <mzolotukhin@apple.com> | Mon Jun 06 19:21:40 2016 +0000 |
tree | 1023c53f6a56a8677d122e61418b263ccc5cc047 | |
parent | a6caf31dea7570f6c1c4eced51cdb46715cc3a8c [diff] |
[LoopUnrollAnalyzer] Fix a crash in analyzeLoopUnrollCost. In some cases, when simplifying with SCEV, we might consider pointer values as just usual integer values. Thus, we might get a different type from what we had originally in the map of simplified values, and hence we need to check types before operating on the values. This fixes PR28015. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@271931 91177308-0d34-0410-b5e6-96231b3b80d8