From 4b610e1a42770429b19603f5a1592ac0a0676153 Mon Sep 17 00:00:00 2001 From: Chris Lattner Date: Sun, 12 Mar 2006 00:04:28 +0000 Subject: [PATCH] Mark llvm.stacksave as only reading memory, this fixes Regression/Transforms/InstCombine/stacksaverestore.ll llvm-svn: 26715 --- llvm/include/llvm/Intrinsics.td | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llvm/include/llvm/Intrinsics.td b/llvm/include/llvm/Intrinsics.td index dd716a80efe1..aa4833229403 100644 --- a/llvm/include/llvm/Intrinsics.td +++ b/llvm/include/llvm/Intrinsics.td @@ -112,7 +112,7 @@ def int_gcwrite : Intrinsic<[llvm_void_ty, llvm_ptr_ty, llvm_ptrptr_ty], // def int_returnaddress : Intrinsic<[llvm_ptr_ty, llvm_uint_ty], [InstrNoMem]>; def int_frameaddress : Intrinsic<[llvm_ptr_ty, llvm_uint_ty], [InstrNoMem]>; -def int_stacksave : Intrinsic<[llvm_ptr_ty]>; +def int_stacksave : Intrinsic<[llvm_ptr_ty], [IntrReadMem]>; def int_stackrestore : Intrinsic<[llvm_void_ty, llvm_ptr_ty]>; def int_prefetch : Intrinsic<[llvm_void_ty, llvm_ptr_ty, llvm_uint_ty, llvm_uint_ty]>;