Make SCEVAddRecExpr's getType return a pointer type when the add
authorDan Gohman <gohman@apple.com>
Tue, 19 Jan 2010 22:53:50 +0000 (22:53 +0000)
committerDan Gohman <gohman@apple.com>
Tue, 19 Jan 2010 22:53:50 +0000 (22:53 +0000)
commit2b98bd23cb0bfa0dc09e1bcaef83a0e606e6ec1a
tree97f45bdbb889d34635172c0f6ea942f6e780325f
parentbbe2bbeac834dfe60fe98cfdeff9a9cc94858b7e
Make SCEVAddRecExpr's getType return a pointer type when the add
has a pointer member. This helps reduce unnecessary bitcasting
and uglygeps.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@93939 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolutionExpressions.h
test/CodeGen/X86/pr3495.ll