2022-01-14 10:16:24 +00:00
|
|
|
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
|
2022-03-28 20:51:32 +00:00
|
|
|
; Bound: 23
|
2022-01-14 10:16:24 +00:00
|
|
|
; Schema: 0
|
|
|
|
OpCapability Shader
|
|
|
|
OpMemoryModel Logical GLSL450
|
|
|
|
OpEntryPoint Fragment %f "f"
|
|
|
|
OpExecutionMode %f OriginUpperLeft
|
2022-03-28 20:51:32 +00:00
|
|
|
OpName %tint_discard "tint_discard"
|
2022-01-14 10:16:24 +00:00
|
|
|
OpName %call_discard "call_discard"
|
2022-03-28 20:51:32 +00:00
|
|
|
OpName %tint_discard_func "tint_discard_func"
|
2022-01-14 10:16:24 +00:00
|
|
|
OpName %f "f"
|
|
|
|
OpName %v "v"
|
|
|
|
%bool = OpTypeBool
|
2022-03-28 20:51:32 +00:00
|
|
|
%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
|
2022-01-14 10:16:24 +00:00
|
|
|
%void = OpTypeVoid
|
2022-03-28 20:51:32 +00:00
|
|
|
%10 = OpTypeFunction %void
|
2022-01-14 10:16:24 +00:00
|
|
|
%_ptr_Function_bool = OpTypePointer Function %bool
|
2022-03-28 20:51:32 +00:00
|
|
|
%call_discard = OpFunction %bool None %5
|
|
|
|
%7 = OpLabel
|
|
|
|
OpStore %tint_discard %true
|
|
|
|
OpReturnValue %9
|
|
|
|
OpFunctionEnd
|
|
|
|
%tint_discard_func = OpFunction %void None %10
|
|
|
|
%13 = OpLabel
|
2022-01-14 10:16:24 +00:00
|
|
|
OpKill
|
|
|
|
OpFunctionEnd
|
2022-03-28 20:51:32 +00:00
|
|
|
%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
|
2022-01-14 10:16:24 +00:00
|
|
|
OpReturn
|
|
|
|
OpFunctionEnd
|