[PATCH] D148622: [LoongArch] Prefer to align functions and tight loops to 16 bytes
Xi Ruoyao via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Apr 18 03:20:47 PDT 2023
xry111 added a comment.
In D148622#4277187 <https://reviews.llvm.org/D148622#4277187>, @xen0n wrote:
> In D148622#4277173 <https://reviews.llvm.org/D148622#4277173>, @xry111 wrote:
>
>> Hmm, it seems to me `setMaxBytesForAlignment` sets "the maximum amount of padding allowed for aligning the BB", not the max loop size. Or am I missing something?
>
> I simply copied from AArch64 for that part. Maybe I should mention this in the commit message...
I mean, I didn't see how the change only sets loop alignments for **tight** loops. Maybe I'm missing something, but with GCC there seems no way to limit `-falign-loops` only for tight loops.
Repository:
rG LLVM Github Monorepo
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D148622/new/
https://reviews.llvm.org/D148622
More information about the llvm-commits
mailing list