Skip to content

Commit e315f89

Browse files
committed
Patch simplifyCFG back to merge one successor and check for compatibility
1 parent 69813cf commit e315f89

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
@@ -8337,7 +8337,7 @@ bool SimplifyCFGOpt::simplifyOnce(BasicBlock *BB) {
83378337
// Merge basic blocks into their predecessor if there is only one distinct
83388338
// pred, and if there is only one distinct successor of the predecessor, and
83398339
// if there are no PHI nodes.
8340-
if (MergeBlockIntoPredecessor(BB, DTU, nullptr, nullptr, nullptr, true))
8340+
if (MergeBlockIntoPredecessor(BB, DTU))
83418341
return true;
83428342

83438343
if (SinkCommon && Options.SinkCommonInsts)

0 commit comments

Comments
 (0)