[LoopUnrolling] Handle cast instructions.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 15 Jul 2015 00:19:51 +0000 (00:19 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Wed, 15 Jul 2015 00:19:51 +0000 (00:19 +0000)
commit67ee52cf042860c505715ada15f98b8b7ecd932c
tree682db0de9cb205d64eabfdd435af312abc1e4b0e
parent6d27336681487de98652f7db4b2e70e69b15bd82
[LoopUnrolling] Handle cast instructions.

During estimation of unrolling effect we should be able to propagate
constants through casts.

Differential Revision: http://reviews.llvm.org/D10207

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@242257 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnrollPass.cpp
test/Transforms/LoopUnroll/full-unroll-heuristics-cast.ll [new file with mode: 0644]