Skip SpecConstants in CCP.
authorSteven Perron <stevenperron@google.com>
Sat, 13 Jan 2018 05:28:40 +0000 (00:28 -0500)
committerSteven Perron <stevenperron@google.com>
Mon, 15 Jan 2018 14:53:23 +0000 (09:53 -0500)
commit6cc772c3ce358193aac132a2c798e79e21aec0ad
treee61d2e0470dc858796e866dacaa6cf6a161e23df
parentba017f79b215d0f35d08d9d10b46a8290152d6d1
Skip SpecConstants in CCP.

At the moment specialization constants look like constants to ccp.  This
causes a problem because they are handled differently by the constant
manager.

I choose to simply skip over them, and not try to add them to the value
table.  We can do specialization before ccp if we want to be able to
propagate these values.

Fixes #1199.
source/opt/ccp_pass.cpp
source/opt/instruction.h
test/opt/ccp_test.cpp