Message ID | 20240110013159.2645757-5-ewlu@rivosinc.com |
---|---|
State | New |
Headers | show
Return-Path: <gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=rivosinc-com.20230601.gappssmtp.com header.i=@rivosinc-com.20230601.gappssmtp.com header.a=rsa-sha256 header.s=20230601 header.b=NE74diNI; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=2620:52:3:1:0:246e:9693:128c; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) Received: from server2.sourceware.org (server2.sourceware.org [IPv6:2620:52:3:1:0:246e:9693:128c]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4T8r1b6Ts8z1yPp for <incoming@patchwork.ozlabs.org>; Wed, 10 Jan 2024 12:34:11 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id D834238582BC for <incoming@patchwork.ozlabs.org>; Wed, 10 Jan 2024 01:34:09 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-ot1-x32b.google.com (mail-ot1-x32b.google.com [IPv6:2607:f8b0:4864:20::32b]) by sourceware.org (Postfix) with ESMTPS id C53E43858C52 for <gcc-patches@gcc.gnu.org>; Wed, 10 Jan 2024 01:32:20 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org C53E43858C52 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=rivosinc.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=rivosinc.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org C53E43858C52 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::32b ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704850342; cv=none; b=bwhnimkmIWZgBTf56TiR39aisjayxVlzgkj0HyaTH7gJdMosQFtsnT9j/oBnzANaeAyZHXYTA0dHLKbM0mEg1f5x2P2A2tTLdirr7c4PNXDFwOHh2+E/Ggoyef6HAM2KtF5nj1Lf3WY6pC/yqT3YYDgt8KwaPqb6L2GQ6GnCbjo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1704850342; c=relaxed/simple; bh=TAmk0UWjVKDFk2ul+1pwhui1ZSEWpibrUjy3mLDsbAg=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=OjXNLPUKjdfnRWEQq/5L+O/ALF7H6j6+iNj/Bfc1FvNwjHj0jqt8t2plVw3rVkwoDl1ajdlR1p+f+tZnRnluK9rhmjPnpYAAU0Md8WnwYZUV9eHNKvX5Wwe294uAU3Ijllcgp2QK+4oDnk8etAi4D2J/OGBeb7zEoXdUgwrVN7M= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-ot1-x32b.google.com with SMTP id 46e09a7af769-6ddeec84e35so299564a34.3 for <gcc-patches@gcc.gnu.org>; Tue, 09 Jan 2024 17:32:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rivosinc-com.20230601.gappssmtp.com; s=20230601; t=1704850340; x=1705455140; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=++kFcIdrCJcOrBFKyqFfbuaKSQqveMaYPEHiI5uIcXs=; b=NE74diNI0H+r2wKFy+Dq77XR6am/nN8HuVQBsL1OB1gnVhpdnhtAp9zYq5nG9T7hU1 lutehsT/pWtOSFoHfHZGg1ayDX5NL4qpT6uXf5pMo0UNi7KyfNmKBz/KLApwYnUOWc9z /RVyng3qMsCH6DU+X+/l96vDIi5fAS4zjoidgbhUHvwiCywQtX2bxY0Nr9stSO+kdAey wXL6NEpf9EXsSPxhb+HUgNN63Wi+3QSI1aBS5aZhHGrwPwB5vzCZ7/KSH45rBSAgPIRK CvClCKb/w10qcNNHveHJEId+lYv2mgBGLBO79ICJ9MGiDQwQR9xcEOolno/8HMPSkTsd Z7qA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1704850340; x=1705455140; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=++kFcIdrCJcOrBFKyqFfbuaKSQqveMaYPEHiI5uIcXs=; b=nE4HR4idS5Crlstnnc1EhgTEtaHAsKeBNrslPZvOAi98aM3vSY9eX/50eyHne40R9l OkxH26xI/C+TebohVa6c3vdnAXGYMXmIUcmJQPFlAZzDxyVV2JxQNy7jq7ka1AaqY2uP obYbslmc88aTradztEwF8rRqQEZjEvpHzZUm5Sg1jtuIvbULLEds2AFvUNSqshMW13B5 VoXvoREKtBt7hO5uIS0rvrfToUrxAG1rdshw8KMWl5cnw7ot7x7Ouy7jTpHJeBsrHM41 /e+vncnmv/83x9QxSKkoWaKtgaJIbqV6zeH27KHNVVYOsxERtAzSm9yoRNAPtYOAWym9 ERAA== X-Gm-Message-State: AOJu0Yy2+voqrjPwSb+6v3i0uKaLbYKYqePXP7YtkKxoTYWfsTfvxv+k wFNWwjqUcJxSVsneJVfb3nzJFq6TbboHxPrFMVa8zZnJBXk= X-Google-Smtp-Source: AGHT+IFrQIX4u715gD1YI8nFYQxRp+aBdgYBW1GC0kl964mv+OxMgDg9oNPZjwXe4NqRbWgzBxcw8w== X-Received: by 2002:a9d:6e0f:0:b0:6dc:2e3a:fef6 with SMTP id e15-20020a9d6e0f000000b006dc2e3afef6mr210543otr.56.1704850340133; Tue, 09 Jan 2024 17:32:20 -0800 (PST) Received: from ewlu.ba.rivosinc.com ([64.71.180.162]) by smtp.gmail.com with ESMTPSA id a9-20020a9d4709000000b006dc81d1d203sm565423otf.73.2024.01.09.17.32.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 09 Jan 2024 17:32:19 -0800 (PST) From: Edwin Lu <ewlu@rivosinc.com> To: gcc-patches@gcc.gnu.org Cc: gnu-toolchain@rivosinc.com, Edwin Lu <ewlu@rivosinc.com> Subject: [PATCH V2 4/4][RFC] RISC-V: Enable assert for insn_has_dfa_reservation Date: Tue, 9 Jan 2024 17:31:59 -0800 Message-Id: <20240110013159.2645757-5-ewlu@rivosinc.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240110013159.2645757-1-ewlu@rivosinc.com> References: <20240110013159.2645757-1-ewlu@rivosinc.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.4 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE, URIBL_BLACK autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list <gcc-patches.gcc.gnu.org> List-Unsubscribe: <https://gcc.gnu.org/mailman/options/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=unsubscribe> List-Archive: <https://gcc.gnu.org/pipermail/gcc-patches/> List-Post: <mailto:gcc-patches@gcc.gnu.org> List-Help: <mailto:gcc-patches-request@gcc.gnu.org?subject=help> List-Subscribe: <https://gcc.gnu.org/mailman/listinfo/gcc-patches>, <mailto:gcc-patches-request@gcc.gnu.org?subject=subscribe> Errors-To: gcc-patches-bounces+incoming=patchwork.ozlabs.org@gcc.gnu.org |
Series |
RISC-V: Associate typed insns to dfa reservation
|
expand
|
diff --git a/gcc/config/riscv/riscv.cc b/gcc/config/riscv/riscv.cc index 32183d63180..e275fcc2245 100644 --- a/gcc/config/riscv/riscv.cc +++ b/gcc/config/riscv/riscv.cc @@ -8150,9 +8150,11 @@ riscv_sched_variable_issue (FILE *, int, rtx_insn *insn, int more) /* If we ever encounter an insn without an insn reservation, trip an assert so we can find and fix this problem. */ -#if 0 + if (! insn_has_dfa_reservation_p (insn)) { + print_rtl(stderr, insn); + fprintf(stderr, "%d", get_attr_type (insn)); + } gcc_assert (insn_has_dfa_reservation_p (insn)); -#endif return more - 1; }
Enables assert that every typed instruction is associated with a dfa reservation gcc/ChangeLog: * config/riscv/riscv.cc (riscv_sched_variable_issue): enable assert Signed-off-by: Edwin Lu <ewlu@rivosinc.com> --- V2: - No changes --- gcc/config/riscv/riscv.cc | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)