refine memory depencies analysis for loop

Signed-off-by: xiehuc <xiehuc@gmail.com>