Skip to content

Commit 328c735

Browse files
committed
add comment
1 parent d85633d commit 328c735

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

llvm/lib/Transforms/Scalar/JumpThreading.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,9 @@ void JumpThreadingPass::threadThroughTwoBasicBlocks(BasicBlock *PredPredBB,
23422342
{DominatorTree::Insert, PredPredBB, NewBB},
23432343
{DominatorTree::Delete, PredPredBB, PredBB}});
23442344

2345+
// Remap source location atoms beacuse we're duplicating control flow.
23452346
remapSourceAtoms(ValueMapping, NewBB->begin(), NewBB->end());
2347+
23462348
updateSSA(PredBB, NewBB, ValueMapping);
23472349

23482350
// Clean up things like PHI nodes with single operands, dead instructions,

0 commit comments

Comments
 (0)