This study numerically investigates the mechanisms for generating and suppressing the leading edge vortex (LEV) in a vaned diffuser of a centrifugal compressor, aiming to enhance the compressor's stable operating range. Detailed analyses focus on the mechanisms of the rotating stall and the initiation process of the LEV. Notably, the end wall contouring method is applied to vaned diffuser to suppress the LEV and improve diffuser stability. The suppression mechanisms of the LEV are examined to deepen the understanding of stability enhancement mechanisms. Results demonstrate that, under stall conditions, the vaned diffuser experiences two-cell rotating stalls moving opposite to the impeller rotation direction, each rotating at approximately 12% of impeller rotation speed. The formation of diffuser stall is attributed to a longitudinal vortex developing from the LEV and causing the passage blockage. The increasing spanwise distortion of leading edge (LE) incidence angles and circumferential distortion of static pressures at the diffuser inlet promote the evolution of the longitudinal vortex from LEV. The end wall contouring of vaned diffuser effectively enhances the compressor's stable operating range by 15.10% and 8.90% toward lower flow rate conditions for machine Mach numbers 1.3 and 1.2, respectively. At near-stall points, the end wall contoured diffuser reduces spanwise distortion of LE incidence angles and circumferential distortion of static pressures at the diffuser inlet, mitigates the LE flow separation and corner separation, suppresses the generation and development of the LEV, delays the onset of rotating stall in vaned diffuser, and thereby improves the stable operating range of centrifugal compressor stage.