diff options
| author | Fangrui Song <maskray@google.com> | 2019-12-26 23:32:53 -0800 |
|---|---|---|
| committer | Fangrui Song <maskray@google.com> | 2019-12-27 00:00:14 -0800 |
| commit | 7a7334663cd44c857e4e573e6f6db9c987817801 (patch) | |
| tree | d01ede00bd6f4aa3f65e6862d5e56612dea9dc78 /llvm/lib/CodeGen | |
| parent | ecbaf152f8fe2b5b8ebc633541e15158984f4db4 (diff) | |
| download | bcm5719-llvm-7a7334663cd44c857e4e573e6f6db9c987817801.tar.gz bcm5719-llvm-7a7334663cd44c857e4e573e6f6db9c987817801.zip | |
Delete llvm.{sig,}{setjmp,longjmp} remnant after r136821
Intrinsic has incorrect argument type!
i32 (i32*)* @llvm.setjmp
*wipes tear*
Diffstat (limited to 'llvm/lib/CodeGen')
| -rw-r--r-- | llvm/lib/CodeGen/IntrinsicLowering.cpp | 28 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp | 6 | ||||
| -rw-r--r-- | llvm/lib/CodeGen/TargetLoweringBase.cpp | 2 |
3 files changed, 0 insertions, 36 deletions
diff --git a/llvm/lib/CodeGen/IntrinsicLowering.cpp b/llvm/lib/CodeGen/IntrinsicLowering.cpp index 8cbd8bcaeab..5f78b9ec92d 100644 --- a/llvm/lib/CodeGen/IntrinsicLowering.cpp +++ b/llvm/lib/CodeGen/IntrinsicLowering.cpp @@ -254,34 +254,6 @@ void IntrinsicLowering::LowerIntrinsicCall(CallInst *CI) { break; } - // The setjmp/longjmp intrinsics should only exist in the code if it was - // never optimized (ie, right out of the CFE), or if it has been hacked on - // by the lowerinvoke pass. In both cases, the right thing to do is to - // convert the call to an explicit setjmp or longjmp call. - case Intrinsic::setjmp: { - Value *V = ReplaceCallWith("setjmp", CI, CS.arg_begin(), CS.arg_end(), - Type::getInt32Ty(Context)); - if (!CI->getType()->isVoidTy()) - CI->replaceAllUsesWith(V); - break; - } - case Intrinsic::sigsetjmp: - if (!CI->getType()->isVoidTy()) - CI->replaceAllUsesWith(Constant::getNullValue(CI->getType())); - break; - - case Intrinsic::longjmp: { - ReplaceCallWith("longjmp", CI, CS.arg_begin(), CS.arg_end(), - Type::getVoidTy(Context)); - break; - } - - case Intrinsic::siglongjmp: { - // Insert the call to abort - ReplaceCallWith("abort", CI, CS.arg_end(), CS.arg_end(), - Type::getVoidTy(Context)); - break; - } case Intrinsic::ctpop: CI->replaceAllUsesWith(LowerCTPOP(Context, CI->getArgOperand(0), CI)); break; diff --git a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp index 429d2551e46..93eccf60a38 100644 --- a/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp +++ b/llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp @@ -5774,12 +5774,6 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I, RegName, getValue(RegValue))); return; } - case Intrinsic::setjmp: - lowerCallToExternalSymbol(I, &"_setjmp"[!TLI.usesUnderscoreSetJmp()]); - return; - case Intrinsic::longjmp: - lowerCallToExternalSymbol(I, &"_longjmp"[!TLI.usesUnderscoreLongJmp()]); - return; case Intrinsic::memcpy: { const auto &MCI = cast<MemCpyInst>(I); SDValue Op1 = getValue(I.getArgOperand(0)); diff --git a/llvm/lib/CodeGen/TargetLoweringBase.cpp b/llvm/lib/CodeGen/TargetLoweringBase.cpp index cc436fcc4f6..5f89f49009b 100644 --- a/llvm/lib/CodeGen/TargetLoweringBase.cpp +++ b/llvm/lib/CodeGen/TargetLoweringBase.cpp @@ -580,8 +580,6 @@ TargetLoweringBase::TargetLoweringBase(const TargetMachine &tm) : TM(tm) { MaxGluedStoresPerMemcpy = 0; MaxStoresPerMemsetOptSize = MaxStoresPerMemcpyOptSize = MaxStoresPerMemmoveOptSize = MaxLoadsPerMemcmpOptSize = 4; - UseUnderscoreSetJmp = false; - UseUnderscoreLongJmp = false; HasMultipleConditionRegisters = false; HasExtractBitsInsn = false; JumpIsExpensive = JumpIsExpensiveOverride; |

