Don't re-use existing addrec expansions if they contain casts.
authorDan Gohman <gohman@apple.com>
Wed, 2 Mar 2011 01:34:10 +0000 (01:34 +0000)
committerDan Gohman <gohman@apple.com>
Wed, 2 Mar 2011 01:34:10 +0000 (01:34 +0000)
commit0cbe91ba3bd84a5ef68a1d0de5df6e955690b0a4
tree70b49aa1042c0fade036961d38957c37e3e26e66
parentf06e6c2ba717429936908254d53fa579bc941388
Don't re-use existing addrec expansions if they contain casts.
This fixes PR9259.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@126812 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Analysis/ScalarEvolutionExpander.cpp
test/CodeGen/X86/lsr-quadratic-expand.ll [new file with mode: 0644]