Skip to content

Commit ed38ae3

Browse files
committed
Update comments
1 parent be325aa commit ed38ae3

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

llvm/lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1871,10 +1871,10 @@ bool SimplifyCFGOpt::hoistCommonCodeFromSuccessors(Instruction *TI,
18711871
return false;
18721872
if (Succ->getSinglePredecessor())
18731873
continue;
1874-
// If Succ has >1 predecessors, continue to check if the Succ is terminated
1875-
// by an `unreachable` inst. Since executing `unreachable` inst is an UB, we
1874+
// If Succ has >1 predecessors, continue to check if the Succ contains only
1875+
// one `unreachable` inst. Since executing `unreachable` inst is an UB, we
18761876
// can relax the condition based on the assumptiom that the program would
1877-
// never enter Succ and trigger an UB.
1877+
// never enter Succ and trigger such an UB.
18781878
if (isa<UnreachableInst>(*Succ->begin()))
18791879
continue;
18801880
return false;

0 commit comments

Comments
 (0)