Reuse loads generated for repeated function arguments

This commit is contained in:
Jeff Bolz 2024-05-31 11:46:03 -05:00 committed by arcady-lunarg
parent 0e311906b9
commit 6a8b2b2439
11 changed files with 9106 additions and 9441 deletions

View file

@ -1,7 +1,7 @@
spv.invariantAll.vert
// Module Version 10000
// Generated by (magic number): 8000b
// Id's are bound by 25
// Id's are bound by 24
Capability Shader
1: ExtInstImport "GLSL.std.450"
@ -41,15 +41,14 @@ spv.invariantAll.vert
15: 14(int) Constant 0
16: TypePointer Output 6(float)
17(v): 16(ptr) Variable Output
20: 6(float) Constant 0
21: 6(float) Constant 1065353216
23: TypePointer Output 7(fvec4)
19: 6(float) Constant 0
20: 6(float) Constant 1065353216
22: TypePointer Output 7(fvec4)
4(main): 2 Function None 3
5: Label
18: 6(float) Load 17(v)
19: 6(float) Load 17(v)
22: 7(fvec4) CompositeConstruct 18 19 20 21
24: 23(ptr) AccessChain 13 15
Store 24 22
21: 7(fvec4) CompositeConstruct 18 18 19 20
23: 22(ptr) AccessChain 13 15
Store 23 21
Return
FunctionEnd