Splits getSmallestAndWidestTypes into two functions, one of which now collects
a list of all element types found in the loop (ElementTypesInLoop). This ensures we do not
have to iterate over all instructions in the loop again in other places, such as in D102253
which disables scalable vectorization of a loop if any of the instructions use invalid types.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
Other than my nit, this looks fine to me.
llvm/lib/Transforms/Vectorize/LoopVectorize.cpp | ||
---|---|---|
1309 | nit: collectElementTypesForWidening ? |
nit: collectElementTypesForWidening ?