Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[ScalarEvolutionExpander] Reuse findExistingExpansion during expansio…
…n cost calculation for division Primary purpose of this change is to reuse existing code inside findExistingExpansion. However it introduces very slight semantic change - findExistingExpansion now looks into exiting blocks instead of a loop latches. Originally heuristic was based on the fact that we want to look at the loop exit conditions. And since all exiting latches will be listed in the ExitingBlocks, heuristic stays roughly the same. Differential Revision: http://reviews.llvm.org/D12008 llvm-svn: 245227
- Loading branch information