Need to set the insertpoint for extractelement to point to the first
instruction in the node to avoid possible crash during external uses
combine process. Without it we may endup with the incorrect
transformation.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp | ||
---|---|---|
7696 | I don't see any rules related to the list of captures in LLVM coding standard https://llvm.org/docs/CodingStandards.html |
Comment Actions
LGTM
llvm/test/Transforms/SLPVectorizer/X86/extractelement-insertpoint.ll | ||
---|---|---|
30 | maybe cleanup these variable names? |
At what point when extending a capture list should we just use [&]? @dblaikie was commenting on this not so long ago.