[PATCH] D106701: [clang] Add -falign-loops=N where N is a power of 2

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Aug 3 20:58:55 PDT 2021


MaskRay added a comment.

Ping.

- -falign-loops= is currently silently ignored.
- -fliang-loops= has user interest from at least x86 and RISC-V.
- This patch makes it work for the non-LTO case.

I think this is good enough.

The LTO case require a function attribute (this doesn't apply to synthesized functions)/module flags metadata which may be overkill.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D106701/new/

https://reviews.llvm.org/D106701



More information about the cfe-commits mailing list