[PATCH] D72404: [ThinLTO/FullLTO] Support Os and Oz

Ayke via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Thu Feb 10 04:24:49 PST 2022


aykevl added a comment.

@mehdi_amini thanks for explaining! D119342 <https://reviews.llvm.org/D119342> moves slightly closer to removing SizeLevel from the pass pipeline setup.

---

In other news, I found a workaround that can be used to avoid the size increase due to LoopRotate (until D119342 <https://reviews.llvm.org/D119342> is merged). Basically, just pass the flags `-mllvm --rotation-max-header-size=0` to ld.lld when compiling with `-Oz`.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D72404



More information about the cfe-commits mailing list