[PATCH] D104836: [PowerPC] Combine 64-bit bswap(load) without LDBRX

Nathan Chancellor via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jun 24 11:37:33 PDT 2021


nathanchance added a comment.

I can confirm that this reduces the stack size of the function in the Linux kernel that prompted the report:

Before:

  arch/powerpc/kvm/book3s_hv_nested.c:289:6: warning: stack frame size (2048) exceeds limit (768) in function 'kvmhv_enter_nested_guest' [-Wframe-larger-than]
  long kvmhv_enter_nested_guest(struct kvm_vcpu *vcpu)
       ^
  1 warning generated.

After:

  arch/powerpc/kvm/book3s_hv_nested.c:289:6: warning: stack frame size (1856) exceeds limit (768) in function 'kvmhv_enter_nested_guest' [-Wframe-larger-than]
  long kvmhv_enter_nested_guest(struct kvm_vcpu *vcpu)
       ^
  1 warning generated.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D104836



More information about the llvm-commits mailing list