[PATCH] D132623: [CodeGen] Disable tail calls at -O0/-O1

Reid Kleckner via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 31 11:02:19 PDT 2022


rnk added a comment.

In D132623#3756345 <https://reviews.llvm.org/D132623#3756345>, @nikic wrote:

> Why does this need to use an attribute rather than querying optimization level in the backend?

It's also generally consistent with how LLVM has handled O0, Os, and Oz to date, as attributes: optnone, minsize, optsize. That was in turn driven by a desire to allow mixing O[2zs0] objects during classic (fat?) LTO, and have things work as they did in traditional compilation.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D132623



More information about the llvm-commits mailing list