Quantum cohomology and intersection cohomology