File tree Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Expand file tree Collapse file tree 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,15 @@ ISPIRVEntryPointTrimmer::ISPIRVEntryPointTrimmer()
17
17
ISPIRVOptimizer::EOP_ELIM_DEAD_FUNCTIONS,
18
18
ISPIRVOptimizer::EOP_ELIM_DEAD_VARIABLES,
19
19
20
- // This will remove spec constant as well
20
+ // This will remove spec constant as well based on this doc
21
+ // https://github.com/KhronosGroup/SPIRV-Tools/blob/dec28643ed15f68a2bc95650de25e0a7486b564c/include/spirv-tools/optimizer.hpp#L349
21
22
ISPIRVOptimizer::EOP_ELIM_DEAD_CONSTANTS,
22
23
23
24
ISPIRVOptimizer::EOP_ELIM_DEAD_MEMBERS,
24
25
25
- // Aggresive DCE to remove unused type
26
+ // Based on experimentation, Aggresive DCE will remove unused type
26
27
ISPIRVOptimizer::EOP_AGGRESSIVE_DCE,
28
+
27
29
ISPIRVOptimizer::EOP_TRIM_CAPABILITIES,
28
30
};
29
31
m_optimizer = core::make_smart_refctd_ptr<ISPIRVOptimizer>(std::span (optimizationPasses));
You can’t perform that action at this time.
0 commit comments