Skip to content

Commit c7ea966

Browse files
committed
Roll back changes to SPIRV optimizer so there's no merge conflicts later
1 parent 9abd247 commit c7ea966

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

include/nbl/asset/utils/ISPIRVOptimizer.h

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ class ISPIRVOptimizer final : public core::IReferenceCounted
2424
EOP_SIMPLIFICATION,
2525
EOP_VECTOR_DCE,
2626
EOP_DEAD_INSERT_ELIM,
27+
EOP_AGGRESSIVE_DCE,
2728
EOP_DEAD_BRANCH_ELIM,
2829
EOP_BLOCK_MERGE,
2930
EOP_LOCAL_MULTI_STORE_ELIM,
@@ -33,8 +34,6 @@ class ISPIRVOptimizer final : public core::IReferenceCounted
3334
EOP_REDUCE_LOAD_SIZE,
3435
EOP_STRENGTH_REDUCTION,
3536
EOP_IF_CONVERSION,
36-
EOP_STRIP_DEBUG,
37-
EOP_AGGRESSIVE_DCE,
3837

3938
EOP_COUNT
4039
};

src/nbl/asset/utils/ISPIRVOptimizer.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ nbl::core::smart_refctd_ptr<ICPUBuffer> ISPIRVOptimizer::optimize(const uint32_t
3232
&spvtools::CreateSimplificationPass,
3333
&spvtools::CreateVectorDCEPass,
3434
&spvtools::CreateDeadInsertElimPass,
35+
//&spvtools::CreateAggressiveDCEPass
3536
&spvtools::CreateDeadBranchElimPass,
3637
&spvtools::CreateBlockMergePass,
3738
&spvtools::CreateLocalMultiStoreElimPass,
@@ -41,8 +42,6 @@ nbl::core::smart_refctd_ptr<ICPUBuffer> ISPIRVOptimizer::optimize(const uint32_t
4142
CreateReduceLoadSizePass,
4243
&spvtools::CreateStrengthReductionPass,
4344
&spvtools::CreateIfConversionPass,
44-
&spvtools::CreateStripDebugInfoPass,
45-
//&spvtools::CreateAggressiveDCEPass
4645
};
4746

4847
auto msgConsumer = [&logger](spv_message_level_t level, const char* src, const spv_position_t& pos, const char* msg)

0 commit comments

Comments
 (0)