Inliner: callee can have early return that isn't multi-return
authorDavid Neto <dneto@google.com>
Wed, 9 Aug 2017 18:59:04 +0000 (14:59 -0400)
committerDavid Neto <dneto@google.com>
Thu, 10 Aug 2017 15:43:44 +0000 (11:43 -0400)
commit2a1014be9cfec8a9868900f50335ee8b62e0a8b3
tree8ed2dfbc780a7149b0cead317674175cca89b0e7
parentf0fe601dc8f2e8a2176d87fe60603a1ca306486c
Inliner: callee can have early return that isn't multi-return

Avoid generating an invalid OpLabel.
Create the continue target for the single-trip loop only if
you actually created the header for the single-trip loop.

Fixes https://github.com/KhronosGroup/SPIRV-Tools/issues/755
source/opt/inline_pass.cpp
source/opt/inline_pass.h
test/opt/inline_test.cpp