[NFC][TableGen] Remove dead code.
authorLuo, Yuanke <yuanke.luo@intel.com>
Mon, 29 May 2023 02:24:13 +0000 (10:24 +0800)
committerLuo, Yuanke <yuanke.luo@intel.com>
Mon, 29 May 2023 07:59:33 +0000 (15:59 +0800)
Differential Revision: https://reviews.llvm.org/D151635

llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp

index 8776898..6be0d6a 100644 (file)
@@ -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());