[PATCH] D77058: [Clang] Add llvm.loop.unroll.disable to loops with -fno-unroll-loops.

Michael Kruse via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Mon Apr 6 10:18:44 PDT 2020


Meinersbur added a comment.

Note that loop-metadata is best-effort only and may be forgotten in the optimization pipeline.

Do we also need an equivalent to `-Xclang -disable-O0-optnone`?

Personally, I don't like to the `optnone` approach: There have been many post on llvm-dev using `clang -emit-llvm` and being surprised that `opt` has no effect.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D77058





More information about the cfe-commits mailing list