[llvm] r325358 - [InstCombine] remove redundant debug info setting; NFC
Sanjay Patel via llvm-commits
llvm-commits at lists.llvm.org
Fri Feb 16 08:42:04 PST 2018
Author: spatel
Date: Fri Feb 16 08:42:04 2018
New Revision: 325358
URL: http://llvm.org/viewvc/llvm-project?rev=325358&view=rev
Log:
[InstCombine] remove redundant debug info setting; NFC
The IRBuilder sets debuginfo in Insert(), so this was duplicating what already happened.
Modified:
llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
Modified: llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp?rev=325358&r1=325357&r2=325358&view=diff
==============================================================================
--- llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp (original)
+++ llvm/trunk/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp Fri Feb 16 08:42:04 2018
@@ -1454,8 +1454,6 @@ Instruction *InstCombiner::visitFDiv(Bin
}
if (NewInst) {
- if (Instruction *T = dyn_cast<Instruction>(NewInst))
- T->setDebugLoc(I.getDebugLoc());
SimpR->setFastMathFlags(I.getFastMathFlags());
return SimpR;
}
More information about the llvm-commits
mailing list