[PATCH] D45552: [NFC][LV][LoopUtil] Move LoopVectorizationLegality to Analysis tree

Diego Caballero via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Apr 28 09:38:20 PDT 2018


dcaballe accepted this revision.
dcaballe added a comment.

Thanks, Hideki. LGTM!

The only remaining question that I would have is if it would be better to keep LoopVectorizationLegality.h as a private header (i.e., in /lib/Transforms/Vectorize/) instead of as a public header (i.e., in /include/llvm/Transforms/Vectorize/) since currently `LoopVectorizationLegality` is not needed outside of LV. I think that public headers have some negative impact in the compile time of LLVM so we may want to avoid them when they are not strictly necessary.
However, I leave it up to you. I think this is more like a philosophical question so I would be OK with the current approach.

Please, wait a few days before committing it to see if there are more comments.

Thanks!
Diego.


https://reviews.llvm.org/D45552





More information about the llvm-commits mailing list