Re: JIT: Remove some unnecessary instructions. - Mailing list pgsql-hackers

From Andreas Karlsson
Subject Re: JIT: Remove some unnecessary instructions.
Date
Msg-id 13394b72-4116-4a4c-90f8-83031ec8cd89@proxel.se
Whole thread Raw
List pgsql-hackers
On 8/30/24 5:55 AM, Xing Guo wrote:
> I find there are some unnecessary load/store instructions being
> emitted by the JIT compiler.

Well spotted! All of these are obvious dead instructions and while LLVM 
might be able to optimize them away there is no reason to create extra 
work for the optimizer.

The patch looks good, applies and the tests passes.

Andreas



pgsql-hackers by date:

Previous
From: Andreas Karlsson
Date:
Subject: Re: pgstattuple: fix free space calculation
Next
From: Peter Geoghegan
Date:
Subject: Re: bt Scankey in another contradictory case