forked from OSchip/llvm-project
Remove redundant calls to getCurDebugLoc in visitIntrinsicCall. It's already called at the start of the function and captured in a local variable.
llvm-svn: 168548
This commit is contained in:
parent
d2638c1894
commit
d374694b07
|
@ -4789,7 +4789,6 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
|||
// the sse2/mmx shift instructions reads 64 bits. Set the upper 32 bits
|
||||
// to be zero.
|
||||
// We must do this early because v2i32 is not a legal type.
|
||||
DebugLoc dl = getCurDebugLoc();
|
||||
SDValue ShOps[2];
|
||||
ShOps[0] = ShAmt;
|
||||
ShOps[1] = DAG.getConstant(0, MVT::i32);
|
||||
|
@ -4806,7 +4805,6 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
|||
case Intrinsic::x86_avx_vinsertf128_ps_256:
|
||||
case Intrinsic::x86_avx_vinsertf128_si_256:
|
||||
case Intrinsic::x86_avx2_vinserti128: {
|
||||
DebugLoc dl = getCurDebugLoc();
|
||||
EVT DestVT = TLI.getValueType(I.getType());
|
||||
EVT ElVT = TLI.getValueType(I.getArgOperand(1)->getType());
|
||||
uint64_t Idx = (cast<ConstantInt>(I.getArgOperand(2))->getZExtValue() & 1) *
|
||||
|
@ -4822,7 +4820,6 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
|||
case Intrinsic::x86_avx_vextractf128_ps_256:
|
||||
case Intrinsic::x86_avx_vextractf128_si_256:
|
||||
case Intrinsic::x86_avx2_vextracti128: {
|
||||
DebugLoc dl = getCurDebugLoc();
|
||||
EVT DestVT = TLI.getValueType(I.getType());
|
||||
uint64_t Idx = (cast<ConstantInt>(I.getArgOperand(1))->getZExtValue() & 1) *
|
||||
DestVT.getVectorNumElements();
|
||||
|
@ -4856,7 +4853,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
|||
}
|
||||
EVT DestVT = TLI.getValueType(I.getType());
|
||||
const Value *Op1 = I.getArgOperand(0);
|
||||
Res = DAG.getConvertRndSat(DestVT, getCurDebugLoc(), getValue(Op1),
|
||||
Res = DAG.getConvertRndSat(DestVT, dl, getValue(Op1),
|
||||
DAG.getValueType(DestVT),
|
||||
DAG.getValueType(getValue(Op1).getValueType()),
|
||||
getValue(I.getArgOperand(1)),
|
||||
|
@ -5022,7 +5019,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
|||
SDValue FIN = DAG.getFrameIndex(FI, PtrTy);
|
||||
|
||||
// Store the stack protector onto the stack.
|
||||
Res = DAG.getStore(getRoot(), getCurDebugLoc(), Src, FIN,
|
||||
Res = DAG.getStore(getRoot(), dl, Src, FIN,
|
||||
MachinePointerInfo::getFixedStack(FI),
|
||||
true, false, 0);
|
||||
setValue(&I, Res);
|
||||
|
@ -5110,7 +5107,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
|||
/*isTailCall=*/false,
|
||||
/*doesNotRet=*/false, /*isReturnValueUsed=*/true,
|
||||
DAG.getExternalSymbol(TrapFuncName.data(), TLI.getPointerTy()),
|
||||
Args, DAG, getCurDebugLoc());
|
||||
Args, DAG, dl);
|
||||
std::pair<SDValue, SDValue> Result = TLI.LowerCallTo(CLI);
|
||||
DAG.setRoot(Result.second);
|
||||
return 0;
|
||||
|
@ -5136,7 +5133,7 @@ SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, unsigned Intrinsic) {
|
|||
SDValue Op2 = getValue(I.getArgOperand(1));
|
||||
|
||||
SDVTList VTs = DAG.getVTList(Op1.getValueType(), MVT::i1);
|
||||
setValue(&I, DAG.getNode(Op, getCurDebugLoc(), VTs, Op1, Op2));
|
||||
setValue(&I, DAG.getNode(Op, dl, VTs, Op1, Op2));
|
||||
return 0;
|
||||
}
|
||||
case Intrinsic::prefetch: {
|
||||
|
|
Loading…
Reference in New Issue