summaryrefslogtreecommitdiff
path: root/source/opt/optimizer.cpp
diff options
context:
space:
mode:
authorGregF <greg@LunarG.com>2017-06-07 15:28:53 -0600
committerDavid Neto <dneto@google.com>2017-06-27 11:31:33 -0400
commitad1d0351a0ba341e980c6e7c226323c008d96b51 (patch)
tree6c442243518819540f701e414f50796b2983b779 /source/opt/optimizer.cpp
parent0b0454c42c6b6f6746434bd5c78c5c70f65d9c51 (diff)
BlockMerge: Add BlockMergePass
Also, add BasicBlock::tail()
Diffstat (limited to 'source/opt/optimizer.cpp')
-rw-r--r--source/opt/optimizer.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/source/opt/optimizer.cpp b/source/opt/optimizer.cpp
index 40cd75a4..19bee76e 100644
--- a/source/opt/optimizer.cpp
+++ b/source/opt/optimizer.cpp
@@ -132,6 +132,11 @@ Optimizer::PassToken CreateEliminateDeadConstantPass() {
MakeUnique<opt::EliminateDeadConstantPass>());
}
+Optimizer::PassToken CreateBlockMergePass() {
+ return MakeUnique<Optimizer::PassToken::Impl>(
+ MakeUnique<opt::BlockMergePass>());
+}
+
Optimizer::PassToken CreateInlinePass() {
return MakeUnique<Optimizer::PassToken::Impl>(MakeUnique<opt::InlinePass>());
}