https://github.com/shader-slang/slang
Raw File
Tip revision: 9833ff9a3d121b974cdaa21708eedb50e9d560cc authored by Yong He on 27 September 2023, 18:46:29 UTC
Fix `isMovableInst`. (#3243)
Tip revision: 9833ff9
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