Compiler: remove dependency on optcomp