OSDN Git Service

Run spirv-opt pass to eliminate dead functions after inlining
authorChris Forbes <chrisforbes@google.com>
Thu, 14 Mar 2019 21:19:04 +0000 (14:19 -0700)
committerChris Forbes <chrisforbes@google.com>
Fri, 15 Mar 2019 18:49:47 +0000 (18:49 +0000)
commit085f57ee2052d13d1b3e8fd45718b7e436bf4a24
tree69c8dee8bf7d532c898f30101fbe6b954d10d053
parent5ceec2c3618b3faadc2b0d7b4e18e2601b6e696a
Run spirv-opt pass to eliminate dead functions after inlining

The inliner leaves the original functions. If we want the simplicity of
not thinking about functions, we have to remove them.

Change-Id: I0d0c7f8d3de21095b52d86a4c62015287eda32cc
Reviewed-on: https://swiftshader-review.googlesource.com/c/SwiftShader/+/27272
Tested-by: Chris Forbes <chrisforbes@google.com>
Presubmit-Ready: Chris Forbes <chrisforbes@google.com>
Kokoro-Presubmit: kokoro <noreply+kokoro@google.com>
Reviewed-by: Ben Clayton <bclayton@google.com>
Reviewed-by: Nicolas Capens <nicolascapens@google.com>
src/Vulkan/VkPipeline.cpp