OSDN Git Service

Merging rr221501:
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 8 Dec 2014 08:49:20 +0000 (08:49 +0000)
committerWuZhen <wuzhen@jidemail.com>
Tue, 23 Feb 2016 11:25:49 +0000 (19:25 +0800)
commit3b87a6aacf5a45945ee3a2a636e4a7c1927a19da
tree8f56d6358f1b959a02b0cb41653edf65dee35707
parente43f2c7ad88ebf40e16e9748fa3c75f48e46a5a5
Merging rr221501:
------------------------------------------------------------------------
r221501 | majnemer | 2014-11-06 16:31:14 -0800 (Thu, 06 Nov 2014) | 7 lines

LoopVectorize: Don't assume pointees are sized

A pointer's pointee might not be sized: the pointee could be a function.

Report this as IK_NoInduction when calculating isInductionVariable.

This fixes PR21508.
------------------------------------------------------------------------

git-svn-id: https://llvm.org/svn/llvm-project/llvm/branches/release_35@223636 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Vectorize/LoopVectorize.cpp
test/Transforms/LoopVectorize/unsized-pointee-crash.ll [new file with mode: 0644]