56 lines
1.8 KiB
Plaintext
56 lines
1.8 KiB
Plaintext
bug/tint/1369.wgsl:3:3 warning: code is unreachable
|
|
return true;
|
|
^^^^^^
|
|
|
|
bug/tint/1369.wgsl:9:9 warning: code is unreachable
|
|
var also_unreachable : bool;
|
|
^^^^^^^^^^^^^^^^
|
|
|
|
; SPIR-V
|
|
; Version: 1.3
|
|
; Generator: Google Tint Compiler; 0
|
|
; Bound: 23
|
|
; Schema: 0
|
|
OpCapability Shader
|
|
OpMemoryModel Logical GLSL450
|
|
OpEntryPoint Fragment %f "f"
|
|
OpExecutionMode %f OriginUpperLeft
|
|
OpName %tint_discard "tint_discard"
|
|
OpName %call_discard "call_discard"
|
|
OpName %tint_discard_func "tint_discard_func"
|
|
OpName %f "f"
|
|
OpName %v "v"
|
|
%bool = OpTypeBool
|
|
%false = OpConstantFalse %bool
|
|
%_ptr_Private_bool = OpTypePointer Private %bool
|
|
%tint_discard = OpVariable %_ptr_Private_bool Private %false
|
|
%5 = OpTypeFunction %bool
|
|
%true = OpConstantTrue %bool
|
|
%9 = OpConstantNull %bool
|
|
%void = OpTypeVoid
|
|
%10 = OpTypeFunction %void
|
|
%_ptr_Function_bool = OpTypePointer Function %bool
|
|
%call_discard = OpFunction %bool None %5
|
|
%7 = OpLabel
|
|
OpStore %tint_discard %true
|
|
OpReturnValue %9
|
|
OpFunctionEnd
|
|
%tint_discard_func = OpFunction %void None %10
|
|
%13 = OpLabel
|
|
OpKill
|
|
OpFunctionEnd
|
|
%f = OpFunction %void None %10
|
|
%15 = OpLabel
|
|
%v = OpVariable %_ptr_Function_bool Function %9
|
|
%16 = OpFunctionCall %bool %call_discard
|
|
OpStore %v %16
|
|
%19 = OpLoad %bool %tint_discard
|
|
OpSelectionMerge %20 None
|
|
OpBranchConditional %19 %21 %20
|
|
%21 = OpLabel
|
|
%22 = OpFunctionCall %void %tint_discard_func
|
|
OpReturn
|
|
%20 = OpLabel
|
|
OpReturn
|
|
OpFunctionEnd
|