1. A computer program product for replacing an atomic sequence, the computer program product comprising: a tangible storage medium readable by a processing circuit and storing instructions for execution by the processing circuit for performing a method comprising: receiving, by the processing circuit, the atomic sequence; detecting, by the processing circuit, the atomic sequence; and generating, by the processing circuit, an internal atomic operation to replace the atomic sequence.