|
From: | Paul Cercueil |
Subject: | Re: [PATCH] ppc: Add optimization to generate endian-swapping load opcodes |
Date: | Fri, 12 Aug 2022 14:26:28 +0200 |
[...]
Actually that case would be fine. It's for the case where the LABEL is between the ldr_ui and the bswapr_ui. I do check the previous opcode,because that's where the jit_flag_patch seems to be.I see. The logic is just checking if the previous node is a label or anepilog implicit patch.
Actually it looks like the detection code is broken. With the example code of my previous email, if I add a jit_label() between the jit_ldr_ui() and the jit_bswapr_ui(), it still converts to the LWBRX opcode and Lightning eventually fails an assert() in jit_address().
-Paul
[Prev in Thread] | Current Thread | [Next in Thread] |