kubamracek wrote:

I'd like to understand the the performance claims a bit better. Do I understand 
correctly that:
- nobody's saying that sret-ing is more efficient than direct returning in xmm0
- what is argued and demonstrated is that moving data between GPR and XMM 
registers is slow, and sret-ing can *sometimes* avoid that
- so especially in the case where one or both sides of the caller-callee pair 
need to do GPR<->XMM moves, sret-ing is *even more likely* to perform better 
(though, it seems not to be an absolute claim, there's always going to be cases 
where that's worse)

And then in particular, is it true that:
- for internal functions (no ABI requirements), where GPR<->XMM moves are not 
present, we would probably want to actively avoid sret-ing? (Not saying this 
would need to be done in Clang, but somewhere.)

I'm asking because of https://github.com/llvm/llvm-project/issues/242246.

https://github.com/llvm/llvm-project/pull/210358
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to