The purpose of this study is to determine whether preoperative loading dose atorvastatin can prevent perioperative myocardial infarction during angiography and main adverse cardiac events 1 month after operation in stable angina, unstable angina and acute non-ST-segment elevation myocardial infarction patients undergoing elective coronary angiography and PCI, and determine whether its mechanisms are associated with microcirculation resistance.