summaryrefslogtreecommitdiffstats
path: root/llvm/test/Transforms/Attributor/ArgumentPromotion/2008-07-02-array-indexing.ll
diff options
context:
space:
mode:
authorJohannes Doerfert <johannes@jdoerfert.de>2019-12-31 00:57:00 -0600
committerJohannes Doerfert <johannes@jdoerfert.de>2019-12-31 01:33:21 -0600
commit28880198718b51a8d590d6e8194f2932683bdd54 (patch)
tree38e901bbdfa9e0a4611fdf6c68236d103bce8228 /llvm/test/Transforms/Attributor/ArgumentPromotion/2008-07-02-array-indexing.ll
parent23a6ae2b0624278646929d5cbed360f79be505ac (diff)
downloadbcm5719-llvm-28880198718b51a8d590d6e8194f2932683bdd54.tar.gz
bcm5719-llvm-28880198718b51a8d590d6e8194f2932683bdd54.zip
[Attributor] Annotate the memory behavior of call site arguments
Especially for callbacks, annotating the call site arguments is important. Doing so exposed a too strong dependence of AAMemoryBehavior on AANoCapture since we handle the case of potentially captured pointers explicitly. The changes to the tests are all mechanical.
Diffstat (limited to 'llvm/test/Transforms/Attributor/ArgumentPromotion/2008-07-02-array-indexing.ll')
-rw-r--r--llvm/test/Transforms/Attributor/ArgumentPromotion/2008-07-02-array-indexing.ll2
1 files changed, 1 insertions, 1 deletions
diff --git a/llvm/test/Transforms/Attributor/ArgumentPromotion/2008-07-02-array-indexing.ll b/llvm/test/Transforms/Attributor/ArgumentPromotion/2008-07-02-array-indexing.ll
index ea35e4b0cb0..bde1ce855de 100644
--- a/llvm/test/Transforms/Attributor/ArgumentPromotion/2008-07-02-array-indexing.ll
+++ b/llvm/test/Transforms/Attributor/ArgumentPromotion/2008-07-02-array-indexing.ll
@@ -34,7 +34,7 @@ F:
define i32 @foo() {
; CHECK-LABEL: define {{[^@]+}}@foo()
-; CHECK-NEXT: [[X:%.*]] = call i32 @callee(i1 false, i32* noalias nofree null)
+; CHECK-NEXT: [[X:%.*]] = call i32 @callee(i1 false, i32* noalias nofree readonly null)
; CHECK-NEXT: ret i32 [[X]]
;
%X = call i32 @callee(i1 false, i32* null) ; <i32> [#uses=1]
OpenPOWER on IntegriCloud