diff options
author | Raul E. Silvera <rsilvera@google.com> | 2014-03-06 00:18:15 +0000 |
---|---|---|
committer | Raul E. Silvera <rsilvera@google.com> | 2014-03-06 00:18:15 +0000 |
commit | 8b6d60f94b348694cb8aa4c78167bbaad352de31 (patch) | |
tree | c07527fc24a2413ac15c0af27db105dec8c36273 /test/Feature | |
parent | 001e676e4b919c553ad196510b9c12f93f4913d9 (diff) | |
download | llvm-8b6d60f94b348694cb8aa4c78167bbaad352de31.tar.gz llvm-8b6d60f94b348694cb8aa4c78167bbaad352de31.tar.bz2 llvm-8b6d60f94b348694cb8aa4c78167bbaad352de31.tar.xz |
Change math intrinsic attributes from readonly to readnone. These
are operations that do not access memory but may be sensitive
to floating-point environment changes. LLVM does not attempt
to model FP environment changes, so this was unnecessarily conservative
and was getting on the way of some optimizations, in particular
SLP vectorization.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@203037 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Feature')
-rw-r--r-- | test/Feature/intrinsics.ll | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/test/Feature/intrinsics.ll b/test/Feature/intrinsics.ll index 28be053714..278cb9564e 100644 --- a/test/Feature/intrinsics.ll +++ b/test/Feature/intrinsics.ll @@ -61,7 +61,7 @@ define void @libm() { ; FIXME: test ALL the intrinsics in this file. ; rdar://11542750 -; CHECK: declare void @llvm.trap() #2 +; CHECK: declare void @llvm.trap() #1 declare void @llvm.trap() define void @trap() { @@ -70,5 +70,4 @@ define void @trap() { } ; CHECK: attributes #0 = { nounwind readnone } -; CHECK: attributes #1 = { nounwind readonly } -; CHECK: attributes #2 = { noreturn nounwind } +; CHECK: attributes #1 = { noreturn nounwind } |