GCD2: A Globally Optimizing Compiler for Mapping DNNs to Mobile DSPs