Skip to content
This repository was archived by the owner on Nov 1, 2021. It is now read-only.

Commit 2853e8f

Browse files
committed
Remove redundant dead inst elimination
Post-opt passes were running dead inst elimination as well as dead code elimination, which is strictly superior to dead inst elimination. R=dschuff@chromium.org BUG= none TEST= make check Review URL: https://codereview.chromium.org/1045043003
1 parent cf83520 commit 2853e8f

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/Transforms/NaCl/PNaClABISimplify.cpp

+1-3
Original file line numberDiff line numberDiff line change
@@ -173,8 +173,6 @@ void llvm::PNaClABISimplifyAddPostOptPasses(PassManagerBase &PM) {
173173
// ReplacePtrsWithInts leaves the lifetime.start/end intrinsics.
174174
PM.add(createStripDeadPrototypesPass());
175175

176-
// Eliminate simple dead code that the post-opt passes could have
177-
// created.
178-
PM.add(createDeadInstEliminationPass());
176+
// Eliminate simple dead code that the post-opt passes could have created.
179177
PM.add(createDeadCodeEliminationPass());
180178
}

0 commit comments

Comments
 (0)