https://github.com/shader-slang/slang
Raw File
Tip revision: b5307ee41c3fd8b4c87167551a1e204a1fd1db81 authored by Yong He on 21 September 2023, 23:03:08 UTC
Merge branch 'master' into csyonghe-patch-2
Tip revision: b5307ee
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