summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/BBVectorize
diff options
context:
space:
mode:
authorRaul E. Silvera <rsilvera@google.com>2014-03-06 00:18:15 +0000
committerRaul E. Silvera <rsilvera@google.com>2014-03-06 00:18:15 +0000
commitb741b945c5372d177e1bfbd78c416cf949cda9db (patch)
treea31a005b161c36423b8d640a215a5c34080a1d66 /llvm/test/Transforms/BBVectorize
parent1de2e14f2f3a0f703298f111146f61fbaec1b752 (diff)
downloadbcm5719-llvm-b741b945c5372d177e1bfbd78c416cf949cda9db.tar.gz
bcm5719-llvm-b741b945c5372d177e1bfbd78c416cf949cda9db.zip
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. llvm-svn: 203037
Diffstat (limited to 'llvm/test/Transforms/BBVectorize')
-rw-r--r--llvm/test/Transforms/BBVectorize/simple-int.ll5
1 files changed, 2 insertions, 3 deletions
diff --git a/llvm/test/Transforms/BBVectorize/simple-int.ll b/llvm/test/Transforms/BBVectorize/simple-int.ll
index e33ac612edc..e90900a93a5 100644
--- a/llvm/test/Transforms/BBVectorize/simple-int.ll
+++ b/llvm/test/Transforms/BBVectorize/simple-int.ll
@@ -126,8 +126,7 @@ define double @test4(double %A1, double %A2, double %B1, double %B2, i32 %P) {
; CHECK: declare <2 x double> @llvm.fma.v2f64(<2 x double>, <2 x double>, <2 x double>) #0
; CHECK: declare <2 x double> @llvm.fmuladd.v2f64(<2 x double>, <2 x double>, <2 x double>) #0
-; CHECK: declare <2 x double> @llvm.cos.v2f64(<2 x double>) #1
-; CHECK: declare <2 x double> @llvm.powi.v2f64(<2 x double>, i32) #1
+; CHECK: declare <2 x double> @llvm.cos.v2f64(<2 x double>) #0
+; CHECK: declare <2 x double> @llvm.powi.v2f64(<2 x double>, i32) #0
; CHECK: attributes #0 = { nounwind readnone }
-; CHECK: attributes #1 = { nounwind readonly }
OpenPOWER on IntegriCloud