]> granicus.if.org Git - llvm/commit
Merging rr221501:
authorDavid Majnemer <david.majnemer@gmail.com>
Mon, 8 Dec 2014 08:49:20 +0000 (08:49 +0000)
committerDavid Majnemer <david.majnemer@gmail.com>
Mon, 8 Dec 2014 08:49:20 +0000 (08:49 +0000)
commit6143cdcc6c56f2c4a4a7fb44d97007c1800f621a
tree6d9369fc94f31b420fa79dc124a8897466c51736
parentc9f58af99d64efcf719e2e9fd1bc98aaed876901
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]