Michael Zolotukhin 19edbadfc5 [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.

llvm-svn: 271931
2016-06-06 19:21:40 +00:00
..
2016-04-27 03:04:54 +00:00
2016-04-27 03:04:54 +00:00
2016-04-27 03:04:54 +00:00
2016-04-27 03:04:54 +00:00