diff options
author | Nick Lewycky <nicholas@mxc.ca> | 2010-11-30 04:13:41 +0000 |
---|---|---|
committer | Nick Lewycky <nicholas@mxc.ca> | 2010-11-30 04:13:41 +0000 |
commit | 29b6cb40c1329c807ef3007bd5c5901ab42e525a (patch) | |
tree | 1357a9e49eca8063ec67230f7255d02d2b364e2e | |
parent | bb7b23f5b79a7ca2aa62faa1a6078428af597234 (diff) |
Make @llvm.invariant.start not be readonly, so that it has side-effects. This
unbreaks test/Transforms/InstCombine/invariant.ll which was broken by r120382.
This is a fix-forward to do what I think Chris intended.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@120388 91177308-0d34-0410-b5e6-96231b3b80d8
-rw-r--r-- | docs/LangRef.html | 2 | ||||
-rw-r--r-- | include/llvm/Intrinsics.td | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/docs/LangRef.html b/docs/LangRef.html index 1786e657cb..68d65f1a97 100644 --- a/docs/LangRef.html +++ b/docs/LangRef.html @@ -7506,7 +7506,7 @@ LLVM</a>.</p> <h5>Syntax:</h5> <pre> - declare {}* @llvm.invariant.start(i64 <size>, i8* nocapture <ptr>) readonly + declare {}* @llvm.invariant.start(i64 <size>, i8* nocapture <ptr>) </pre> <h5>Overview:</h5> diff --git a/include/llvm/Intrinsics.td b/include/llvm/Intrinsics.td index 347541f71f..addb6df7d4 100644 --- a/include/llvm/Intrinsics.td +++ b/include/llvm/Intrinsics.td @@ -436,7 +436,7 @@ def int_lifetime_end : Intrinsic<[], [IntrReadWriteArgMem, NoCapture<1>]>; def int_invariant_start : Intrinsic<[llvm_descriptor_ty], [llvm_i64_ty, llvm_ptr_ty], - [IntrReadArgMem, NoCapture<1>]>; + [IntrReadWriteArgMem, NoCapture<1>]>; def int_invariant_end : Intrinsic<[], [llvm_descriptor_ty, llvm_i64_ty, llvm_ptr_ty], |