llvm-project
210e20a4 - [SLP][modularisation][NFC] Move getNumberOfParts, isAllowedNonPowerOf2VF (#220827)

Commit
6 days ago
[SLP][modularisation][NFC] Move getNumberOfParts, isAllowedNonPowerOf2VF (#220827) Move the following BoUpSLP-independent type/width helpers out of SLPVectorizer.cpp into SLPVectorizer/SLPTypeUtils.{h,cpp}: getNumberOfParts isAllowedNonPowerOf2VF Both read a file-local cl::opt (SLPReVec and VectorizeNonPowerOf2 respectively). The options stay static in SLPVectorizer.cpp; the moved helpers take their values as explicit bool parameters. Behavior is unchanged. Part of the SLPVectorizer.cpp modularization effort: https://discourse.llvm.org/t/modularizing-slpvectorizer-cpp/90922
Author
Parents
Loading