Fix bug: should collect schedule info before dependence analysis