[llvm] 752f9d0 - [NFC][TableGen] Remove dead code.
via llvm-commits
llvm-commits at lists.llvm.org
Mon May 29 00:59:48 PDT 2023
Author: Luo, Yuanke
Date: 2023-05-29T15:59:33+08:00
New Revision: 752f9d02cc3ea56dd94c4eac0eeebafb388ae4e7
URL: https://github.com/llvm/llvm-project/commit/752f9d02cc3ea56dd94c4eac0eeebafb388ae4e7
DIFF: https://github.com/llvm/llvm-project/commit/752f9d02cc3ea56dd94c4eac0eeebafb388ae4e7.diff
LOG: [NFC][TableGen] Remove dead code.
Differential Revision: https://reviews.llvm.org/D151635
Added:
Modified:
llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp
Removed:
################################################################################
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());
More information about the llvm-commits
mailing list