LoopVectorize: Use vectorized loop invariant gep index anchored in loop
authorArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 27 Jun 2013 15:11:55 +0000 (15:11 +0000)
committerArnold Schwaighofer <aschwaighofer@apple.com>
Thu, 27 Jun 2013 15:11:55 +0000 (15:11 +0000)
commita2dd195fb31d8234f67f5f7d2f9d00b00a65f506
tree90cbadc764cbe590855662dcefe20bf9b6f63bf9
parent24a3ebb78d7772f8c1ad045900ca6e1c75e444e5
LoopVectorize: Use vectorized loop invariant gep index anchored in loop

Use vectorized instruction instead of original instruction anchored in the
original loop.

Fixes PR16452 and t2075.c of PR16455.

llvm-svn: 185081
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp
llvm/test/Transforms/LoopVectorize/undef-inst-bug.ll [new file with mode: 0644]