aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2006-03-12 00:04:28 +0000
committerChris Lattner <sabre@nondot.org>2006-03-12 00:04:28 +0000
commitaaf15825494fce98ac8a54dde36711f9ed5f1418 (patch)
tree8c05b4061851f546cd706195b8e97a4db3bb8873
parent84690316227247b9375a797184ca2cbea55e9f62 (diff)
downloadexternal_llvm-aaf15825494fce98ac8a54dde36711f9ed5f1418.zip
external_llvm-aaf15825494fce98ac8a54dde36711f9ed5f1418.tar.gz
external_llvm-aaf15825494fce98ac8a54dde36711f9ed5f1418.tar.bz2
Mark llvm.stacksave as only reading memory, this fixes
Regression/Transforms/InstCombine/stacksaverestore.ll git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@26715 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r--include/llvm/Intrinsics.td2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td
index dd716a8..aa48332 100644
--- a/include/llvm/Intrinsics.td
+++ b/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]>;