aboutsummaryrefslogtreecommitdiff
path: root/test/opt/inline_opaque_test.cpp
diff options
context:
space:
mode:
authorJaebaek Seo <jaebaek@google.com>2020-05-13 23:17:19 -0400
committerGitHub <noreply@github.com>2020-05-13 23:17:19 -0400
commit233246bc9c5e0fef93f784a3f38899e35441519d (patch)
treee62485f802b93bc2f61b8148186cfe8bad00c679 /test/opt/inline_opaque_test.cpp
parent2992386ebea98deed05958e9886abe9b1cdea0eb (diff)
downloadspirv-tools-233246bc9c5e0fef93f784a3f38899e35441519d.tar.gz
[spirv-opt] refactor inlining pass (#3328)
- No longer inline functions with early exits. Merge return can modify them so they can be inlined. - Otherwise no functional change, should be just refactoring.
Diffstat (limited to 'test/opt/inline_opaque_test.cpp')
-rw-r--r--test/opt/inline_opaque_test.cpp32
1 files changed, 16 insertions, 16 deletions
diff --git a/test/opt/inline_opaque_test.cpp b/test/opt/inline_opaque_test.cpp
index d10913ae..b8d2dfad 100644
--- a/test/opt/inline_opaque_test.cpp
+++ b/test/opt/inline_opaque_test.cpp
@@ -102,12 +102,12 @@ OpStore %30 %29
OpStore %32 %31
%33 = OpLoad %S_t %s0
OpStore %param %33
-%41 = OpAccessChain %_ptr_Function_18 %param %int_2
-%42 = OpLoad %18 %41
-%43 = OpAccessChain %_ptr_Function_v2float %param %int_0
-%44 = OpLoad %v2float %43
-%45 = OpImageSampleImplicitLod %v4float %42 %44
-OpStore %outColor %45
+%42 = OpAccessChain %_ptr_Function_18 %param %int_2
+%43 = OpLoad %18 %42
+%44 = OpAccessChain %_ptr_Function_v2float %param %int_0
+%45 = OpLoad %v2float %44
+%46 = OpImageSampleImplicitLod %v4float %43 %45
+OpStore %outColor %46
OpReturn
OpFunctionEnd
)";
@@ -191,10 +191,10 @@ OpFunctionEnd
%34 = OpVariable %_ptr_Function_20 Function
%35 = OpVariable %_ptr_Function_20 Function
%25 = OpVariable %_ptr_Function_20 Function
-%36 = OpLoad %20 %sampler16
-OpStore %34 %36
-%37 = OpLoad %20 %34
-OpStore %35 %37
+%37 = OpLoad %20 %sampler16
+OpStore %34 %37
+%38 = OpLoad %20 %34
+OpStore %35 %38
%26 = OpLoad %20 %35
OpStore %25 %26
%27 = OpLoad %20 %25
@@ -301,12 +301,12 @@ OpStore %31 %30
OpStore %33 %32
%34 = OpLoad %S_t %s0
OpStore %param %34
-%44 = OpAccessChain %_ptr_Function_19 %param %int_2
-%45 = OpLoad %19 %44
-%46 = OpAccessChain %_ptr_Function_v2float %param %int_0
-%47 = OpLoad %v2float %46
-%48 = OpImageSampleImplicitLod %v4float %45 %47
-OpStore %outColor %48
+%45 = OpAccessChain %_ptr_Function_19 %param %int_2
+%46 = OpLoad %19 %45
+%47 = OpAccessChain %_ptr_Function_v2float %param %int_0
+%48 = OpLoad %v2float %47
+%49 = OpImageSampleImplicitLod %v4float %46 %48
+OpStore %outColor %49
OpReturn
OpFunctionEnd
)";