lightning
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Optimizing byte-swap-and-store on PPC


From: Paul Cercueil
Subject: Optimizing byte-swap-and-store on PPC
Date: Thu, 09 Feb 2023 11:18:55 +0000

Hi Paulo,

If you remember, I added an optimization (for my use case anyway) for
the following code:

jit_ldr(rY, rX);
jit_bswapr(rY, rY);

Lightning will only generate a single LWBRX instruction for this.

Now I would like to do the same for stores. The problem is that the
pattern typically use a temporary register T:

jit_bswapr(T, rX);
jit_str(rY, T);

How can I know that the register T is dead after this pattern?

Cheers,
-Paul



reply via email to

[Prev in Thread] Current Thread [Next in Thread]