From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-vk1-xa30.google.com (mail-vk1-xa30.google.com [IPv6:2607:f8b0:4864:20::a30]) by sourceware.org (Postfix) with ESMTPS id 901413858D20 for ; Thu, 25 May 2023 03:53:21 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 901413858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-vk1-xa30.google.com with SMTP id 71dfb90a1353d-456fbddd3e8so26194e0c.3 for ; Wed, 24 May 2023 20:53:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20221208; t=1684986801; x=1687578801; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=ipAYLTvX1fWQKscLU4YUKtHSVvUmaPMSH2rK/65/18s=; b=DIpQzmEpoO9I3vpX8ST3+2ib8QK8JFWOkI9tgvcTrF3NPfC2yFCI+UXndBrQ875s6s i0INQaUIVMKx2KQb7zVwUNenSbHvvf5mT9SJMOi3GPJVVnvyRsSzMGl9S+ktunpY1C89 59iHyOdsR93bCR1wJIdsqhTa4WCl6W/pPatPSWQ8KYHsBRwh33l+lzcTVn8UY5Y3ds2c S2cpiuYVjN0u14VhPBGxJltjc+PSh6xKJ7LYIjDyS+8AxmjY6P4KYRzkeesb9G/4DwsX So5MDshPduzolggYh0+M1+XfPllyfHzNABXcZ9fEr6i/4QEf7rJD4LfJv5PRMHivU2Nu itpw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1684986801; x=1687578801; h=content-transfer-encoding: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=ipAYLTvX1fWQKscLU4YUKtHSVvUmaPMSH2rK/65/18s=; b=PRQ2UWLaqcM7ogK5hs0Tg5h63fbeXpmD2MsV1Ha9uRlDPez6twCWs4ZeiZiJG0zn59 X99X5pVYi+w9YAhU1PvUGnM5OGFQQwXfgWNHK67SOhHUAl3xPdXo/SvKc3CgxsRwdFQZ 8X5BCX7djtHMT1FJO9BkbE4qwpM/Tu2F502D9AnRHtStlLpHLgkXcIxU6k+Ru2SGl7tn 56Krb0TgCN5oMq+jRVFfjNILuoZIakRk1faOSjU0siMc+tTmctt4JZ0x3sYjEttzQ9Ru Kfsf8CKCjhMzX/7HnQYZrSCZha2PnqxMwDgx+2AjxLzP9IzgD1NKxlWA7TM9pkWpTUKZ SmFg== X-Gm-Message-State: AC+VfDwAdnHDT63Zz7Sk9cCgMTWCFJiafxgVQI6kGptfoF7rYTTO3zTS KVf4keNaGBnnbIap/HknYFxMoT/KI8DGp07AcPY= X-Google-Smtp-Source: ACHHUZ7C6qsrpZPLxZjK/tarxojyjVUly6joJoEv2tARZ+imvBWR1zSo5srkFNs9W7VL0Jot9rZw/a9m/IVMIGgk0y8= X-Received: by 2002:a1f:4113:0:b0:43c:2acc:4814 with SMTP id o19-20020a1f4113000000b0043c2acc4814mr6468112vka.2.1684986800685; Wed, 24 May 2023 20:53:20 -0700 (PDT) MIME-Version: 1.0 References: <66780d8b-41bf-95ac-3266-c4025636757e@gmail.com> In-Reply-To: From: Kito Cheng Date: Thu, 25 May 2023 11:53:09 +0800 Message-ID: Subject: Re: Re: RISC-V Bootstrap problems To: "juzhe.zhong@rivai.ai" Cc: jeffreyalaw , palmer , vineetg , "Kito.cheng" , gcc-patches , "Patrick O'Neill" , jlaw , macro Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: Jojo has a patch to try to split those things that should help this, but seems not landed. https://patchwork.ozlabs.org/project/gcc/patch/20201104015315.81416-1-jieji= e_rong@c-sky.com/ > How about LLVM? Can kito help with this issue? > LLVM has already supported full intrinsics for a long time and no issues. IIRC LLVM is using the table driven mechanism, so it's less impact on the compilation time when the instruction becomes more and more. On Thu, May 25, 2023 at 11:46=E2=80=AFAM juzhe.zhong@rivai.ai wrote: > > segment intrinsics are really huge amount. > > Even though I have tried to optimized them, still we have the issues.....= . > > How about LLVM? Can kito help with this issue? > LLVM has already support full intrinsics for a long time and no issues. > > Thanks. > > > juzhe.zhong@rivai.ai > > From: Jeff Law > Date: 2023-05-25 11:43 > To: Palmer Dabbelt; Vineet Gupta > CC: kito.cheng; gcc-patches; Kito Cheng; Patrick O'Neill; Jeff Law; macro= ; juzhe.zhong@rivai.ai > Subject: Re: RISC-V Bootstrap problems > > > On 5/24/23 17:13, Palmer Dabbelt wrote: > > On Wed, 24 May 2023 16:12:20 PDT (-0700), Vineet Gupta wrote: > > [ ... big snip ... ] > > >> > >> Never mind. Looks like I found the issue - with just trial and error a= nd > >> no idea of how this stuff works. > >> The torture-{init,finish} needs to be in riscv.exp not rvv.exp > >> Running full tests now. > > > > Thanks! > Marginally related. I was able to bisect the "hang" when 3-staging the > trunk on RISC-V with qemu user mode emulation. > > So it wasn't actually hanging, but after the introduction of segment > intrinsics the compilation time for insn-emit explodes -- previously I > could do a full 3-stage bootstrap, build the glibc & the kernel, then > test c/c++/fortran in ~10 hours. > > Now just building insn-emit.o alone takes ~10 hours in that environment. > I suspect (but have not yet confirmed) that we should see a huge > compile-time spike in cross builds as well, though obviously it won't be > as bad since we're not using qemu emulation. > > Clearly something isn't scaling well. I don't know if we've got a crazy > large function in there, a crazy number of functions or something that's > just triggering a compile-time scaling problem. Whatever it is, we > probably need to address it. > > jeff > >