File tree Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Expand file tree Collapse file tree 1 file changed +7
-8
lines changed Original file line number Diff line number Diff line change @@ -73,14 +73,6 @@ pub fn compact(module: &mut crate::Module) {
73
73
}
74
74
}
75
75
76
- for e in module. entry_points . iter ( ) {
77
- if let Some ( sizes) = e. workgroup_size_overrides {
78
- for size in sizes. iter ( ) . filter_map ( |x| * x) {
79
- module_tracer. global_expressions_used . insert ( size) ;
80
- }
81
- }
82
- }
83
-
84
76
// We assume that all functions are used.
85
77
//
86
78
// Observe which types, constant expressions, constants, and
@@ -106,6 +98,13 @@ pub fn compact(module: &mut crate::Module) {
106
98
. iter ( )
107
99
. map ( |e| {
108
100
log:: trace!( "tracing entry point {:?}" , e. function. name) ;
101
+
102
+ if let Some ( sizes) = e. workgroup_size_overrides {
103
+ for size in sizes. iter ( ) . filter_map ( |x| * x) {
104
+ module_tracer. global_expressions_used . insert ( size) ;
105
+ }
106
+ }
107
+
109
108
let mut used = module_tracer. as_function ( & e. function ) ;
110
109
used. trace ( ) ;
111
110
FunctionMap :: from ( used)
You can’t perform that action at this time.
0 commit comments