Skip to content

Commit d912e14

Browse files
committed
Patch simplifyCFG back to merge one successor and check for compatibility
1 parent fd6f815 commit d912e14

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8339,7 +8339,7 @@ bool SimplifyCFGOpt::simplifyOnce(BasicBlock *BB) {
83398339
// Merge basic blocks into their predecessor if there is only one distinct
83408340
// pred, and if there is only one distinct successor of the predecessor, and
83418341
// if there are no PHI nodes.
8342-
if (MergeBlockIntoPredecessor(BB, DTU, nullptr, nullptr, nullptr, true))
8342+
if (MergeBlockIntoPredecessor(BB, DTU))
83438343
return true;
83448344

83458345
if (SinkCommon && Options.SinkCommonInsts)

0 commit comments

Comments
 (0)