  We show a coincidence of index of rigidity of differential equations with
irregular singularities on a compact Riemann surface and Euler characteristic
of the associated spectral curves which are recently called irregular spectral
curves. Also we present a comparison of local invariants, so called Milnor
formula which links the Komatsu-Malgrange irregularity of differential
equations and Milnor number of the spectral curves.
