Re: JIT: Remove some unnecessary instructions.

Andreas Karlsson <andreas@proxel.se>

From: Andreas Karlsson <andreas@proxel.se>
To: Xing Guo <higuoxing@gmail.com>, pgsql-hackers@lists.postgresql.org
Date: 2024-08-30T12:50:51Z
Lists: 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



Commits

Same data as JSON: GET /api/v1/messages/:b64id/commits the thread's linked commits as JSON, with link sources. API reference →
  1. jit: Stop emitting some unnecessary instructions