Fix SCEVExpander assert during LSR: "argument of incompatible type".
authorAndrew Trick <atrick@apple.com>
Sat, 15 Oct 2011 06:19:55 +0000 (06:19 +0000)
committerAndrew Trick <atrick@apple.com>
Sat, 15 Oct 2011 06:19:55 +0000 (06:19 +0000)
commit365c9f1ff55bef134c6b9707f7df44d680ddabea
treeedc2f1c2fa2fa67906158462fba8d4a8c96ccfab
parent569c4a4767428d7b489db1e634ced5a3b36d8a1d
Fix SCEVExpander assert during LSR: "argument of incompatible type".

Just because we're dealing with a GEP doesn't mean we can assert the
SCEV has a pointer type. The fix is simply to ignore the SCEV pointer
type, which we really didn't need.
Fixes PR11138 webkit crash.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@142058 91177308-0d34-0410-b5e6-96231b3b80d8
include/llvm/Analysis/ScalarEvolutionExpander.h
lib/Analysis/ScalarEvolutionExpander.cpp
test/Transforms/LoopStrengthReduce/2011-10-14-IntPtr.ll [new file with mode: 0644]