From 752f9d02cc3ea56dd94c4eac0eeebafb388ae4e7 Mon Sep 17 00:00:00 2001 From: "Luo, Yuanke" Date: Mon, 29 May 2023 10:24:13 +0800 Subject: [PATCH] [NFC][TableGen] Remove dead code. Differential Revision: https://reviews.llvm.org/D151635 --- llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp b/llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp index 8776898be649..6be0d6ae2fe1 100644 --- a/llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp +++ b/llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp @@ -681,12 +681,7 @@ void GIMatchTreeVRegDefPartitioner::repartition( WantsEdge = true; } - bool isNotReg = false; - if (!WantsEdge && isNotReg) { - // If this leaf doesn't have an edge and we _don't_ want a register, - // then add it to partition 0. - addToPartition(false, Leaf.index()); - } else if (!WantsEdge) { + if (!WantsEdge) { // If this leaf doesn't have an edge and we don't know what we want, // then add it to partition 0 and 1. addToPartition(false, Leaf.index());