Remove code sinking for -O. (#2340)

Community feedback says it is not generaly benificial, so we will remove
it from the standard optimization set.
This commit is contained in:
Steven Perron 2019-01-28 11:50:50 -05:00 committed by GitHub
parent 98c67d3850
commit 9ab1c0ddd0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -182,8 +182,7 @@ Optimizer& Optimizer::RegisterPerformancePasses() {
.RegisterPass(CreateRedundancyEliminationPass())
.RegisterPass(CreateDeadBranchElimPass())
.RegisterPass(CreateBlockMergePass())
.RegisterPass(CreateSimplificationPass())
.RegisterPass(CreateCodeSinkingPass());
.RegisterPass(CreateSimplificationPass());
// Currently exposing driver bugs resulting in crashes (#946)
// .RegisterPass(CreateCommonUniformElimPass())
}