Details
Details
- Reviewers
spatel kpn cameron.mcinally
Diff Detail
Diff Detail
Event Timeline
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp | ||
---|---|---|
1375 | No, this needed to move into the class for replaceInstUsesWith |
llvm/lib/Transforms/InstCombine/InstCombineMulDivRem.cpp | ||
---|---|---|
1389 | If we're changing this function from static to a member of InstCombinerImpl, then we can use the already instantiated IRBuilder for the class, so it'd be something like: CallInst *CopySign = Builder.CreateIntrinsic(...); Alternatively, we can leave this function static and use the raw creator API: Function *F = Intrinsic::getDeclaration(I.getModule(), Intrinsic::copysign, C->getType()); return CallInst::Create(F, {Infinity, I.getOperand(0)}); |
Is this part of a future change? I'm wondering if it belongs in this patch.