revert 666434911fb ("fix too eager constant variable optimization"), will try another approach suggested on mesa-dev
fix too eager constant variable optimization v2; mark function input parameters as being assigned to