diff options
author | Paul Robinson <paul.robinson@sony.com> | 2017-11-20 19:07:52 +0000 |
---|---|---|
committer | Paul Robinson <paul.robinson@sony.com> | 2017-11-20 19:07:52 +0000 |
commit | 746edea0ae359b888e272e6209602e9e86575794 (patch) | |
tree | c47de61c14e4c865113845a5a8690548f1e412f0 /llvm/lib/CodeGen/MachineSink.cpp | |
parent | 80f961ab66ff0feebefed89ccbdcc43fbd7a43ed (diff) | |
download | bcm5719-llvm-746edea0ae359b888e272e6209602e9e86575794.tar.gz bcm5719-llvm-746edea0ae359b888e272e6209602e9e86575794.zip |
Revert "Fix out-of-order stepping behavior in programs with sunk instructions."
This reverts commit 30419e150cd940893a13b345e85f96053850208f.
aka r318679. It caused "sanitizer-windows" bot to fail.
llvm-svn: 318684
Diffstat (limited to 'llvm/lib/CodeGen/MachineSink.cpp')
-rw-r--r-- | llvm/lib/CodeGen/MachineSink.cpp | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/llvm/lib/CodeGen/MachineSink.cpp b/llvm/lib/CodeGen/MachineSink.cpp index 262d3db22e5..6f3753e88b8 100644 --- a/llvm/lib/CodeGen/MachineSink.cpp +++ b/llvm/lib/CodeGen/MachineSink.cpp @@ -38,7 +38,6 @@ #include "llvm/CodeGen/TargetSubtargetInfo.h" #include "llvm/IR/BasicBlock.h" #include "llvm/IR/LLVMContext.h" -#include "llvm/IR/DebugInfoMetadata.h" #include "llvm/Pass.h" #include "llvm/Support/BranchProbability.h" #include "llvm/Support/CommandLine.h" @@ -869,16 +868,6 @@ bool MachineSinking::SinkInstruction(MachineInstr &MI, bool &SawStore, SmallVector<MachineInstr *, 2> DbgValuesToSink; collectDebugValues(MI, DbgValuesToSink); - // Merge or erase debug location to ensure consistent stepping in profilers - // and debuggers. - if (!SuccToSinkTo->empty()) { - MI.setDebugLoc(DILocation::getMergedLocation(MI.getDebugLoc(), - InsertPos->getDebugLoc())); - } else { - MI.setDebugLoc(DebugLoc()); - } - - // Move the instruction. SuccToSinkTo->splice(InsertPos, ParentBlock, MI, ++MachineBasicBlock::iterator(MI)); |