When determining the set of interesting reuse factors, consider
authorDan Gohman <gohman@apple.com>
Fri, 19 Feb 2010 00:05:23 +0000 (00:05 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 19 Feb 2010 00:05:23 +0000 (00:05 +0000)
commit1b7bf18def8db328bb4efa02c0958ea399e8d8cb
tree6dc9144dfc3fcc9db84b37c37cd25b24a4e92429
parentaa11defd1c66dbde0c757c99791c4ae4d740fc3e
When determining the set of interesting reuse factors, consider
strides in foreign loops. This helps locate reuse opportunities
with existing induction variables in foreign loops and reduces
the need for inserting new ones. This fixes rdar://7657764.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@96629 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/LoopStrengthReduce.cpp
test/CodeGen/X86/lsr-reuse.ll