OSDN Git Service

Revert "Revert "[Unroll] Implement a conservative and monotonically increasing cost...
authorMichael Zolotukhin <mzolotukhin@apple.com>
Fri, 13 May 2016 21:23:25 +0000 (21:23 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Fri, 13 May 2016 21:23:25 +0000 (21:23 +0000)
commit2463a66c885fd95073388cc4359c16580d09979c
treeaf4c5674777e6e7c1802dd84343f7ba4cbd44174
parenta7c234a4ffbfb0878254ab91b6b52f08e5086c92
Revert "Revert "[Unroll] Implement a conservative and monotonically increasing cost tracking system during the full unroll heuristic analysis that avoids counting any instruction cost until that instruction becomes "live" through a side-effect or use outside the...""

This reverts commit r269395.

Try to reapply with a fix from chapuni.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@269486 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/LoopUnrollAnalyzer.h
lib/Analysis/LoopUnrollAnalyzer.cpp
lib/Transforms/Scalar/LoopUnrollPass.cpp
test/Transforms/LoopUnroll/full-unroll-heuristics-2.ll
test/Transforms/LoopUnroll/full-unroll-heuristics-dce.ll [new file with mode: 0644]
test/Transforms/LoopUnroll/full-unroll-heuristics-geps.ll
unittests/Analysis/UnrollAnalyzer.cpp