From 28880198718b51a8d590d6e8194f2932683bdd54 Mon Sep 17 00:00:00 2001 From: Johannes Doerfert Date: Tue, 31 Dec 2019 00:57:00 -0600 Subject: [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. --- llvm/test/Transforms/Attributor/ArgumentPromotion/control-flow.ll | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llvm/test/Transforms/Attributor/ArgumentPromotion/control-flow.ll') diff --git a/llvm/test/Transforms/Attributor/ArgumentPromotion/control-flow.ll b/llvm/test/Transforms/Attributor/ArgumentPromotion/control-flow.ll index ba69c588f24..b62907394bf 100644 --- a/llvm/test/Transforms/Attributor/ArgumentPromotion/control-flow.ll +++ b/llvm/test/Transforms/Attributor/ArgumentPromotion/control-flow.ll @@ -26,7 +26,7 @@ F: define i32 @foo() { ; CHECK-LABEL: define {{[^@]+}}@foo() ; CHECK-NEXT: entry: -; CHECK-NEXT: [[X:%.*]] = call i32 @callee(i1 true, i32* noalias nofree undef) +; CHECK-NEXT: [[X:%.*]] = call i32 @callee(i1 true, i32* noalias nofree readnone undef) ; CHECK-NEXT: ret i32 17 ; entry: -- cgit v1.2.3