[PATCH] D138532: [SPARC][clang] Enable frame pointer optimization by default

Fangrui Song via Phabricator via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 22 16:57:57 PST 2022


MaskRay added a comment.

> Enable frame pointer optimization by default to match it with other targets.

I think we usually follow GCC instead of other targets.

I am unfamiliar with sparc. Can you show an example where `-fomit-frame-pointer`/`-fno-omit-frame-pointer` demonstrate a codegen difference? I tried some simple examples and cannot reproduce a difference.

It's somewhat unfortunate to add 6 RUN lines to test these sparc behaviors...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138532



More information about the cfe-commits mailing list