summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/Utils
diff options
context:
space:
mode:
authorRobert Lougher <rob.lougher@gmail.com>2016-12-15 16:59:13 +0000
committerRobert Lougher <rob.lougher@gmail.com>2016-12-15 16:59:13 +0000
commit6ea759a83eb4b3dabf1d5c310386d1e44069e283 (patch)
tree5b4ca86d73552f67d5863f0a5c8ce582655ce81d /llvm/lib/Transforms/Utils
parentccffe38352fe4042c7fb3bb36ba1e6fea9df9e34 (diff)
downloadbcm5719-llvm-6ea759a83eb4b3dabf1d5c310386d1e44069e283.tar.gz
bcm5719-llvm-6ea759a83eb4b3dabf1d5c310386d1e44069e283.zip
Revert "[SimplifyCFG] In sinkLastInstruction correctly set debugloc of common inst"
Reverting as it is causing buildbot failures (address sanitizer). llvm-svn: 289833
Diffstat (limited to 'llvm/lib/Transforms/Utils')
-rw-r--r--llvm/lib/Transforms/Utils/SimplifyCFG.cpp9
1 files changed, 1 insertions, 8 deletions
diff --git a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
index b5b59062a24..c3e1b868f42 100644
--- a/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
+++ b/llvm/lib/Transforms/Utils/SimplifyCFG.cpp
@@ -1573,19 +1573,12 @@ static bool sinkLastInstruction(ArrayRef<BasicBlock*> Blocks) {
I0->getOperandUse(O).set(NewOperands[O]);
I0->moveBefore(&*BBEnd->getFirstInsertionPt());
- // The debug location for the "common" instruction is the merged locations of
- // all the commoned instructions. We start with the original location of the
- // "common" instruction and iteratively merge each location in the loop below.
- DILocation *Loc = I0->getDebugLoc();
-
- // Update metadata and IR flags, and merge debug locations.
+ // Update metadata and IR flags.
for (auto *I : Insts)
if (I != I0) {
- Loc = DILocation::getMergedLocation(Loc, I->getDebugLoc());
combineMetadataForCSE(I0, I);
I0->andIRFlags(I);
}
- I0->setDebugLoc(Loc);
if (!isa<StoreInst>(I0)) {
// canSinkLastInstruction checked that all instructions were used by
OpenPOWER on IntegriCloud