fix a bug that insert unsolved with wrong place

Signed-off-by: xiehuc <xiehuc@gmail.com>
LoopSimplify and SlashShrink use ResolverPass

with cached result, would speed up, and share common data

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