simplify the memory branch dependency