Newsgroups: php.internals Path: news.php.net Xref: news.php.net php.internals:121539 Return-Path: Delivered-To: mailing list internals@lists.php.net Received: (qmail 66527 invoked from network); 31 Oct 2023 08:57:46 -0000 Received: from unknown (HELO php-smtp4.php.net) (45.112.84.5) by pb1.pair.com with SMTP; 31 Oct 2023 08:57:46 -0000 Received: from php-smtp4.php.net (localhost [127.0.0.1]) by php-smtp4.php.net (Postfix) with ESMTP id 1E850180212 for ; Tue, 31 Oct 2023 01:57:42 -0700 (PDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on php-smtp4.php.net X-Spam-Level: X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,HTML_MESSAGE, RCVD_IN_DNSWL_NONE,RCVD_IN_MSPIKE_H3,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE, SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.2 X-Spam-ASN: AS15169 209.85.128.0/17 X-Spam-Virus: No X-Envelope-From: Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by php-smtp4.php.net (Postfix) with ESMTPS for ; Tue, 31 Oct 2023 01:57:41 -0700 (PDT) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6c10f098a27so1594320b3a.2 for ; Tue, 31 Oct 2023 01:57:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1698742660; x=1699347460; darn=lists.php.net; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=qRlWeEPhgT1Sw9qyxxb3rI/JaroSkxWF9OAQ3IfpvYQ=; b=fJezkjKoZKpuuzR2bB1lO/FVRuxDqjaFkQmILCzzuMPTO98vtzEeooqovEw/LTqwIa PPoYX43FlO0jtTB92L7G8NDUQYBb1FHDBi4+rEYOG2t2M4HxmzXNrmhlZ7rtaJcpOweW 9WWte2a+8eEZy71inuRriWCT1bWggVhWaikP2WXrGgQ9MCxoVl0TofFTKLd+JhcNfyg9 TilzuzbuhhFRvn2ajGlefCD6hU1+vBEun2Jg0r7eiUvaUe5l1Os3NiIqR3OG7L0taNeo Lpz3xGdr+xvXm7e7nTOxATiLnAW+JbN6s6Bgz6KQSTFOEYnqpJUSsmyrBXbLSZxbVS+n wTkQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698742660; x=1699347460; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qRlWeEPhgT1Sw9qyxxb3rI/JaroSkxWF9OAQ3IfpvYQ=; b=uCTncGj+ZF6wC2k66Qycsz573pgNaVtFVMMgnEUcX1jkOgPGQ2ht5ycGoWk/GD+bzS Qtc61sFf35LsF1t6Jse0ObCe+JybXHuPvsjeBX0ac8Upb7HiZC7Uq2jZNc8lKtmB9Ljw E2v+AxySA1+4YBBin+hFlhuhef0XbG8ySbwkyNVfyA5aU+EZ5NsyazIPSY89tJRtp85U SZLxx/5drx0It9hfBVtbcUu3pQrY/pNEfclSDJ/dFh32e9TwPHokBFgv6OJ7eU1lrjvd i6/H2nUBxe7okD1GNMUOKj2+Wazg7g6o64KhW3VTj+owuTfyNFscgoy5W52//3fx64XU AVkw== X-Gm-Message-State: AOJu0YxYfW+hq7wUCytfj39aCVNfsXvJuRLLQALNZB8Tv/OI63ReLx/1 KRh1s6u5SwYnxwGwbe4SS2qlkaRDQTxw+7Ricmedz7uIz90= X-Google-Smtp-Source: AGHT+IGGs9zSsvErZoynsnaTF3dak9XdjTJRfD8szR8ewSze9DjxI5CoaUrKrR0b34IeyZ2t94j7WjuACKq4OYZSxpQ= X-Received: by 2002:a05:6a20:918d:b0:17a:eddb:ac65 with SMTP id v13-20020a056a20918d00b0017aeddbac65mr11747279pzd.9.1698742660369; Tue, 31 Oct 2023 01:57:40 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: Date: Tue, 31 Oct 2023 08:57:28 +0000 Message-ID: To: "Su, Tao" Cc: PHP internals Content-Type: multipart/alternative; boundary="000000000000d60f800608ff5846" Subject: Re: [PHP-DEV] Make PHP JIT to generate AVX2/AVX3 for performance improvement? From: fenniclog@gmail.com (tag Knife) --000000000000d60f800608ff5846 Content-Type: text/plain; charset="UTF-8" > Hi Guys, > > A quick question: is it possible to enable AVX2/AVX3 in PHP JIT generated > code, and hence can get some performance improvement? > Just check the community first: if anyone has already tried that or got > some experiences? before we dive into this investigation. > We are discussing if we could get some extra performance via new AVX > instructions in PHP program execution. > > Thanks. > AVX3 might be too new to just flat out generate for it. But It can be quite simple for the JIT compiler to be aware of what features flags are enabled on a CPU and generate compatible instructions that will run on that CPU. --000000000000d60f800608ff5846--