forked from OSchip/llvm-project
[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:
parent
a90f257b35
commit
e16b0cfba9
llvm/lib/Transforms/InstCombine
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue