https://github.com/shader-slang/slang
Raw File
Tip revision: 641f7bdc4ea4f75385c30d833cce4619a411ec67 authored by Sai Praveen Bangaru on 03 September 2023, 19:57:15 UTC
Loop inversion: Handle case where loop can have additional inner breaks (#3178)
Tip revision: 641f7bd
slang-ir-simplify-cfg.h
// slang-ir-simplify-cfg.h
#pragma once

namespace Slang
{
    struct IRModule;
    struct IRGlobalValueWithCode;

        /// Simplifies control flow graph by merging basic blocks that
        /// forms a simple linear chain.
        /// Returns true if changed.
    bool simplifyCFG(IRModule* module);

    bool simplifyCFG(IRGlobalValueWithCode* func);

}
back to top