On the Near-Optimality of List Scheduling Heuristics for Local and Global Instruction Scheduling