Skip to content

Commit 165dcb8

Browse files
authored
Remove unnecessary intrinsic (#14)
1 parent eb50c96 commit 165dcb8

File tree

2 files changed

+3
-6
lines changed

2 files changed

+3
-6
lines changed

llvm/include/llvm/IR/Intrinsics.td

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1047,7 +1047,6 @@ def int_eh_sjlj_longjmp : Intrinsic<[], [llvm_ptr_ty], [IntrNoReturn]>;
10471047
def int_eh_sjlj_setup_dispatch : Intrinsic<[], []>;
10481048

10491049
def int_eh_ocaml_try : Intrinsic<[llvm_i32_ty], []>;
1050-
def int_eh_ocaml_touch : Intrinsic<[], [llvm_ptr_ty], [IntrHasSideEffects]>;
10511050

10521051
//===---------------- Generic Variable Attribute Intrinsics----------------===//
10531052
//

llvm/lib/CodeGen/SelectionDAG/SelectionDAGBuilder.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6293,14 +6293,12 @@ void SelectionDAGBuilder::visitIntrinsicCall(const CallInst &I,
62936293
// handler to give an idea of how control flow would look like to LLVM.
62946294
// (It would be nice to mark the attribute directly in LLVM, but putting
62956295
// it in the IR manually suffices for now.)
6296+
//
6297+
// It would also be nice to make this follow the OCaml calling conventions
6298+
// directly inside LLVM.
62966299
setValue(&I, DAG.getConstant(0, sdl, MVT::i32));
62976300
return;
62986301
}
6299-
case Intrinsic::eh_ocaml_touch: {
6300-
// A no-op that makes sure its alloca'd pointer argument doesn't get
6301-
// lowered to a temporary and stays on the stack.
6302-
return;
6303-
}
63046302
case Intrinsic::masked_gather:
63056303
visitMaskedGather(I);
63066304
return;

0 commit comments

Comments
 (0)