flyingforyou added inline comments. ================ Comment at: lib/CodeGen/MachineInstr.cpp:884 @@ +883,3 @@ + MemEnd); + return std::make_pair(MemBegin, MemEnd-MemBegin); +} ---------------- We might update `NumMemRefs` in this function. Right? http://reviews.llvm.org/D15757