From e16b0cfba9c0b2fe8eebfcddccd2ba2141c72320 Mon Sep 17 00:00:00 2001 From: Sanjay Patel Date: Fri, 16 Feb 2018 16:42:04 +0000 Subject: [InstCombine] remove redundant debug info setting; NFC The IRBuilder sets debuginfo in Insert(), so this was duplicating what already happened. llvm-svn: 325358 --- llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'llvm/lib') 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(NewInst)) - T->setDebugLoc(I.getDebugLoc()); SimpR->setFastMathFlags(I.getFastMathFlags()); return SimpR; } -- cgit v1.2.3