[llvm] [GlobalISel] Global ISel for `brcond`. NFC (PR #81306)

via llvm-commits llvm-commits at lists.llvm.org
Fri Feb 9 11:41:36 PST 2024


https://github.com/darkbuck created https://github.com/llvm/llvm-project/pull/81306

- So far, it's not used in in-tree targets.


>From 5f00686369fdeb6f00fa949a8f9a6baf47eed9f5 Mon Sep 17 00:00:00 2001
From: Michael Liao <michael.hliao at gmail.com>
Date: Fri, 9 Feb 2024 14:41:28 -0500
Subject: [PATCH] =?UTF-8?q?[=F0=9D=98=80=F0=9D=97=BD=F0=9D=97=BF]=20initia?=
 =?UTF-8?q?l=20version?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

Created using spr 1.3.4
---
 llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td | 1 +
 1 file changed, 1 insertion(+)

diff --git a/llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td b/llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
index f792237203b431..6bc19421fb0169 100644
--- a/llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
+++ b/llvm/include/llvm/Target/GlobalISel/SelectionDAGCompat.td
@@ -130,6 +130,7 @@ let IfConvergent = G_INTRINSIC_CONVERGENT_W_SIDE_EFFECTS in {
 }
 
 def : GINodeEquiv<G_BR, br>;
+def : GINodeEquiv<G_BRCOND, brcond>;
 def : GINodeEquiv<G_BSWAP, bswap>;
 def : GINodeEquiv<G_BITREVERSE, bitreverse>;
 def : GINodeEquiv<G_FSHL, fshl>;



More information about the llvm-commits mailing list