mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2025-01-11 17:10:06 +00:00
Remove duplicate dead branch elim pass declaration
The function had two declarations in the same header with somewhat different comments.
This commit is contained in:
parent
d7f199b5d4
commit
4b1577a0cb
@ -260,6 +260,9 @@ Optimizer::PassToken CreateLocalSingleBlockLoadStoreElimPass();
|
|||||||
// BranchConditionals with constant condition and convert to a Branch to
|
// BranchConditionals with constant condition and convert to a Branch to
|
||||||
// the indicated label. It will delete resulting dead blocks.
|
// the indicated label. It will delete resulting dead blocks.
|
||||||
//
|
//
|
||||||
|
// For all phi functions in merge block, replace all uses with the id
|
||||||
|
// corresponding to the living predecessor.
|
||||||
|
//
|
||||||
// This pass only works on shaders (guaranteed to have structured control
|
// This pass only works on shaders (guaranteed to have structured control
|
||||||
// flow). Note that some such branches and blocks may be left to avoid
|
// flow). Note that some such branches and blocks may be left to avoid
|
||||||
// creating invalid control flow. Improving this is left to future work.
|
// creating invalid control flow. Improving this is left to future work.
|
||||||
@ -333,17 +336,6 @@ Optimizer::PassToken CreateLocalSingleStoreElimPass();
|
|||||||
// converted to inserts and extracts and local loads and stores are eliminated.
|
// converted to inserts and extracts and local loads and stores are eliminated.
|
||||||
Optimizer::PassToken CreateInsertExtractElimPass();
|
Optimizer::PassToken CreateInsertExtractElimPass();
|
||||||
|
|
||||||
// Create dead branch elimination pass.
|
|
||||||
// For each entry point function, this pass will look for BranchConditionals
|
|
||||||
// with constant condition and convert to a branch. The BranchConditional must
|
|
||||||
// be preceeded by OpSelectionMerge. For all phi functions in merge block,
|
|
||||||
// replace all uses with the id corresponding to the living predecessor.
|
|
||||||
//
|
|
||||||
// This pass is most effective when preceeded by passes which eliminate
|
|
||||||
// local loads and stores, effectively propagating constant values where
|
|
||||||
// possible.
|
|
||||||
Optimizer::PassToken CreateDeadBranchElimPass();
|
|
||||||
|
|
||||||
// Creates a pass to consolidate uniform references.
|
// Creates a pass to consolidate uniform references.
|
||||||
// For each entry point function in the module, first change all constant index
|
// For each entry point function in the module, first change all constant index
|
||||||
// access chain loads into equivalent composite extracts. Then consolidate
|
// access chain loads into equivalent composite extracts. Then consolidate
|
||||||
|
Loading…
Reference in New Issue
Block a user