Inliner: Remap callee entry block id to single-trip loop header
authorDavid Neto <dneto@google.com>
Thu, 31 Aug 2017 21:33:44 +0000 (17:33 -0400)
committerDavid Neto <dneto@google.com>
Fri, 1 Sep 2017 19:56:14 +0000 (15:56 -0400)
commit860c4197b06776bdcbb30e2104c95769837f0a3d
tree780d4a3ceb5139853660943a584bb553119c38d7
parentefff5fabfab59185bc9177f2e294f6cf27f094a5
Inliner: Remap callee entry block id to single-trip loop header

Otherwise cloned phis can be invalid.

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