Fix https://github.com/KhronosGroup/SPIRV-Tools/issues/1130
authorDiego Novillo <dnovillo@google.com>
Fri, 22 Dec 2017 17:38:02 +0000 (12:38 -0500)
committerDavid Neto <dneto@google.com>
Fri, 22 Dec 2017 18:33:17 +0000 (13:33 -0500)
commit1acce99255ee28a582776372593e91b585d3c011
tree7af9e80489725fc4e5ce98f5dec824d85c193040
parenta91aa538934138e02301212daad84a1aa240733e
Fix https://github.com/KhronosGroup/SPIRV-Tools/issues/1130

This addresses review feedback for the CCP implementation (which fixes
https://github.com/KhronosGroup/SPIRV-Tools/issues/889).

This adds more protection around the folding of instructions that would
not be supported by the folder.
source/opt/ccp_pass.cpp
source/opt/constants.h
source/opt/fold.cpp
source/opt/fold.h
source/opt/propagator.h