Received: from malur.postgresql.org ([217.196.149.56]) by arkaria.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qr59Q-002SxY-J4 for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Oct 2023 23:31:32 +0000 Received: from localhost ([127.0.0.1] helo=malur.postgresql.org) by malur.postgresql.org with esmtp (Exim 4.94.2) (envelope-from ) id 1qr59O-00ByJy-Bo for pgsql-hackers@arkaria.postgresql.org; Thu, 12 Oct 2023 23:31:31 +0000 Received: from makus.postgresql.org ([2001:4800:3e1:1::229]) by malur.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qr59N-00ByJS-Db for pgsql-hackers@lists.postgresql.org; Thu, 12 Oct 2023 23:31:30 +0000 Received: from wout3-smtp.messagingengine.com ([64.147.123.19]) by makus.postgresql.org with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qr59L-000CcG-CO for pgsql-hackers@lists.postgresql.org; Thu, 12 Oct 2023 23:31:28 +0000 Received: from compute1.internal (compute1.nyi.internal [10.202.2.41]) by mailout.west.internal (Postfix) with ESMTP id E10B532009D9; Thu, 12 Oct 2023 19:31:24 -0400 (EDT) Received: from mailfrontend1 ([10.202.2.162]) by compute1.internal (MEProxy); Thu, 12 Oct 2023 19:31:25 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=anarazel.de; h= cc:cc:content-type:content-type:date:date:from:from:in-reply-to :in-reply-to:message-id:mime-version:references:reply-to:sender :subject:subject:to:to; s=fm2; t=1697153484; x=1697239884; bh=RK cSNc9X+mUzMETzZpm/FuS4/sFkQyUkC6HDZLZJKiI=; b=euJiBbj7MpXYZro1Ew pYWg4ThjKYNgBeeOfT/q8sme6bfQ06riMhk7JEK+aps/B6VTIXN8rNfVtaUSWWqS G5lE7ucVRTsP5On1agHLdlf07QtKjwQ6qZs9V+9Nkyol6iEZFow+R0HjzNYNN4xU FrL/p+XtQupG/VduhkA4z2C5T+l9oKh7LhUEvJqNI0bg6HdT6Dww00KBZAv8Jx0f spePCIUBw/iWVu0x00bh5Kiu305NRE4ZyBLtqrbAIE5WdPUBRuieKV8Ean9D3fsE 38Upw8CXPjg05DM+ZGeyxMVP/GRDe+Tz0OKZZ9s0fJWh/IO5i+ifVTfdw75FvfXI kV4A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:content-type:date:date :feedback-id:feedback-id:from:from:in-reply-to:in-reply-to :message-id:mime-version:references:reply-to:sender:subject :subject:to:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; t=1697153484; x=1697239884; bh=RKcSNc9X+mUzM ETzZpm/FuS4/sFkQyUkC6HDZLZJKiI=; b=hi/B7F9wzdMdWOXZxUz6BSNchyPtt f7oflMgkImKaAQArh43qzhc5bqQ3b3un0elHZpHQRpibIdRJq/eBhtDceMak1jn5 NI0Ep+kvOAmALh41a1BOdsigbJ758QJ9kpBA6SrPfVD6BII8217FwFxWoTcy38CL nEBek8g3UJVrHWWRV90qVb3/iwDLySXVPeutn+Ss8UZj+Lt7BBOTod0wKwuGGT3y +7pyU1ghx34D0b7qrscWt8gmc2tdDGbLMUJRub/3Ppc2xLWNQxGGmo6BSH6a/07J CCvx4jpJBinZPujJJIUs9iWELpuT5aLJ5l1yH9uzHxUFOgxBCK7UBPO+w== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvkedriedugddvfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjsehttdertddttddvnecuhfhrohhmpeetnhgurhgv shcuhfhrvghunhguuceorghnughrvghssegrnhgrrhgriigvlhdruggvqeenucggtffrrg htthgvrhhnpedvffefvefhteevffegieetfefhtddvffejvefhueetgeeludehteevudei tedtudenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepmhgrihhlfhhrohhmpe grnhgurhgvshesrghnrghrrgiivghlrdguvg X-ME-Proxy: Feedback-ID: id4a34324:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 12 Oct 2023 19:31:22 -0400 (EDT) Date: Thu, 12 Oct 2023 16:31:20 -0700 From: Andres Freund To: Thomas Munro Cc: Devrim =?utf-8?B?R8O8bmTDvHo=?= , PostgreSQL Hackers , Fabien COELHO , Ronan Dunklau , Dmitry Dolgov <9erthalion6@gmail.com> Subject: Re: LLVM 16 (opaque pointers) Message-ID: <20231012233120.chrw72oxc2pg3vpi@awork3.anarazel.de> References: <7d82e672-ed84-4fb1-b686-d477a7e2a043@mines-paristech.fr> <34036e05460e871024873d7542ceff0b2eaac13c.camel@gunduz.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: List-Help: List-Subscribe: List-Post: List-Owner: List-Archive: Archived-At: Precedence: bulk Hi, On 2023-10-11 21:59:50 +1300, Thomas Munro wrote: > +#else > + LLVMPassBuilderOptionsRef options; > + LLVMErrorRef err; > + int compile_optlevel; > + char *passes; > + > + if (context->base.flags & PGJIT_OPT3) > + compile_optlevel = 3; > + else > + compile_optlevel = 0; > + > + passes = psprintf("default,mem2reg,function(no-op-function),no-op-module", > + compile_optlevel); I don't think the "function(no-op-function),no-op-module" bit does something particularly useful? I also don't think we should add the mem2reg pass outside of -O0 - running it after a real optimization pipeline doesn't seem useful and might even make the code worse? mem2reg is included in default (and obviously also in O3). Thanks for working on this stuff! I'm working on setting up buildfarm animals for 16, 17, each once with a normal and an assertion enabled LLVM build. Greetings, Andres Freund