This is an archive of the discontinued LLVM Phabricator instance.

[LoopInterchange] Make isProfitableForVectorization slightly more conservative.
ClosedPublic

Authored by fhahn on Apr 3 2018, 7:25 AM.

Details

Summary

After D43236, we started interchanging loops with empty dependence
matrices. In isProfitableForVectorization, we try to determine if
interchanging makes the loop dependences more friendly to the
vectorizer. If there are no dependences, we should not interchange,
based on that heuristic.

Diff Detail