-
Notifications
You must be signed in to change notification settings - Fork 528
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Split loops to work around loop vectorizer weakness (#3406)
Summary: Pull Request resolved: #3406 X-link: facebookresearch/FBGEMM#494 I noticed LLVM loop vectorization making bad calls for loops with trip-counts that are not a multiple of the preferred vector size. This can be worked around by manually splitting into two loops with the first one processing in multiples of the preferred block size and a separate loop for the remainder. Reviewed By: helloguo Differential Revision: D65574038 fbshipit-source-id: 491c63954b0ceb49eb65c4afb6f1a93706dfa525
- Loading branch information
1 parent
c952277
commit f110630
Showing
1 changed file
with
125 additions
and
27 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters