[clang] Enable frame pointer for non-leaf functions on Android (PR #97614)

via cfe-commits cfe-commits at lists.llvm.org
Fri Aug 23 13:12:16 PDT 2024


================
@@ -166,7 +155,7 @@ static bool useFramePointerForTargetByDefault(const llvm::opt::ArgList &Args,
 
 static bool useLeafFramePointerForTargetByDefault(const llvm::Triple &Triple) {
   if (Triple.isAArch64() || Triple.isPS() || Triple.isVE() ||
-      (Triple.isAndroid() && Triple.isRISCV64()))
+      (Triple.isAndroid() && !Triple.isARM()))
----------------
yabinc wrote:

In https://godbolt.org/z/Krc3eq46h, I tried generating thumb instruction with and without -mno-omit-leaf-frame-pointer. They generate the same instructions not setting up frame pointers for leaf functions.

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


More information about the cfe-commits mailing list