projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0ad88c1
)
[NFC][TableGen] Remove dead code.
author
Luo, Yuanke
<yuanke.luo@intel.com>
Mon, 29 May 2023 02:24:13 +0000
(10:24 +0800)
committer
Luo, 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
patch
|
blob
|
history
diff --git
a/llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp
b/llvm/utils/TableGen/GlobalISel/GIMatchTree.cpp
index
8776898
..
6be0d6a
100644
(file)
--- 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());