Skip to content
This repository was archived by the owner on Feb 5, 2019. It is now read-only.

Commit 649d287

Browse files
committed
[SimplifyCFG] Common debug handling [NFC]
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@340997 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent 72a8d84 commit 649d287

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

lib/Transforms/Utils/SimplifyCFG.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2688,8 +2688,6 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI, unsigned BonusInstThreshold) {
26882688
// all instructions before Cond other than DbgInfoIntrinsic are bonus
26892689
// instructions.
26902690
for (auto BonusInst = BB->begin(); Cond != &*BonusInst; ++BonusInst) {
2691-
if (isa<DbgInfoIntrinsic>(BonusInst))
2692-
continue;
26932691
Instruction *NewBonusInst = BonusInst->clone();
26942692
RemapInstruction(NewBonusInst, VMap,
26952693
RF_NoModuleLevelChanges | RF_IgnoreMissingLocals);
@@ -2816,12 +2814,6 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI, unsigned BonusInstThreshold) {
28162814

28172815
// TODO: If BB is reachable from all paths through PredBlock, then we
28182816
// could replace PBI's branch probabilities with BI's.
2819-
2820-
// Copy any debug value intrinsics into the end of PredBlock.
2821-
for (Instruction &I : *BB)
2822-
if (isa<DbgInfoIntrinsic>(I))
2823-
I.clone()->insertBefore(PBI);
2824-
28252817
return true;
28262818
}
28272819
return false;

0 commit comments

Comments
 (0)