diff options
| author | Sanjay Patel <spatel@rotateright.com> | 2018-02-16 16:42:04 +0000 |
|---|---|---|
| committer | Sanjay Patel <spatel@rotateright.com> | 2018-02-16 16:42:04 +0000 |
| commit | e16b0cfba9c0b2fe8eebfcddccd2ba2141c72320 (patch) | |
| tree | 06e3e30182c45a8acc4c9ff60bfa25ccd4354ba7 /llvm/lib | |
| parent | a90f257b358b665b98bf76d8c8a1b8c63888165a (diff) | |
| download | bcm5719-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.cpp | 2 |
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; } |

