Text this: Efficient Reordering of Multiple Memory Operations in a Multithreaded Program