https://github.com/shader-slang/slang
Raw File
Tip revision: d06a78d935b2743494d47ed5cd3f36e38ac9c5ac authored by Yong He on 04 February 2022, 03:17:30 UTC
Add gfx interop to allow more direct D3D12 usage scenarios. (#2117)
Tip revision: d06a78d
slang-ir-sccp.h
// slang-ir-sccp.h
#pragma once

namespace Slang
{
    struct IRModule;

        /// Apply Sparse Conditional Constant Propagation (SCCP) to a module.
        ///
        /// This optimization replaces instructions that can only ever evaluate
        /// to a single (well-defined) value with that constant value, and
        /// also eliminates conditional branches where the condition will
        /// always evaluate to a constant (which can lead to entire blocks
        /// becoming dead code)
    void applySparseConditionalConstantPropagation(
        IRModule*       module);
}

back to top