[InstCombine] remove redundant debug info setting; NFC

The IRBuilder sets debuginfo in Insert(), so this was duplicating what already happened.

llvm-svn: 325358
This commit is contained in:
Sanjay Patel 2018-02-16 16:42:04 +00:00
parent a90f257b35
commit e16b0cfba9
1 changed files with 0 additions and 2 deletions
llvm/lib/Transforms/InstCombine

View File

@ -1454,8 +1454,6 @@ Instruction *InstCombiner::visitFDiv(BinaryOperator &I) {
} }
if (NewInst) { if (NewInst) {
if (Instruction *T = dyn_cast<Instruction>(NewInst))
T->setDebugLoc(I.getDebugLoc());
SimpR->setFastMathFlags(I.getFastMathFlags()); SimpR->setFastMathFlags(I.getFastMathFlags());
return SimpR; return SimpR;
} }