[PATCH] D30710: [LV] Vectorize GEPs
Elena Demikhovsky via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 7 12:23:32 PST 2017
delena added inline comments.
================
Comment at: lib/Transforms/Vectorize/LoopVectorize.cpp:4710
+ if (Legal->isUniform(GEP)) {
+ auto *Clone = cast<GetElementPtrInst>(GEP->clone());
+ for (unsigned I = 0; I < GEP->getNumOperands(); ++I)
----------------
GEP is uniform when the memory instruction (User) is uniform, right?
Why do you need to broadcast it?
https://reviews.llvm.org/D30710
More information about the llvm-commits
mailing list