1 ; RUN: opt -S -passes='require<profile-summary>,function(codegenprepare)' < %s | FileCheck %s
3 target datalayout = "e-i64:64-v16:16-v32:32-n16:32:64"
4 target triple = "nvptx64-nvidia-cuda"
7 define i64 @test(i1 %pred, ptr %ptr) {
9 %ptr_as1 = addrspacecast ptr %ptr to ptr addrspace(1)
10 br i1 %pred, label %l1, label %l2
13 ; CHECK-NOT: addrspacecast
14 %v1 = load i64, ptr %ptr
18 ; CHECK-NOT: addrspacecast
19 %v2 = load i64, ptr addrspace(1) %ptr_as1