Skip to content

Commit 6fea3e5

Browse files
author
kevyuu
committed
Add agrressive dce pass to remove type and remove multiple round of branch elim
1 parent 4a374b0 commit 6fea3e5

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/nbl/asset/utils/ISPIRVEntryPointTrimmer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,11 @@ ISPIRVEntryPointTrimmer::ISPIRVEntryPointTrimmer()
1414
{
1515
// Multiple dead branch and dead function elimination because the first entry point removal might result to dead branch. Then the dead branch might result to dead function. Then, the dead function might result to dead branch and so on.
1616
constexpr auto optimizationPasses = std::array{
17-
ISPIRVOptimizer::EOP_DEAD_BRANCH_ELIM,
18-
ISPIRVOptimizer::EOP_ELIM_DEAD_FUNCTIONS,
1917
ISPIRVOptimizer::EOP_DEAD_BRANCH_ELIM,
2018
ISPIRVOptimizer::EOP_ELIM_DEAD_FUNCTIONS,
2119
ISPIRVOptimizer::EOP_ELIM_DEAD_VARIABLES,
2220
ISPIRVOptimizer::EOP_ELIM_DEAD_CONSTANTS,
21+
ISPIRVOptimizer::EOP_AGGRESSIVE_DCE,
2322
ISPIRVOptimizer::EOP_ELIM_DEAD_MEMBERS,
2423
ISPIRVOptimizer::EOP_TRIM_CAPABILITIES,
2524
};

0 commit comments

Comments
 (0)