When decling to reuse existing expressions that involve casts, ignore
authorDan Gohman <gohman@apple.com>
Fri, 4 Mar 2011 20:46:46 +0000 (20:46 +0000)
committerDan Gohman <gohman@apple.com>
Fri, 4 Mar 2011 20:46:46 +0000 (20:46 +0000)
commita7a841adb89efa6ad3b35e9d4bcccccfb8ca146a
treebdc00769af019b8cbc760146a1654089200ef3fa
parentc42fb5f81c80c0d2713ca34d2216ced764ff8b14
When decling to reuse existing expressions that involve casts, ignore
bitcasts, which are really no-ops here. This fixes slowdowns on
MultiSource/Applications/aha and others.

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