diff options
author | Philip Reames <listmail@philipreames.com> | 2018-08-29 23:22:07 +0000 |
---|---|---|
committer | Philip Reames <listmail@philipreames.com> | 2018-08-29 23:22:07 +0000 |
commit | 7c57dac95598bd1aaa00b2f0df725d8980e50a38 (patch) | |
tree | e41a698464c6a1a13009bbf1a4b016809bf16e31 /llvm/lib/Transforms/Utils/SimplifyCFG.cpp | |
parent | 7481540fd9b669299b22066916b803e7ea8466dd (diff) | |
download | bcm5719-llvm-7c57dac95598bd1aaa00b2f0df725d8980e50a38.tar.gz bcm5719-llvm-7c57dac95598bd1aaa00b2f0df725d8980e50a38.zip |
[SimplifyCFG] Common debug handling [NFC]
llvm-svn: 340997
Diffstat (limited to 'llvm/lib/Transforms/Utils/SimplifyCFG.cpp')
-rw-r--r-- | llvm/lib/Transforms/Utils/SimplifyCFG.cpp | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp index 0d5a522ace3..355410ad045 100644 --- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp +++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp @@ -2688,8 +2688,6 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI, unsigned BonusInstThreshold) { // all instructions before Cond other than DbgInfoIntrinsic are bonus // instructions. for (auto BonusInst = BB->begin(); Cond != &*BonusInst; ++BonusInst) { - if (isa<DbgInfoIntrinsic>(BonusInst)) - continue; Instruction *NewBonusInst = BonusInst->clone(); RemapInstruction(NewBonusInst, VMap, RF_NoModuleLevelChanges | RF_IgnoreMissingLocals); @@ -2816,12 +2814,6 @@ bool llvm::FoldBranchToCommonDest(BranchInst *BI, unsigned BonusInstThreshold) { // TODO: If BB is reachable from all paths through PredBlock, then we // could replace PBI's branch probabilities with BI's. - - // Copy any debug value intrinsics into the end of PredBlock. - for (Instruction &I : *BB) - if (isa<DbgInfoIntrinsic>(I)) - I.clone()->insertBefore(PBI); - return true; } return false; |