Tweak IVUsers' concept of "interesting" to exclude add recurrences
authorDan Gohman <gohman@apple.com>
Tue, 17 Aug 2010 22:50:37 +0000 (22:50 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 17 Aug 2010 22:50:37 +0000 (22:50 +0000)
commitbbc1da8dedf77c0dd3845e09c2d78024d8738646
tree8eada220302ff521b77fd93e27cc34f010af7678
parentdc140c6e7b8350ca51aa1d408c10e25a27826e2c
Tweak IVUsers' concept of "interesting" to exclude add recurrences
where the step value is an induction variable from an outer loop, to
avoid trouble trying to re-expand such expressions. This effectively
hides such expressions from indvars and lsr, which prevents them
from getting into trouble.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@111317 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/IVUsers.cpp
test/CodeGen/X86/licm-nested.ll
test/CodeGen/X86/lsr-interesting-step.ll [new file with mode: 0644]