[PATCH] D60265: [LoopUnroll] Allow unrolling if the unrolled size does not exceed loop size.
Jessica Paquette via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Apr 4 09:32:56 PDT 2019
paquette added a comment.
In D60265#1455091 <https://reviews.llvm.org/D60265#1455091>, @fhahn wrote:
> Right, I should have said something here. Without D60266 <https://reviews.llvm.org/D60266>, there was no change in code size on the set of benchmarks, most likely because loop-rotate is not run and they are not in the required form for unrolling to happen.
Ok, cool!
> I guess it would be sufficient to drop minsize from the attribute list, assuming minsize always come with optsize?
minsize only comes with optsize when your function is effectively -Oz. If your function is -Os, it will only have optsize.
So, I would keep them both since -Oz behaviour is more important here (IMO). If you want to test both I guess you'll have to duplicate the test, sadly.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D60265/new/
https://reviews.llvm.org/D60265
More information about the llvm-commits
mailing list