Remove SCEVCache and FindConstantPointers from complete loop unrolling heuristic.
authorMichael Zolotukhin <mzolotukhin@apple.com>
Mon, 8 Jun 2015 03:28:06 +0000 (03:28 +0000)
committerMichael Zolotukhin <mzolotukhin@apple.com>
Mon, 8 Jun 2015 03:28:06 +0000 (03:28 +0000)
commit3148e982841bef970485dd662983a046355dd260
tree4e12f81a2967d58c231b79ff684aa4a06fca1062
parent3120bcb0de832751d1d46bfa45de5f0d5be4c334
Remove SCEVCache and FindConstantPointers from complete loop unrolling heuristic.

Summary:
Using some SCEV functionality helped to entirely remove SCEVCache class and FindConstantPointers SCEV visitor.
Also, this makes the code more universal - I'll take advandate of it in next patches where I start handling additional types of instructions.

Test Plan: Tests would be submitted in subsequent patches.

Reviewers: atrick, chandlerc

Reviewed By: atrick, chandlerc

Subscribers: atrick, llvm-commits

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

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@239282 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopUnrollPass.cpp