summaryrefslogtreecommitdiffstats
path: root/llvm/lib
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2018-02-16 16:42:04 +0000
committerSanjay Patel <spatel@rotateright.com>2018-02-16 16:42:04 +0000
commite16b0cfba9c0b2fe8eebfcddccd2ba2141c72320 (patch)
tree06e3e30182c45a8acc4c9ff60bfa25ccd4354ba7 /llvm/lib
parenta90f257b358b665b98bf76d8c8a1b8c63888165a (diff)
downloadbcm5719-llvm-e16b0cfba9c0b2fe8eebfcddccd2ba2141c72320.tar.gz
bcm5719-llvm-e16b0cfba9c0b2fe8eebfcddccd2ba2141c72320.zip
[InstCombine] remove redundant debug info setting; NFC
The IRBuilder sets debuginfo in Insert(), so this was duplicating what already happened. llvm-svn: 325358
Diffstat (limited to 'llvm/lib')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
index 9d594381b55..cec63957002 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
@@ -1454,8 +1454,6 @@ Instruction *InstCombiner::visitFDiv(BinaryOperator &I) {
}
if (NewInst) {
- if (Instruction *T = dyn_cast<Instruction>(NewInst))
- T->setDebugLoc(I.getDebugLoc());
SimpR->setFastMathFlags(I.getFastMathFlags());
return SimpR;
}
OpenPOWER on IntegriCloud