brintos

brintos / llvm-project-archived public Read only

0
0
Text · 491 B · 8c0d82e Raw
14 lines · plain
1; RUN: opt -S -dxil-cbuffer-access -mtriple=dxil--shadermodel6.3-library %s | FileCheck %s2; Check that we correctly ignore cbuffers that were nulled out by optimizations.3 4%__cblayout_CB = type <{ float }>5@CB.cb = local_unnamed_addr global target("dx.CBuffer", %__cblayout_CB) poison6@x = external local_unnamed_addr addrspace(2) global float, align 47 8; CHECK-NOT: !hlsl.cbs =9!hlsl.cbs = !{!0, !1, !2}10 11!0 = !{ptr @CB.cb, ptr addrspace(2) @x}12!1 = !{ptr @CB.cb, null}13!2 = !{null, null}14