summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/LoopIdiom/basic.ll
diff options
context:
space:
mode:
authorAhmed Bougacha <ahmed.bougacha@gmail.com>2016-04-27 19:04:50 +0000
committerAhmed Bougacha <ahmed.bougacha@gmail.com>2016-04-27 19:04:50 +0000
commitace97c1f7d46140b19854b63c5e0a537f5c512cd (patch)
tree1cb0ae185378ccab0f04a011a7e7cfbc2f3b73f4 /llvm/test/Transforms/LoopIdiom/basic.ll
parent7f97193dd7001f880d7ae7209ca28fd9a46d32df (diff)
downloadbcm5719-llvm-ace97c1f7d46140b19854b63c5e0a537f5c512cd.tar.gz
bcm5719-llvm-ace97c1f7d46140b19854b63c5e0a537f5c512cd.zip
[LIR] Set attributes on memset_pattern16.
"inferattrs" will deduce the attribute, but it will be too late for many optimizations. Set it ourselves when creating the call. Differential Revision: http://reviews.llvm.org/D17598 llvm-svn: 267762
Diffstat (limited to 'llvm/test/Transforms/LoopIdiom/basic.ll')
-rw-r--r--llvm/test/Transforms/LoopIdiom/basic.ll4
1 files changed, 4 insertions, 0 deletions
diff --git a/llvm/test/Transforms/LoopIdiom/basic.ll b/llvm/test/Transforms/LoopIdiom/basic.ll
index e4a4722c697..4d584de9c6f 100644
--- a/llvm/test/Transforms/LoopIdiom/basic.ll
+++ b/llvm/test/Transforms/LoopIdiom/basic.ll
@@ -564,3 +564,7 @@ for.end6: ; preds = %for.inc4
; CHECK-NEXT: call void @llvm.memset.p0i8.i64(i8* %X, i8 0, i64 10000, i32 1, i1 false)
; CHECK: ret void
}
+
+; Validate that "memset_pattern" has the proper attributes.
+; CHECK: declare void @memset_pattern16(i8* nocapture, i8* nocapture readonly, i64) [[ATTRS:#[0-9]+]]
+; CHECK: [[ATTRS]] = { argmemonly }
OpenPOWER on IntegriCloud