[clang-tools-extra] [llvm] [clang] Dont alter cold function alignment unless using Os (PR #72387)

Paul T Robinson via cfe-commits cfe-commits at lists.llvm.org
Mon Jan 8 07:18:18 PST 2024


pogo59 wrote:

> Edit: Actually we still have the problem of when in LLVM not knowing if optimze-by-size got set on the cold funtion by it being cold or if Os was used.

Not sure I understand the question (sorry I missed this comment when it was made). The suggestion is that for our target, clang sets explicit alignment, so LLVM should not need to know where optsize came from. LLVM's handling of optsize will not reset an alignment that is already set. Is there a situation where the wrong thing still happens?

https://github.com/llvm/llvm-project/pull/72387


More information about the cfe-commits mailing list