mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-28 17:19:11 +01:00
[spv-out] Cache constant composites (#2257)
This commit is contained in:
1 parent
58105a06e2
commit
60c0fc0284
5 files changed
+561
-549
No files matched your search
+42
-66
@@ -711,36 +711,22 @@ impl<'w> BlockContext<'w> {
|
||||
.get_constant_scalar(crate::ScalarValue::Float(1.0), width);
|
||||
|
||||
if let Some(size) = maybe_size {
|
||||
let value = LocalType::Value {
|
||||
let ty = LocalType::Value {
|
||||
vector_size: Some(size),
|
||||
kind: crate::ScalarKind::Float,
|
||||
width,
|
||||
pointer_space: None,
|
||||
};
|
||||
|
||||
let result_type_id = self.get_type_id(LookupType::Local(value));
|
||||
}
|
||||
.into();
|
||||
|
||||
self.temp_list.clear();
|
||||
self.temp_list.resize(size as _, arg1_id);
|
||||
|
||||
let id = self.gen_id();
|
||||
block.body.push(Instruction::constant_composite(
|
||||
result_type_id,
|
||||
id,
|
||||
&self.temp_list,
|
||||
));
|
||||
arg1_id = id;
|
||||
arg1_id = self.writer.get_constant_composite(ty, &self.temp_list);
|
||||
|
||||
self.temp_list.clear();
|
||||
self.temp_list.resize(size as _, arg2_id);
|
||||
self.temp_list.fill(arg2_id);
|
||||
|
||||
let id = self.gen_id();
|
||||
block.body.push(Instruction::constant_composite(
|
||||
result_type_id,
|
||||
id,
|
||||
&self.temp_list,
|
||||
));
|
||||
arg2_id = id;
|
||||
arg2_id = self.writer.get_constant_composite(ty, &self.temp_list);
|
||||
}
|
||||
|
||||
MathOp::Custom(Instruction::ext_inst(
|
||||
@@ -893,25 +879,22 @@ impl<'w> BlockContext<'w> {
|
||||
|
||||
let (int_type_id, int_id) = match *arg_ty {
|
||||
crate::TypeInner::Vector { size, width, .. } => {
|
||||
let ty = self.get_type_id(LookupType::Local(LocalType::Value {
|
||||
let ty = LocalType::Value {
|
||||
vector_size: Some(size),
|
||||
kind: crate::ScalarKind::Sint,
|
||||
width,
|
||||
pointer_space: None,
|
||||
}));
|
||||
}
|
||||
.into();
|
||||
|
||||
self.temp_list.clear();
|
||||
self.temp_list
|
||||
.resize(size as _, self.writer.get_constant_scalar(int, width));
|
||||
|
||||
let id = self.gen_id();
|
||||
block.body.push(Instruction::constant_composite(
|
||||
ty,
|
||||
id,
|
||||
&self.temp_list,
|
||||
));
|
||||
|
||||
(ty, id)
|
||||
(
|
||||
self.get_type_id(ty),
|
||||
self.writer.get_constant_composite(ty, &self.temp_list),
|
||||
)
|
||||
}
|
||||
crate::TypeInner::Scalar { width, .. } => (
|
||||
self.get_type_id(LookupType::Local(LocalType::Value {
|
||||
@@ -1127,22 +1110,18 @@ impl<'w> BlockContext<'w> {
|
||||
let zero_scalar_id = self.writer.get_constant_scalar(value, src_width);
|
||||
let zero_id = match src_size {
|
||||
Some(size) => {
|
||||
let vector_type_id =
|
||||
self.get_type_id(LookupType::Local(LocalType::Value {
|
||||
vector_size: Some(size),
|
||||
kind: src_kind,
|
||||
width: src_width,
|
||||
pointer_space: None,
|
||||
}));
|
||||
let components = [zero_scalar_id; 4];
|
||||
let ty = LocalType::Value {
|
||||
vector_size: Some(size),
|
||||
kind: src_kind,
|
||||
width: src_width,
|
||||
pointer_space: None,
|
||||
}
|
||||
.into();
|
||||
|
||||
let zero_id = self.gen_id();
|
||||
block.body.push(Instruction::composite_construct(
|
||||
vector_type_id,
|
||||
zero_id,
|
||||
&components[..size as usize],
|
||||
));
|
||||
zero_id
|
||||
self.temp_list.clear();
|
||||
self.temp_list.resize(size as _, zero_scalar_id);
|
||||
|
||||
self.writer.get_constant_composite(ty, &self.temp_list)
|
||||
}
|
||||
None => zero_scalar_id,
|
||||
};
|
||||
@@ -1168,28 +1147,25 @@ impl<'w> BlockContext<'w> {
|
||||
let scalar1_id = self.writer.get_constant_scalar(val1, dst_width);
|
||||
let (accept_id, reject_id) = match src_size {
|
||||
Some(size) => {
|
||||
let vector_type_id =
|
||||
self.get_type_id(LookupType::Local(LocalType::Value {
|
||||
vector_size: Some(size),
|
||||
kind,
|
||||
width: dst_width,
|
||||
pointer_space: None,
|
||||
}));
|
||||
let components0 = [scalar0_id; 4];
|
||||
let components1 = [scalar1_id; 4];
|
||||
let ty = LocalType::Value {
|
||||
vector_size: Some(size),
|
||||
kind,
|
||||
width: dst_width,
|
||||
pointer_space: None,
|
||||
}
|
||||
.into();
|
||||
|
||||
self.temp_list.clear();
|
||||
self.temp_list.resize(size as _, scalar0_id);
|
||||
|
||||
let vec0_id =
|
||||
self.writer.get_constant_composite(ty, &self.temp_list);
|
||||
|
||||
self.temp_list.fill(scalar1_id);
|
||||
|
||||
let vec1_id =
|
||||
self.writer.get_constant_composite(ty, &self.temp_list);
|
||||
|
||||
let vec0_id = self.gen_id();
|
||||
block.body.push(Instruction::composite_construct(
|
||||
vector_type_id,
|
||||
vec0_id,
|
||||
&components0[..size as usize],
|
||||
));
|
||||
let vec1_id = self.gen_id();
|
||||
block.body.push(Instruction::composite_construct(
|
||||
vector_type_id,
|
||||
vec1_id,
|
||||
&components1[..size as usize],
|
||||
));
|
||||
(vec1_id, vec0_id)
|
||||
}
|
||||
None => (scalar1_id, scalar0_id),
|
||||
|
||||
+13
-1
@@ -439,6 +439,18 @@ impl recyclable::Recyclable for CachedExpressions {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Eq, Hash, PartialEq)]
|
||||
enum CachedConstant {
|
||||
Scalar {
|
||||
value: crate::ScalarValue,
|
||||
width: crate::Bytes,
|
||||
},
|
||||
Composite {
|
||||
ty: LookupType,
|
||||
constituent_ids: Vec<Word>,
|
||||
},
|
||||
}
|
||||
|
||||
#[derive(Clone)]
|
||||
struct GlobalVariable {
|
||||
/// ID of the OpVariable that declares the global.
|
||||
@@ -589,7 +601,7 @@ pub struct Writer {
|
||||
lookup_function: crate::FastHashMap<Handle<crate::Function>, Word>,
|
||||
lookup_function_type: crate::FastHashMap<LookupFunctionType, Word>,
|
||||
constant_ids: Vec<Word>,
|
||||
cached_constants: crate::FastHashMap<(crate::ScalarValue, crate::Bytes), Word>,
|
||||
cached_constants: crate::FastHashMap<CachedConstant, Word>,
|
||||
global_variables: Vec<GlobalVariable>,
|
||||
binding_map: BindingMap,
|
||||
|
||||
|
||||
+49
-23
@@ -1,7 +1,7 @@
|
||||
use super::{
|
||||
helpers::{contains_builtin, global_needs_wrapper, map_storage_class},
|
||||
make_local, Block, BlockContext, CachedExpressions, EntryPointContext, Error, Function,
|
||||
FunctionArgument, GlobalVariable, IdGenerator, Instruction, LocalType, LocalVariable,
|
||||
make_local, Block, BlockContext, CachedConstant, CachedExpressions, EntryPointContext, Error,
|
||||
Function, FunctionArgument, GlobalVariable, IdGenerator, Instruction, LocalType, LocalVariable,
|
||||
LogicalLayout, LookupFunctionType, LookupType, LoopContext, Options, PhysicalLayout,
|
||||
PipelineOptions, ResultMember, Writer, WriterFlags, BITS_PER_BYTE,
|
||||
};
|
||||
@@ -1101,12 +1101,13 @@ impl Writer {
|
||||
value: crate::ScalarValue,
|
||||
width: crate::Bytes,
|
||||
) -> Word {
|
||||
if let Some(&id) = self.cached_constants.get(&(value, width)) {
|
||||
let scalar = CachedConstant::Scalar { value, width };
|
||||
if let Some(&id) = self.cached_constants.get(&scalar) {
|
||||
return id;
|
||||
}
|
||||
let id = self.id_gen.next();
|
||||
self.write_constant_scalar(id, &value, width, None);
|
||||
self.cached_constants.insert((value, width), id);
|
||||
self.cached_constants.insert(scalar, id);
|
||||
id
|
||||
}
|
||||
|
||||
@@ -1180,22 +1181,39 @@ impl Writer {
|
||||
instruction.to_words(&mut self.logical_layout.declarations);
|
||||
}
|
||||
|
||||
pub(super) fn get_constant_composite(
|
||||
&mut self,
|
||||
ty: LookupType,
|
||||
constituent_ids: &[Word],
|
||||
) -> Word {
|
||||
let composite = CachedConstant::Composite {
|
||||
ty,
|
||||
constituent_ids: constituent_ids.to_vec(),
|
||||
};
|
||||
if let Some(&id) = self.cached_constants.get(&composite) {
|
||||
return id;
|
||||
}
|
||||
let id = self.id_gen.next();
|
||||
self.write_constant_composite(id, ty, constituent_ids, None);
|
||||
self.cached_constants.insert(composite, id);
|
||||
id
|
||||
}
|
||||
|
||||
fn write_constant_composite(
|
||||
&mut self,
|
||||
id: Word,
|
||||
ty: Handle<crate::Type>,
|
||||
components: &[Handle<crate::Constant>],
|
||||
) -> Result<(), Error> {
|
||||
let mut constituent_ids = Vec::with_capacity(components.len());
|
||||
for constituent in components.iter() {
|
||||
let constituent_id = self.constant_ids[constituent.index()];
|
||||
constituent_ids.push(constituent_id);
|
||||
ty: LookupType,
|
||||
constituent_ids: &[Word],
|
||||
debug_name: Option<&String>,
|
||||
) {
|
||||
if self.flags.contains(WriterFlags::DEBUG) {
|
||||
if let Some(name) = debug_name {
|
||||
self.debugs.push(Instruction::name(id, name));
|
||||
}
|
||||
}
|
||||
|
||||
let type_id = self.get_type_id(LookupType::Handle(ty));
|
||||
Instruction::constant_composite(type_id, id, constituent_ids.as_slice())
|
||||
let type_id = self.get_type_id(ty);
|
||||
Instruction::constant_composite(type_id, id, constituent_ids)
|
||||
.to_words(&mut self.logical_layout.declarations);
|
||||
Ok(())
|
||||
}
|
||||
|
||||
pub(super) fn write_constant_null(&mut self, type_id: Word) -> Word {
|
||||
@@ -1776,19 +1794,27 @@ impl Writer {
|
||||
self.write_type_declaration_arena(&ir_module.types, handle)?;
|
||||
}
|
||||
|
||||
// the all the composite constants, they rely on types
|
||||
// then all the composite constants, they rely on types
|
||||
for (handle, constant) in ir_module.constants.iter() {
|
||||
match constant.inner {
|
||||
crate::ConstantInner::Scalar { .. } => continue,
|
||||
crate::ConstantInner::Composite { ty, ref components } => {
|
||||
let id = self.id_gen.next();
|
||||
self.constant_ids[handle.index()] = id;
|
||||
if self.flags.contains(WriterFlags::DEBUG) {
|
||||
if let Some(ref name) = constant.name {
|
||||
self.debugs.push(Instruction::name(id, name));
|
||||
}
|
||||
let ty = LookupType::Handle(ty);
|
||||
|
||||
let mut constituent_ids = Vec::with_capacity(components.len());
|
||||
for constituent in components.iter() {
|
||||
let constituent_id = self.constant_ids[constituent.index()];
|
||||
constituent_ids.push(constituent_id);
|
||||
}
|
||||
self.write_constant_composite(id, ty, components)?;
|
||||
|
||||
self.constant_ids[handle.index()] = match constant.name {
|
||||
Some(ref name) => {
|
||||
let id = self.id_gen.next();
|
||||
self.write_constant_composite(id, ty, &constituent_ids, Some(name));
|
||||
id
|
||||
}
|
||||
None => self.get_constant_composite(ty, &constituent_ids),
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
; SPIR-V
|
||||
; Version: 1.1
|
||||
; Generator: rspirv
|
||||
; Bound: 55
|
||||
; Bound: 54
|
||||
OpCapability Shader
|
||||
%1 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
@@ -20,13 +20,12 @@ OpEntryPoint Vertex %16 "main"
|
||||
%13 = OpTypeVector %7 2
|
||||
%14 = OpConstantComposite %13 %6 %6
|
||||
%17 = OpTypeFunction %2
|
||||
%40 = OpConstant %7 31
|
||||
%49 = OpTypeVector %9 2
|
||||
%25 = OpConstantComposite %12 %5 %5 %5 %5
|
||||
%26 = OpConstantComposite %12 %3 %3 %3 %3
|
||||
%29 = OpConstantNull %7
|
||||
%40 = OpConstant %7 31
|
||||
%47 = OpConstantComposite %13 %40 %40
|
||||
%52 = OpConstantComposite %13 %40 %40
|
||||
%49 = OpTypeVector %9 2
|
||||
%29 = OpConstantNull %7
|
||||
%16 = OpFunction %2 None %17
|
||||
%15 = OpLabel
|
||||
OpBranch %18
|
||||
@@ -58,7 +57,7 @@ OpBranch %18
|
||||
%48 = OpISub %13 %47 %46
|
||||
%50 = OpCompositeConstruct %49 %11 %11
|
||||
%51 = OpExtInst %13 %1 FindUMsb %50
|
||||
%53 = OpISub %13 %52 %51
|
||||
%54 = OpBitcast %49 %53
|
||||
%52 = OpISub %13 %47 %51
|
||||
%53 = OpBitcast %49 %52
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
+451
-452
@@ -1,12 +1,12 @@
|
||||
; SPIR-V
|
||||
; Version: 1.1
|
||||
; Generator: rspirv
|
||||
; Bound: 574
|
||||
; Bound: 573
|
||||
OpCapability Shader
|
||||
%1 = OpExtInstImport "GLSL.std.450"
|
||||
OpMemoryModel Logical GLSL450
|
||||
OpEntryPoint GLCompute %562 "main"
|
||||
OpExecutionMode %562 LocalSize 1 1 1
|
||||
OpEntryPoint GLCompute %561 "main"
|
||||
OpExecutionMode %561 LocalSize 1 1 1
|
||||
OpMemberDecorate %40 0 Offset 0
|
||||
OpMemberDecorate %40 1 Offset 16
|
||||
OpDecorate %44 ArrayStride 32
|
||||
@@ -81,20 +81,22 @@ OpDecorate %45 ArrayStride 4
|
||||
%110 = OpConstantNull %37
|
||||
%113 = OpTypeFunction %37
|
||||
%129 = OpTypeFunction %38 %38
|
||||
%137 = OpTypePointer Function %40
|
||||
%138 = OpConstantNull %40
|
||||
%141 = OpTypeFunction %4
|
||||
%166 = OpTypePointer Function %34
|
||||
%167 = OpTypePointer Function %4
|
||||
%172 = OpTypeFunction %2
|
||||
%175 = OpTypeVector %10 2
|
||||
%191 = OpTypeVector %8 2
|
||||
%202 = OpTypeVector %20 3
|
||||
%497 = OpTypePointer Function %8
|
||||
%498 = OpConstantNull %8
|
||||
%500 = OpTypePointer Function %50
|
||||
%501 = OpConstantNull %50
|
||||
%531 = OpTypePointer Function %8
|
||||
%131 = OpConstantComposite %38 %5 %5 %5
|
||||
%133 = OpConstantComposite %38 %3 %3 %3
|
||||
%136 = OpTypePointer Function %40
|
||||
%137 = OpConstantNull %40
|
||||
%140 = OpTypeFunction %4
|
||||
%165 = OpTypePointer Function %34
|
||||
%166 = OpTypePointer Function %4
|
||||
%171 = OpTypeFunction %2
|
||||
%174 = OpTypeVector %10 2
|
||||
%190 = OpTypeVector %8 2
|
||||
%201 = OpTypeVector %20 3
|
||||
%496 = OpTypePointer Function %8
|
||||
%497 = OpConstantNull %8
|
||||
%499 = OpTypePointer Function %50
|
||||
%500 = OpConstantNull %50
|
||||
%530 = OpTypePointer Function %8
|
||||
%68 = OpFunction %34 None %69
|
||||
%67 = OpLabel
|
||||
OpBranch %70
|
||||
@@ -168,469 +170,466 @@ OpFunctionEnd
|
||||
%126 = OpLabel
|
||||
OpBranch %130
|
||||
%130 = OpLabel
|
||||
%131 = OpCompositeConstruct %38 %5 %5 %5
|
||||
%132 = OpFUnordNotEqual %39 %127 %131
|
||||
%133 = OpCompositeConstruct %38 %5 %5 %5
|
||||
%134 = OpCompositeConstruct %38 %3 %3 %3
|
||||
%135 = OpSelect %38 %132 %134 %133
|
||||
OpReturnValue %135
|
||||
%134 = OpSelect %38 %132 %133 %131
|
||||
OpReturnValue %134
|
||||
OpFunctionEnd
|
||||
%140 = OpFunction %4 None %141
|
||||
%139 = OpLabel
|
||||
%136 = OpVariable %137 Function %138
|
||||
OpBranch %142
|
||||
%142 = OpLabel
|
||||
%143 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%144 = OpCompositeConstruct %40 %143 %7
|
||||
OpStore %136 %144
|
||||
%145 = OpCompositeConstruct %37 %3 %5
|
||||
%146 = OpCompositeConstruct %37 %5 %3
|
||||
%147 = OpCompositeConstruct %41 %145 %146
|
||||
%148 = OpCompositeConstruct %34 %3 %5 %5 %5
|
||||
%149 = OpCompositeConstruct %34 %5 %3 %5 %5
|
||||
%150 = OpCompositeConstruct %34 %5 %5 %3 %5
|
||||
%151 = OpCompositeConstruct %34 %5 %5 %5 %3
|
||||
%152 = OpCompositeConstruct %42 %148 %149 %150 %151
|
||||
%153 = OpCompositeConstruct %43 %19 %19
|
||||
%139 = OpFunction %4 None %140
|
||||
%138 = OpLabel
|
||||
%135 = OpVariable %136 Function %137
|
||||
OpBranch %141
|
||||
%141 = OpLabel
|
||||
%142 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%143 = OpCompositeConstruct %40 %142 %7
|
||||
OpStore %135 %143
|
||||
%144 = OpCompositeConstruct %37 %3 %5
|
||||
%145 = OpCompositeConstruct %37 %5 %3
|
||||
%146 = OpCompositeConstruct %41 %144 %145
|
||||
%147 = OpCompositeConstruct %34 %3 %5 %5 %5
|
||||
%148 = OpCompositeConstruct %34 %5 %3 %5 %5
|
||||
%149 = OpCompositeConstruct %34 %5 %5 %3 %5
|
||||
%150 = OpCompositeConstruct %34 %5 %5 %5 %3
|
||||
%151 = OpCompositeConstruct %42 %147 %148 %149 %150
|
||||
%152 = OpCompositeConstruct %43 %19 %19
|
||||
%153 = OpCompositeConstruct %37 %5 %5
|
||||
%154 = OpCompositeConstruct %37 %5 %5
|
||||
%155 = OpCompositeConstruct %37 %5 %5
|
||||
%156 = OpCompositeConstruct %41 %154 %155
|
||||
%157 = OpCompositeConstruct %45 %11 %7 %18 %21
|
||||
%163 = OpCopyObject %46 %62
|
||||
%165 = OpCopyObject %46 %62
|
||||
%168 = OpAccessChain %167 %136 %19 %19
|
||||
%169 = OpLoad %4 %168
|
||||
OpReturnValue %169
|
||||
%155 = OpCompositeConstruct %41 %153 %154
|
||||
%156 = OpCompositeConstruct %45 %11 %7 %18 %21
|
||||
%162 = OpCopyObject %46 %62
|
||||
%164 = OpCopyObject %46 %62
|
||||
%167 = OpAccessChain %166 %135 %19 %19
|
||||
%168 = OpLoad %4 %167
|
||||
OpReturnValue %168
|
||||
OpFunctionEnd
|
||||
%171 = OpFunction %2 None %172
|
||||
%170 = OpLabel
|
||||
OpBranch %173
|
||||
%173 = OpLabel
|
||||
%174 = OpLogicalNot %10 %9
|
||||
%176 = OpCompositeConstruct %175 %9 %9
|
||||
%177 = OpLogicalNot %175 %176
|
||||
%178 = OpLogicalOr %10 %9 %12
|
||||
%179 = OpLogicalAnd %10 %9 %12
|
||||
%180 = OpLogicalOr %10 %9 %12
|
||||
%181 = OpCompositeConstruct %39 %9 %9 %9
|
||||
%182 = OpCompositeConstruct %39 %12 %12 %12
|
||||
%183 = OpLogicalOr %39 %181 %182
|
||||
%184 = OpLogicalAnd %10 %9 %12
|
||||
%185 = OpCompositeConstruct %36 %9 %9 %9 %9
|
||||
%186 = OpCompositeConstruct %36 %12 %12 %12 %12
|
||||
%187 = OpLogicalAnd %36 %185 %186
|
||||
%170 = OpFunction %2 None %171
|
||||
%169 = OpLabel
|
||||
OpBranch %172
|
||||
%172 = OpLabel
|
||||
%173 = OpLogicalNot %10 %9
|
||||
%175 = OpCompositeConstruct %174 %9 %9
|
||||
%176 = OpLogicalNot %174 %175
|
||||
%177 = OpLogicalOr %10 %9 %12
|
||||
%178 = OpLogicalAnd %10 %9 %12
|
||||
%179 = OpLogicalOr %10 %9 %12
|
||||
%180 = OpCompositeConstruct %39 %9 %9 %9
|
||||
%181 = OpCompositeConstruct %39 %12 %12 %12
|
||||
%182 = OpLogicalOr %39 %180 %181
|
||||
%183 = OpLogicalAnd %10 %9 %12
|
||||
%184 = OpCompositeConstruct %36 %9 %9 %9 %9
|
||||
%185 = OpCompositeConstruct %36 %12 %12 %12 %12
|
||||
%186 = OpLogicalAnd %36 %184 %185
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%189 = OpFunction %2 None %172
|
||||
%188 = OpLabel
|
||||
OpBranch %190
|
||||
%190 = OpLabel
|
||||
%192 = OpCompositeConstruct %191 %7 %7
|
||||
%193 = OpSNegate %191 %192
|
||||
%194 = OpCompositeConstruct %37 %3 %3
|
||||
%195 = OpFNegate %37 %194
|
||||
%196 = OpIAdd %8 %18 %7
|
||||
%197 = OpIAdd %20 %24 %25
|
||||
%198 = OpFAdd %4 %14 %3
|
||||
%199 = OpCompositeConstruct %191 %18 %18
|
||||
%200 = OpCompositeConstruct %191 %7 %7
|
||||
%201 = OpIAdd %191 %199 %200
|
||||
%203 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%204 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%205 = OpIAdd %202 %203 %204
|
||||
%206 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%207 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%208 = OpFAdd %34 %206 %207
|
||||
%209 = OpISub %8 %18 %7
|
||||
%210 = OpISub %20 %24 %25
|
||||
%211 = OpFSub %4 %14 %3
|
||||
%212 = OpCompositeConstruct %191 %18 %18
|
||||
%213 = OpCompositeConstruct %191 %7 %7
|
||||
%214 = OpISub %191 %212 %213
|
||||
%215 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%216 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%217 = OpISub %202 %215 %216
|
||||
%218 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%219 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%220 = OpFSub %34 %218 %219
|
||||
%221 = OpIMul %8 %18 %7
|
||||
%222 = OpIMul %20 %24 %25
|
||||
%223 = OpFMul %4 %14 %3
|
||||
%224 = OpCompositeConstruct %191 %18 %18
|
||||
%225 = OpCompositeConstruct %191 %7 %7
|
||||
%226 = OpIMul %191 %224 %225
|
||||
%227 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%228 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%229 = OpIMul %202 %227 %228
|
||||
%230 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%231 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%232 = OpFMul %34 %230 %231
|
||||
%233 = OpSDiv %8 %18 %7
|
||||
%234 = OpUDiv %20 %24 %25
|
||||
%235 = OpFDiv %4 %14 %3
|
||||
%236 = OpCompositeConstruct %191 %18 %18
|
||||
%237 = OpCompositeConstruct %191 %7 %7
|
||||
%238 = OpSDiv %191 %236 %237
|
||||
%239 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%240 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%241 = OpUDiv %202 %239 %240
|
||||
%242 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%243 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%244 = OpFDiv %34 %242 %243
|
||||
%245 = OpSRem %8 %18 %7
|
||||
%246 = OpUMod %20 %24 %25
|
||||
%247 = OpFRem %4 %14 %3
|
||||
%248 = OpCompositeConstruct %191 %18 %18
|
||||
%249 = OpCompositeConstruct %191 %7 %7
|
||||
%250 = OpSRem %191 %248 %249
|
||||
%251 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%252 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%253 = OpUMod %202 %251 %252
|
||||
%254 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%255 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%256 = OpFRem %34 %254 %255
|
||||
%257 = OpCompositeConstruct %191 %18 %18
|
||||
%258 = OpCompositeConstruct %191 %7 %7
|
||||
%259 = OpIAdd %191 %257 %258
|
||||
%260 = OpCompositeConstruct %191 %7 %7
|
||||
%261 = OpCompositeConstruct %191 %18 %18
|
||||
%262 = OpIAdd %191 %261 %260
|
||||
%263 = OpCompositeConstruct %43 %24 %24
|
||||
%264 = OpCompositeConstruct %43 %25 %25
|
||||
%265 = OpIAdd %43 %263 %264
|
||||
%266 = OpCompositeConstruct %43 %25 %25
|
||||
%267 = OpCompositeConstruct %43 %24 %24
|
||||
%268 = OpIAdd %43 %267 %266
|
||||
%269 = OpCompositeConstruct %37 %14 %14
|
||||
%270 = OpCompositeConstruct %37 %3 %3
|
||||
%271 = OpFAdd %37 %269 %270
|
||||
%272 = OpCompositeConstruct %37 %3 %3
|
||||
%273 = OpCompositeConstruct %37 %14 %14
|
||||
%274 = OpFAdd %37 %273 %272
|
||||
%275 = OpCompositeConstruct %191 %18 %18
|
||||
%276 = OpCompositeConstruct %191 %7 %7
|
||||
%277 = OpISub %191 %275 %276
|
||||
%278 = OpCompositeConstruct %191 %7 %7
|
||||
%279 = OpCompositeConstruct %191 %18 %18
|
||||
%280 = OpISub %191 %279 %278
|
||||
%281 = OpCompositeConstruct %43 %24 %24
|
||||
%282 = OpCompositeConstruct %43 %25 %25
|
||||
%283 = OpISub %43 %281 %282
|
||||
%284 = OpCompositeConstruct %43 %25 %25
|
||||
%285 = OpCompositeConstruct %43 %24 %24
|
||||
%286 = OpISub %43 %285 %284
|
||||
%287 = OpCompositeConstruct %37 %14 %14
|
||||
%288 = OpCompositeConstruct %37 %3 %3
|
||||
%289 = OpFSub %37 %287 %288
|
||||
%290 = OpCompositeConstruct %37 %3 %3
|
||||
%291 = OpCompositeConstruct %37 %14 %14
|
||||
%292 = OpFSub %37 %291 %290
|
||||
%293 = OpCompositeConstruct %191 %18 %18
|
||||
%295 = OpCompositeConstruct %191 %7 %7
|
||||
%294 = OpIMul %191 %293 %295
|
||||
%296 = OpCompositeConstruct %191 %7 %7
|
||||
%298 = OpCompositeConstruct %191 %18 %18
|
||||
%297 = OpIMul %191 %296 %298
|
||||
%299 = OpCompositeConstruct %43 %24 %24
|
||||
%188 = OpFunction %2 None %171
|
||||
%187 = OpLabel
|
||||
OpBranch %189
|
||||
%189 = OpLabel
|
||||
%191 = OpCompositeConstruct %190 %7 %7
|
||||
%192 = OpSNegate %190 %191
|
||||
%193 = OpCompositeConstruct %37 %3 %3
|
||||
%194 = OpFNegate %37 %193
|
||||
%195 = OpIAdd %8 %18 %7
|
||||
%196 = OpIAdd %20 %24 %25
|
||||
%197 = OpFAdd %4 %14 %3
|
||||
%198 = OpCompositeConstruct %190 %18 %18
|
||||
%199 = OpCompositeConstruct %190 %7 %7
|
||||
%200 = OpIAdd %190 %198 %199
|
||||
%202 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%203 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%204 = OpIAdd %201 %202 %203
|
||||
%205 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%206 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%207 = OpFAdd %34 %205 %206
|
||||
%208 = OpISub %8 %18 %7
|
||||
%209 = OpISub %20 %24 %25
|
||||
%210 = OpFSub %4 %14 %3
|
||||
%211 = OpCompositeConstruct %190 %18 %18
|
||||
%212 = OpCompositeConstruct %190 %7 %7
|
||||
%213 = OpISub %190 %211 %212
|
||||
%214 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%215 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%216 = OpISub %201 %214 %215
|
||||
%217 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%218 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%219 = OpFSub %34 %217 %218
|
||||
%220 = OpIMul %8 %18 %7
|
||||
%221 = OpIMul %20 %24 %25
|
||||
%222 = OpFMul %4 %14 %3
|
||||
%223 = OpCompositeConstruct %190 %18 %18
|
||||
%224 = OpCompositeConstruct %190 %7 %7
|
||||
%225 = OpIMul %190 %223 %224
|
||||
%226 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%227 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%228 = OpIMul %201 %226 %227
|
||||
%229 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%230 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%231 = OpFMul %34 %229 %230
|
||||
%232 = OpSDiv %8 %18 %7
|
||||
%233 = OpUDiv %20 %24 %25
|
||||
%234 = OpFDiv %4 %14 %3
|
||||
%235 = OpCompositeConstruct %190 %18 %18
|
||||
%236 = OpCompositeConstruct %190 %7 %7
|
||||
%237 = OpSDiv %190 %235 %236
|
||||
%238 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%239 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%240 = OpUDiv %201 %238 %239
|
||||
%241 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%242 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%243 = OpFDiv %34 %241 %242
|
||||
%244 = OpSRem %8 %18 %7
|
||||
%245 = OpUMod %20 %24 %25
|
||||
%246 = OpFRem %4 %14 %3
|
||||
%247 = OpCompositeConstruct %190 %18 %18
|
||||
%248 = OpCompositeConstruct %190 %7 %7
|
||||
%249 = OpSRem %190 %247 %248
|
||||
%250 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%251 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%252 = OpUMod %201 %250 %251
|
||||
%253 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%254 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%255 = OpFRem %34 %253 %254
|
||||
%256 = OpCompositeConstruct %190 %18 %18
|
||||
%257 = OpCompositeConstruct %190 %7 %7
|
||||
%258 = OpIAdd %190 %256 %257
|
||||
%259 = OpCompositeConstruct %190 %7 %7
|
||||
%260 = OpCompositeConstruct %190 %18 %18
|
||||
%261 = OpIAdd %190 %260 %259
|
||||
%262 = OpCompositeConstruct %43 %24 %24
|
||||
%263 = OpCompositeConstruct %43 %25 %25
|
||||
%264 = OpIAdd %43 %262 %263
|
||||
%265 = OpCompositeConstruct %43 %25 %25
|
||||
%266 = OpCompositeConstruct %43 %24 %24
|
||||
%267 = OpIAdd %43 %266 %265
|
||||
%268 = OpCompositeConstruct %37 %14 %14
|
||||
%269 = OpCompositeConstruct %37 %3 %3
|
||||
%270 = OpFAdd %37 %268 %269
|
||||
%271 = OpCompositeConstruct %37 %3 %3
|
||||
%272 = OpCompositeConstruct %37 %14 %14
|
||||
%273 = OpFAdd %37 %272 %271
|
||||
%274 = OpCompositeConstruct %190 %18 %18
|
||||
%275 = OpCompositeConstruct %190 %7 %7
|
||||
%276 = OpISub %190 %274 %275
|
||||
%277 = OpCompositeConstruct %190 %7 %7
|
||||
%278 = OpCompositeConstruct %190 %18 %18
|
||||
%279 = OpISub %190 %278 %277
|
||||
%280 = OpCompositeConstruct %43 %24 %24
|
||||
%281 = OpCompositeConstruct %43 %25 %25
|
||||
%282 = OpISub %43 %280 %281
|
||||
%283 = OpCompositeConstruct %43 %25 %25
|
||||
%284 = OpCompositeConstruct %43 %24 %24
|
||||
%285 = OpISub %43 %284 %283
|
||||
%286 = OpCompositeConstruct %37 %14 %14
|
||||
%287 = OpCompositeConstruct %37 %3 %3
|
||||
%288 = OpFSub %37 %286 %287
|
||||
%289 = OpCompositeConstruct %37 %3 %3
|
||||
%290 = OpCompositeConstruct %37 %14 %14
|
||||
%291 = OpFSub %37 %290 %289
|
||||
%292 = OpCompositeConstruct %190 %18 %18
|
||||
%294 = OpCompositeConstruct %190 %7 %7
|
||||
%293 = OpIMul %190 %292 %294
|
||||
%295 = OpCompositeConstruct %190 %7 %7
|
||||
%297 = OpCompositeConstruct %190 %18 %18
|
||||
%296 = OpIMul %190 %295 %297
|
||||
%298 = OpCompositeConstruct %43 %24 %24
|
||||
%300 = OpCompositeConstruct %43 %25 %25
|
||||
%299 = OpIMul %43 %298 %300
|
||||
%301 = OpCompositeConstruct %43 %25 %25
|
||||
%300 = OpIMul %43 %299 %301
|
||||
%302 = OpCompositeConstruct %43 %25 %25
|
||||
%304 = OpCompositeConstruct %43 %24 %24
|
||||
%303 = OpIMul %43 %302 %304
|
||||
%305 = OpCompositeConstruct %37 %14 %14
|
||||
%306 = OpVectorTimesScalar %37 %305 %3
|
||||
%307 = OpCompositeConstruct %37 %3 %3
|
||||
%308 = OpVectorTimesScalar %37 %307 %14
|
||||
%309 = OpCompositeConstruct %191 %18 %18
|
||||
%310 = OpCompositeConstruct %191 %7 %7
|
||||
%311 = OpSDiv %191 %309 %310
|
||||
%312 = OpCompositeConstruct %191 %7 %7
|
||||
%313 = OpCompositeConstruct %191 %18 %18
|
||||
%314 = OpSDiv %191 %313 %312
|
||||
%315 = OpCompositeConstruct %43 %24 %24
|
||||
%316 = OpCompositeConstruct %43 %25 %25
|
||||
%317 = OpUDiv %43 %315 %316
|
||||
%318 = OpCompositeConstruct %43 %25 %25
|
||||
%319 = OpCompositeConstruct %43 %24 %24
|
||||
%320 = OpUDiv %43 %319 %318
|
||||
%321 = OpCompositeConstruct %37 %14 %14
|
||||
%322 = OpCompositeConstruct %37 %3 %3
|
||||
%323 = OpFDiv %37 %321 %322
|
||||
%324 = OpCompositeConstruct %37 %3 %3
|
||||
%325 = OpCompositeConstruct %37 %14 %14
|
||||
%326 = OpFDiv %37 %325 %324
|
||||
%327 = OpCompositeConstruct %191 %18 %18
|
||||
%328 = OpCompositeConstruct %191 %7 %7
|
||||
%329 = OpSRem %191 %327 %328
|
||||
%330 = OpCompositeConstruct %191 %7 %7
|
||||
%331 = OpCompositeConstruct %191 %18 %18
|
||||
%332 = OpSRem %191 %331 %330
|
||||
%333 = OpCompositeConstruct %43 %24 %24
|
||||
%334 = OpCompositeConstruct %43 %25 %25
|
||||
%335 = OpUMod %43 %333 %334
|
||||
%336 = OpCompositeConstruct %43 %25 %25
|
||||
%337 = OpCompositeConstruct %43 %24 %24
|
||||
%338 = OpUMod %43 %337 %336
|
||||
%339 = OpCompositeConstruct %37 %14 %14
|
||||
%340 = OpCompositeConstruct %37 %3 %3
|
||||
%341 = OpFRem %37 %339 %340
|
||||
%342 = OpCompositeConstruct %37 %3 %3
|
||||
%343 = OpCompositeConstruct %37 %14 %14
|
||||
%344 = OpFRem %37 %343 %342
|
||||
%303 = OpCompositeConstruct %43 %24 %24
|
||||
%302 = OpIMul %43 %301 %303
|
||||
%304 = OpCompositeConstruct %37 %14 %14
|
||||
%305 = OpVectorTimesScalar %37 %304 %3
|
||||
%306 = OpCompositeConstruct %37 %3 %3
|
||||
%307 = OpVectorTimesScalar %37 %306 %14
|
||||
%308 = OpCompositeConstruct %190 %18 %18
|
||||
%309 = OpCompositeConstruct %190 %7 %7
|
||||
%310 = OpSDiv %190 %308 %309
|
||||
%311 = OpCompositeConstruct %190 %7 %7
|
||||
%312 = OpCompositeConstruct %190 %18 %18
|
||||
%313 = OpSDiv %190 %312 %311
|
||||
%314 = OpCompositeConstruct %43 %24 %24
|
||||
%315 = OpCompositeConstruct %43 %25 %25
|
||||
%316 = OpUDiv %43 %314 %315
|
||||
%317 = OpCompositeConstruct %43 %25 %25
|
||||
%318 = OpCompositeConstruct %43 %24 %24
|
||||
%319 = OpUDiv %43 %318 %317
|
||||
%320 = OpCompositeConstruct %37 %14 %14
|
||||
%321 = OpCompositeConstruct %37 %3 %3
|
||||
%322 = OpFDiv %37 %320 %321
|
||||
%323 = OpCompositeConstruct %37 %3 %3
|
||||
%324 = OpCompositeConstruct %37 %14 %14
|
||||
%325 = OpFDiv %37 %324 %323
|
||||
%326 = OpCompositeConstruct %190 %18 %18
|
||||
%327 = OpCompositeConstruct %190 %7 %7
|
||||
%328 = OpSRem %190 %326 %327
|
||||
%329 = OpCompositeConstruct %190 %7 %7
|
||||
%330 = OpCompositeConstruct %190 %18 %18
|
||||
%331 = OpSRem %190 %330 %329
|
||||
%332 = OpCompositeConstruct %43 %24 %24
|
||||
%333 = OpCompositeConstruct %43 %25 %25
|
||||
%334 = OpUMod %43 %332 %333
|
||||
%335 = OpCompositeConstruct %43 %25 %25
|
||||
%336 = OpCompositeConstruct %43 %24 %24
|
||||
%337 = OpUMod %43 %336 %335
|
||||
%338 = OpCompositeConstruct %37 %14 %14
|
||||
%339 = OpCompositeConstruct %37 %3 %3
|
||||
%340 = OpFRem %37 %338 %339
|
||||
%341 = OpCompositeConstruct %37 %3 %3
|
||||
%342 = OpCompositeConstruct %37 %14 %14
|
||||
%343 = OpFRem %37 %342 %341
|
||||
%345 = OpCompositeExtract %38 %63 0
|
||||
%346 = OpCompositeExtract %38 %63 0
|
||||
%347 = OpCompositeExtract %38 %63 0
|
||||
%348 = OpFAdd %38 %346 %347
|
||||
%347 = OpFAdd %38 %345 %346
|
||||
%348 = OpCompositeExtract %38 %63 1
|
||||
%349 = OpCompositeExtract %38 %63 1
|
||||
%350 = OpCompositeExtract %38 %63 1
|
||||
%351 = OpFAdd %38 %349 %350
|
||||
%350 = OpFAdd %38 %348 %349
|
||||
%351 = OpCompositeExtract %38 %63 2
|
||||
%352 = OpCompositeExtract %38 %63 2
|
||||
%353 = OpCompositeExtract %38 %63 2
|
||||
%354 = OpFAdd %38 %352 %353
|
||||
%345 = OpCompositeConstruct %47 %348 %351 %354
|
||||
%353 = OpFAdd %38 %351 %352
|
||||
%344 = OpCompositeConstruct %47 %347 %350 %353
|
||||
%355 = OpCompositeExtract %38 %63 0
|
||||
%356 = OpCompositeExtract %38 %63 0
|
||||
%357 = OpCompositeExtract %38 %63 0
|
||||
%358 = OpFSub %38 %356 %357
|
||||
%357 = OpFSub %38 %355 %356
|
||||
%358 = OpCompositeExtract %38 %63 1
|
||||
%359 = OpCompositeExtract %38 %63 1
|
||||
%360 = OpCompositeExtract %38 %63 1
|
||||
%361 = OpFSub %38 %359 %360
|
||||
%360 = OpFSub %38 %358 %359
|
||||
%361 = OpCompositeExtract %38 %63 2
|
||||
%362 = OpCompositeExtract %38 %63 2
|
||||
%363 = OpCompositeExtract %38 %63 2
|
||||
%364 = OpFSub %38 %362 %363
|
||||
%355 = OpCompositeConstruct %47 %358 %361 %364
|
||||
%365 = OpMatrixTimesScalar %47 %63 %3
|
||||
%366 = OpMatrixTimesScalar %47 %63 %14
|
||||
%367 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%368 = OpMatrixTimesVector %38 %64 %367
|
||||
%369 = OpCompositeConstruct %38 %14 %14 %14
|
||||
%370 = OpVectorTimesMatrix %34 %369 %64
|
||||
%371 = OpMatrixTimesMatrix %47 %64 %65
|
||||
%363 = OpFSub %38 %361 %362
|
||||
%354 = OpCompositeConstruct %47 %357 %360 %363
|
||||
%364 = OpMatrixTimesScalar %47 %63 %3
|
||||
%365 = OpMatrixTimesScalar %47 %63 %14
|
||||
%366 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%367 = OpMatrixTimesVector %38 %64 %366
|
||||
%368 = OpCompositeConstruct %38 %14 %14 %14
|
||||
%369 = OpVectorTimesMatrix %34 %368 %64
|
||||
%370 = OpMatrixTimesMatrix %47 %64 %65
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%373 = OpFunction %2 None %172
|
||||
%372 = OpLabel
|
||||
OpBranch %374
|
||||
%374 = OpLabel
|
||||
%375 = OpNot %8 %7
|
||||
%376 = OpNot %20 %25
|
||||
%377 = OpCompositeConstruct %191 %7 %7
|
||||
%378 = OpNot %191 %377
|
||||
%379 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%380 = OpNot %202 %379
|
||||
%381 = OpBitwiseOr %8 %18 %7
|
||||
%382 = OpBitwiseOr %20 %24 %25
|
||||
%383 = OpCompositeConstruct %191 %18 %18
|
||||
%384 = OpCompositeConstruct %191 %7 %7
|
||||
%385 = OpBitwiseOr %191 %383 %384
|
||||
%386 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%387 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%388 = OpBitwiseOr %202 %386 %387
|
||||
%389 = OpBitwiseAnd %8 %18 %7
|
||||
%390 = OpBitwiseAnd %20 %24 %25
|
||||
%391 = OpCompositeConstruct %191 %18 %18
|
||||
%392 = OpCompositeConstruct %191 %7 %7
|
||||
%393 = OpBitwiseAnd %191 %391 %392
|
||||
%394 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%395 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%396 = OpBitwiseAnd %202 %394 %395
|
||||
%397 = OpBitwiseXor %8 %18 %7
|
||||
%398 = OpBitwiseXor %20 %24 %25
|
||||
%399 = OpCompositeConstruct %191 %18 %18
|
||||
%400 = OpCompositeConstruct %191 %7 %7
|
||||
%401 = OpBitwiseXor %191 %399 %400
|
||||
%402 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%403 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%404 = OpBitwiseXor %202 %402 %403
|
||||
%405 = OpShiftLeftLogical %8 %18 %25
|
||||
%406 = OpShiftLeftLogical %20 %24 %25
|
||||
%407 = OpCompositeConstruct %191 %18 %18
|
||||
%408 = OpCompositeConstruct %43 %25 %25
|
||||
%409 = OpShiftLeftLogical %191 %407 %408
|
||||
%410 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%411 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%412 = OpShiftLeftLogical %202 %410 %411
|
||||
%413 = OpShiftRightArithmetic %8 %18 %25
|
||||
%414 = OpShiftRightLogical %20 %24 %25
|
||||
%415 = OpCompositeConstruct %191 %18 %18
|
||||
%416 = OpCompositeConstruct %43 %25 %25
|
||||
%417 = OpShiftRightArithmetic %191 %415 %416
|
||||
%418 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%419 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%420 = OpShiftRightLogical %202 %418 %419
|
||||
%372 = OpFunction %2 None %171
|
||||
%371 = OpLabel
|
||||
OpBranch %373
|
||||
%373 = OpLabel
|
||||
%374 = OpNot %8 %7
|
||||
%375 = OpNot %20 %25
|
||||
%376 = OpCompositeConstruct %190 %7 %7
|
||||
%377 = OpNot %190 %376
|
||||
%378 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%379 = OpNot %201 %378
|
||||
%380 = OpBitwiseOr %8 %18 %7
|
||||
%381 = OpBitwiseOr %20 %24 %25
|
||||
%382 = OpCompositeConstruct %190 %18 %18
|
||||
%383 = OpCompositeConstruct %190 %7 %7
|
||||
%384 = OpBitwiseOr %190 %382 %383
|
||||
%385 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%386 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%387 = OpBitwiseOr %201 %385 %386
|
||||
%388 = OpBitwiseAnd %8 %18 %7
|
||||
%389 = OpBitwiseAnd %20 %24 %25
|
||||
%390 = OpCompositeConstruct %190 %18 %18
|
||||
%391 = OpCompositeConstruct %190 %7 %7
|
||||
%392 = OpBitwiseAnd %190 %390 %391
|
||||
%393 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%394 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%395 = OpBitwiseAnd %201 %393 %394
|
||||
%396 = OpBitwiseXor %8 %18 %7
|
||||
%397 = OpBitwiseXor %20 %24 %25
|
||||
%398 = OpCompositeConstruct %190 %18 %18
|
||||
%399 = OpCompositeConstruct %190 %7 %7
|
||||
%400 = OpBitwiseXor %190 %398 %399
|
||||
%401 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%402 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%403 = OpBitwiseXor %201 %401 %402
|
||||
%404 = OpShiftLeftLogical %8 %18 %25
|
||||
%405 = OpShiftLeftLogical %20 %24 %25
|
||||
%406 = OpCompositeConstruct %190 %18 %18
|
||||
%407 = OpCompositeConstruct %43 %25 %25
|
||||
%408 = OpShiftLeftLogical %190 %406 %407
|
||||
%409 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%410 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%411 = OpShiftLeftLogical %201 %409 %410
|
||||
%412 = OpShiftRightArithmetic %8 %18 %25
|
||||
%413 = OpShiftRightLogical %20 %24 %25
|
||||
%414 = OpCompositeConstruct %190 %18 %18
|
||||
%415 = OpCompositeConstruct %43 %25 %25
|
||||
%416 = OpShiftRightArithmetic %190 %414 %415
|
||||
%417 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%418 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%419 = OpShiftRightLogical %201 %417 %418
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%422 = OpFunction %2 None %172
|
||||
%421 = OpLabel
|
||||
OpBranch %423
|
||||
%423 = OpLabel
|
||||
%424 = OpIEqual %10 %18 %7
|
||||
%425 = OpIEqual %10 %24 %25
|
||||
%426 = OpFOrdEqual %10 %14 %3
|
||||
%427 = OpCompositeConstruct %191 %18 %18
|
||||
%428 = OpCompositeConstruct %191 %7 %7
|
||||
%429 = OpIEqual %175 %427 %428
|
||||
%430 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%431 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%432 = OpIEqual %39 %430 %431
|
||||
%433 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%434 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%435 = OpFOrdEqual %36 %433 %434
|
||||
%436 = OpINotEqual %10 %18 %7
|
||||
%437 = OpINotEqual %10 %24 %25
|
||||
%438 = OpFOrdNotEqual %10 %14 %3
|
||||
%439 = OpCompositeConstruct %191 %18 %18
|
||||
%440 = OpCompositeConstruct %191 %7 %7
|
||||
%441 = OpINotEqual %175 %439 %440
|
||||
%442 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%443 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%444 = OpINotEqual %39 %442 %443
|
||||
%445 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%446 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%447 = OpFOrdNotEqual %36 %445 %446
|
||||
%448 = OpSLessThan %10 %18 %7
|
||||
%449 = OpULessThan %10 %24 %25
|
||||
%450 = OpFOrdLessThan %10 %14 %3
|
||||
%451 = OpCompositeConstruct %191 %18 %18
|
||||
%452 = OpCompositeConstruct %191 %7 %7
|
||||
%453 = OpSLessThan %175 %451 %452
|
||||
%454 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%455 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%456 = OpULessThan %39 %454 %455
|
||||
%457 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%458 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%459 = OpFOrdLessThan %36 %457 %458
|
||||
%460 = OpSLessThanEqual %10 %18 %7
|
||||
%461 = OpULessThanEqual %10 %24 %25
|
||||
%462 = OpFOrdLessThanEqual %10 %14 %3
|
||||
%463 = OpCompositeConstruct %191 %18 %18
|
||||
%464 = OpCompositeConstruct %191 %7 %7
|
||||
%465 = OpSLessThanEqual %175 %463 %464
|
||||
%466 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%467 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%468 = OpULessThanEqual %39 %466 %467
|
||||
%469 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%470 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%471 = OpFOrdLessThanEqual %36 %469 %470
|
||||
%472 = OpSGreaterThan %10 %18 %7
|
||||
%473 = OpUGreaterThan %10 %24 %25
|
||||
%474 = OpFOrdGreaterThan %10 %14 %3
|
||||
%475 = OpCompositeConstruct %191 %18 %18
|
||||
%476 = OpCompositeConstruct %191 %7 %7
|
||||
%477 = OpSGreaterThan %175 %475 %476
|
||||
%478 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%479 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%480 = OpUGreaterThan %39 %478 %479
|
||||
%481 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%482 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%483 = OpFOrdGreaterThan %36 %481 %482
|
||||
%484 = OpSGreaterThanEqual %10 %18 %7
|
||||
%485 = OpUGreaterThanEqual %10 %24 %25
|
||||
%486 = OpFOrdGreaterThanEqual %10 %14 %3
|
||||
%487 = OpCompositeConstruct %191 %18 %18
|
||||
%488 = OpCompositeConstruct %191 %7 %7
|
||||
%489 = OpSGreaterThanEqual %175 %487 %488
|
||||
%490 = OpCompositeConstruct %202 %24 %24 %24
|
||||
%491 = OpCompositeConstruct %202 %25 %25 %25
|
||||
%492 = OpUGreaterThanEqual %39 %490 %491
|
||||
%493 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%494 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%495 = OpFOrdGreaterThanEqual %36 %493 %494
|
||||
%421 = OpFunction %2 None %171
|
||||
%420 = OpLabel
|
||||
OpBranch %422
|
||||
%422 = OpLabel
|
||||
%423 = OpIEqual %10 %18 %7
|
||||
%424 = OpIEqual %10 %24 %25
|
||||
%425 = OpFOrdEqual %10 %14 %3
|
||||
%426 = OpCompositeConstruct %190 %18 %18
|
||||
%427 = OpCompositeConstruct %190 %7 %7
|
||||
%428 = OpIEqual %174 %426 %427
|
||||
%429 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%430 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%431 = OpIEqual %39 %429 %430
|
||||
%432 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%433 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%434 = OpFOrdEqual %36 %432 %433
|
||||
%435 = OpINotEqual %10 %18 %7
|
||||
%436 = OpINotEqual %10 %24 %25
|
||||
%437 = OpFOrdNotEqual %10 %14 %3
|
||||
%438 = OpCompositeConstruct %190 %18 %18
|
||||
%439 = OpCompositeConstruct %190 %7 %7
|
||||
%440 = OpINotEqual %174 %438 %439
|
||||
%441 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%442 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%443 = OpINotEqual %39 %441 %442
|
||||
%444 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%445 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%446 = OpFOrdNotEqual %36 %444 %445
|
||||
%447 = OpSLessThan %10 %18 %7
|
||||
%448 = OpULessThan %10 %24 %25
|
||||
%449 = OpFOrdLessThan %10 %14 %3
|
||||
%450 = OpCompositeConstruct %190 %18 %18
|
||||
%451 = OpCompositeConstruct %190 %7 %7
|
||||
%452 = OpSLessThan %174 %450 %451
|
||||
%453 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%454 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%455 = OpULessThan %39 %453 %454
|
||||
%456 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%457 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%458 = OpFOrdLessThan %36 %456 %457
|
||||
%459 = OpSLessThanEqual %10 %18 %7
|
||||
%460 = OpULessThanEqual %10 %24 %25
|
||||
%461 = OpFOrdLessThanEqual %10 %14 %3
|
||||
%462 = OpCompositeConstruct %190 %18 %18
|
||||
%463 = OpCompositeConstruct %190 %7 %7
|
||||
%464 = OpSLessThanEqual %174 %462 %463
|
||||
%465 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%466 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%467 = OpULessThanEqual %39 %465 %466
|
||||
%468 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%469 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%470 = OpFOrdLessThanEqual %36 %468 %469
|
||||
%471 = OpSGreaterThan %10 %18 %7
|
||||
%472 = OpUGreaterThan %10 %24 %25
|
||||
%473 = OpFOrdGreaterThan %10 %14 %3
|
||||
%474 = OpCompositeConstruct %190 %18 %18
|
||||
%475 = OpCompositeConstruct %190 %7 %7
|
||||
%476 = OpSGreaterThan %174 %474 %475
|
||||
%477 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%478 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%479 = OpUGreaterThan %39 %477 %478
|
||||
%480 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%481 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%482 = OpFOrdGreaterThan %36 %480 %481
|
||||
%483 = OpSGreaterThanEqual %10 %18 %7
|
||||
%484 = OpUGreaterThanEqual %10 %24 %25
|
||||
%485 = OpFOrdGreaterThanEqual %10 %14 %3
|
||||
%486 = OpCompositeConstruct %190 %18 %18
|
||||
%487 = OpCompositeConstruct %190 %7 %7
|
||||
%488 = OpSGreaterThanEqual %174 %486 %487
|
||||
%489 = OpCompositeConstruct %201 %24 %24 %24
|
||||
%490 = OpCompositeConstruct %201 %25 %25 %25
|
||||
%491 = OpUGreaterThanEqual %39 %489 %490
|
||||
%492 = OpCompositeConstruct %34 %14 %14 %14 %14
|
||||
%493 = OpCompositeConstruct %34 %3 %3 %3 %3
|
||||
%494 = OpFOrdGreaterThanEqual %36 %492 %493
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%503 = OpFunction %2 None %172
|
||||
%502 = OpLabel
|
||||
%496 = OpVariable %497 Function %498
|
||||
%499 = OpVariable %500 Function %501
|
||||
OpBranch %504
|
||||
%504 = OpLabel
|
||||
OpStore %496 %7
|
||||
%505 = OpLoad %8 %496
|
||||
%506 = OpIAdd %8 %505 %7
|
||||
OpStore %496 %506
|
||||
%507 = OpLoad %8 %496
|
||||
%508 = OpISub %8 %507 %7
|
||||
OpStore %496 %508
|
||||
%509 = OpLoad %8 %496
|
||||
%510 = OpLoad %8 %496
|
||||
%511 = OpIMul %8 %510 %509
|
||||
OpStore %496 %511
|
||||
%512 = OpLoad %8 %496
|
||||
%513 = OpLoad %8 %496
|
||||
%514 = OpSDiv %8 %513 %512
|
||||
OpStore %496 %514
|
||||
%515 = OpLoad %8 %496
|
||||
%516 = OpSRem %8 %515 %7
|
||||
OpStore %496 %516
|
||||
%517 = OpLoad %8 %496
|
||||
%518 = OpBitwiseAnd %8 %517 %11
|
||||
OpStore %496 %518
|
||||
%519 = OpLoad %8 %496
|
||||
%520 = OpBitwiseOr %8 %519 %11
|
||||
OpStore %496 %520
|
||||
%521 = OpLoad %8 %496
|
||||
%522 = OpBitwiseXor %8 %521 %11
|
||||
OpStore %496 %522
|
||||
%523 = OpLoad %8 %496
|
||||
%524 = OpShiftLeftLogical %8 %523 %24
|
||||
OpStore %496 %524
|
||||
%525 = OpLoad %8 %496
|
||||
%526 = OpShiftRightArithmetic %8 %525 %25
|
||||
OpStore %496 %526
|
||||
%527 = OpLoad %8 %496
|
||||
%528 = OpIAdd %8 %527 %7
|
||||
OpStore %496 %528
|
||||
%529 = OpLoad %8 %496
|
||||
%530 = OpISub %8 %529 %7
|
||||
OpStore %496 %530
|
||||
OpStore %499 %66
|
||||
%532 = OpAccessChain %531 %499 %25
|
||||
%533 = OpLoad %8 %532
|
||||
%534 = OpIAdd %8 %533 %7
|
||||
%535 = OpAccessChain %531 %499 %25
|
||||
OpStore %535 %534
|
||||
%536 = OpAccessChain %531 %499 %25
|
||||
%537 = OpLoad %8 %536
|
||||
%538 = OpISub %8 %537 %7
|
||||
%539 = OpAccessChain %531 %499 %25
|
||||
OpStore %539 %538
|
||||
%502 = OpFunction %2 None %171
|
||||
%501 = OpLabel
|
||||
%495 = OpVariable %496 Function %497
|
||||
%498 = OpVariable %499 Function %500
|
||||
OpBranch %503
|
||||
%503 = OpLabel
|
||||
OpStore %495 %7
|
||||
%504 = OpLoad %8 %495
|
||||
%505 = OpIAdd %8 %504 %7
|
||||
OpStore %495 %505
|
||||
%506 = OpLoad %8 %495
|
||||
%507 = OpISub %8 %506 %7
|
||||
OpStore %495 %507
|
||||
%508 = OpLoad %8 %495
|
||||
%509 = OpLoad %8 %495
|
||||
%510 = OpIMul %8 %509 %508
|
||||
OpStore %495 %510
|
||||
%511 = OpLoad %8 %495
|
||||
%512 = OpLoad %8 %495
|
||||
%513 = OpSDiv %8 %512 %511
|
||||
OpStore %495 %513
|
||||
%514 = OpLoad %8 %495
|
||||
%515 = OpSRem %8 %514 %7
|
||||
OpStore %495 %515
|
||||
%516 = OpLoad %8 %495
|
||||
%517 = OpBitwiseAnd %8 %516 %11
|
||||
OpStore %495 %517
|
||||
%518 = OpLoad %8 %495
|
||||
%519 = OpBitwiseOr %8 %518 %11
|
||||
OpStore %495 %519
|
||||
%520 = OpLoad %8 %495
|
||||
%521 = OpBitwiseXor %8 %520 %11
|
||||
OpStore %495 %521
|
||||
%522 = OpLoad %8 %495
|
||||
%523 = OpShiftLeftLogical %8 %522 %24
|
||||
OpStore %495 %523
|
||||
%524 = OpLoad %8 %495
|
||||
%525 = OpShiftRightArithmetic %8 %524 %25
|
||||
OpStore %495 %525
|
||||
%526 = OpLoad %8 %495
|
||||
%527 = OpIAdd %8 %526 %7
|
||||
OpStore %495 %527
|
||||
%528 = OpLoad %8 %495
|
||||
%529 = OpISub %8 %528 %7
|
||||
OpStore %495 %529
|
||||
OpStore %498 %66
|
||||
%531 = OpAccessChain %530 %498 %25
|
||||
%532 = OpLoad %8 %531
|
||||
%533 = OpIAdd %8 %532 %7
|
||||
%534 = OpAccessChain %530 %498 %25
|
||||
OpStore %534 %533
|
||||
%535 = OpAccessChain %530 %498 %25
|
||||
%536 = OpLoad %8 %535
|
||||
%537 = OpISub %8 %536 %7
|
||||
%538 = OpAccessChain %530 %498 %25
|
||||
OpStore %538 %537
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%541 = OpFunction %2 None %172
|
||||
%540 = OpLabel
|
||||
OpBranch %542
|
||||
%542 = OpLabel
|
||||
%543 = OpSNegate %8 %27
|
||||
%544 = OpSNegate %8 %28
|
||||
%545 = OpSNegate %8 %29
|
||||
%546 = OpSNegate %8 %545
|
||||
%547 = OpSNegate %8 %30
|
||||
%548 = OpSNegate %8 %547
|
||||
%549 = OpSNegate %8 %31
|
||||
%540 = OpFunction %2 None %171
|
||||
%539 = OpLabel
|
||||
OpBranch %541
|
||||
%541 = OpLabel
|
||||
%542 = OpSNegate %8 %27
|
||||
%543 = OpSNegate %8 %28
|
||||
%544 = OpSNegate %8 %29
|
||||
%545 = OpSNegate %8 %544
|
||||
%546 = OpSNegate %8 %30
|
||||
%547 = OpSNegate %8 %546
|
||||
%548 = OpSNegate %8 %31
|
||||
%549 = OpSNegate %8 %548
|
||||
%550 = OpSNegate %8 %549
|
||||
%551 = OpSNegate %8 %550
|
||||
%552 = OpSNegate %8 %551
|
||||
%553 = OpSNegate %8 %32
|
||||
%552 = OpSNegate %8 %32
|
||||
%553 = OpSNegate %8 %552
|
||||
%554 = OpSNegate %8 %553
|
||||
%555 = OpSNegate %8 %554
|
||||
%556 = OpSNegate %8 %555
|
||||
%557 = OpSNegate %8 %33
|
||||
%556 = OpSNegate %8 %33
|
||||
%557 = OpSNegate %8 %556
|
||||
%558 = OpSNegate %8 %557
|
||||
%559 = OpSNegate %8 %558
|
||||
%560 = OpSNegate %8 %559
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
%562 = OpFunction %2 None %172
|
||||
%561 = OpLabel
|
||||
OpBranch %563
|
||||
%563 = OpLabel
|
||||
%564 = OpFunctionCall %34 %68
|
||||
%565 = OpFunctionCall %34 %93
|
||||
%566 = OpVectorShuffle %38 %51 %51 0 1 2
|
||||
%567 = OpFunctionCall %38 %128 %566
|
||||
%568 = OpFunctionCall %4 %140
|
||||
%569 = OpFunctionCall %2 %171
|
||||
%570 = OpFunctionCall %2 %189
|
||||
%571 = OpFunctionCall %2 %373
|
||||
%572 = OpFunctionCall %2 %422
|
||||
%573 = OpFunctionCall %2 %503
|
||||
%561 = OpFunction %2 None %171
|
||||
%560 = OpLabel
|
||||
OpBranch %562
|
||||
%562 = OpLabel
|
||||
%563 = OpFunctionCall %34 %68
|
||||
%564 = OpFunctionCall %34 %93
|
||||
%565 = OpVectorShuffle %38 %51 %51 0 1 2
|
||||
%566 = OpFunctionCall %38 %128 %565
|
||||
%567 = OpFunctionCall %4 %139
|
||||
%568 = OpFunctionCall %2 %170
|
||||
%569 = OpFunctionCall %2 %188
|
||||
%570 = OpFunctionCall %2 %372
|
||||
%571 = OpFunctionCall %2 %421
|
||||
%572 = OpFunctionCall %2 %502
|
||||
OpReturn
|
||||
OpFunctionEnd
|
||||
Reference in new issue
Block a user