; NOTE: Assertions have been autogenerated by utils/update_test_checks.py UTC_ARGS: --function-signature --scrub-attributes ; RUN: opt -S -passes='attributor' -aa-pipeline='basic-aa' -attributor-disable=false -attributor-max-iterations-verify -attributor-max-iterations=4 < %s | FileCheck %s ; PR14710 target datalayout = "e-m:e-i64:64-f80:128-n8:16:32:64-S128" %pair = type { i32, i32 } declare i8* @foo(%pair*) define internal void @bar(%pair* byval %Data) { ; CHECK-LABEL: define {{[^@]+}}@bar ; CHECK-SAME: (%pair* byval [[DATA:%.*]]) ; CHECK-NEXT: [[TMP1:%.*]] = tail call i8* @foo(%pair* [[DATA]]) ; CHECK-NEXT: ret void ; tail call i8* @foo(%pair* %Data) ret void } define void @zed(%pair* byval %Data) { ; CHECK-LABEL: define {{[^@]+}}@zed ; CHECK-SAME: (%pair* nocapture readonly byval [[DATA:%.*]]) ; CHECK-NEXT: call void @bar(%pair* nocapture readonly byval [[DATA]]) ; CHECK-NEXT: ret void ; call void @bar(%pair* byval %Data) ret void }