[PATCH] D26905: [SLP] Vectorize loads of consecutive memory accesses, accessed in non-consecutive (jumbled) way.
Matthew Simpson via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Jan 3 08:59:10 PST 2017
mssimpso added inline comments.
================
Comment at: lib/Transforms/Vectorize/SLPVectorizer.cpp:2596
+ if (Instruction *I = dyn_cast<Instruction>(shuf))
+ return propagateMetadata(I, VL);
+ return shuf;
----------------
I also saw verifier failures where TBAA metadata had been applied to the shuffle, like:
```
TBAA is only for loads, stores and calls!
%14 = shufflevector <4 x i32> %13, <4 x i32> undef, <4 x i32> <i32 2, i32 3, i32 0, i32 1>, !tbaa !66
```
https://reviews.llvm.org/D26905
More information about the llvm-commits
mailing list