[PATCH] D58308: [EarlyCSE] Cleanup deadcode. [NFCI]
Alina Sbirlea via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Thu Feb 21 11:49:36 PST 2019
This revision was automatically updated to reflect the committed changes.
Closed by commit rL354612: [EarlyCSE] Cleanup deadcode. [NFCI] (authored by asbirlea, committed by ).
Repository:
rL LLVM
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D58308/new/
https://reviews.llvm.org/D58308
Files:
llvm/trunk/lib/Transforms/Scalar/EarlyCSE.cpp
Index: llvm/trunk/lib/Transforms/Scalar/EarlyCSE.cpp
===================================================================
--- llvm/trunk/lib/Transforms/Scalar/EarlyCSE.cpp
+++ llvm/trunk/lib/Transforms/Scalar/EarlyCSE.cpp
@@ -1169,8 +1169,7 @@
CurrentGeneration, DT.getRootNode(),
DT.getRootNode()->begin(), DT.getRootNode()->end()));
- // Save the current generation.
- unsigned LiveOutGeneration = CurrentGeneration;
+ assert(!CurrentGeneration && "Create a new EarlyCSE instance to rerun it.");
// Process the stack.
while (!nodesToProcess.empty()) {
@@ -1202,9 +1201,6 @@
}
} // while (!nodes...)
- // Reset the current generation.
- CurrentGeneration = LiveOutGeneration;
-
return Changed;
}
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D58308.187837.patch
Type: text/x-patch
Size: 741 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190221/fae605e4/attachment.bin>
More information about the llvm-commits
mailing list