Stop recursion if there are multiple loads with different memory inputs in the tree. Reviewed-by: kvn, vlivanov