Finding AllocaInst inside loop

Hi Everyone,

I am trying to find out all AllocaInst inside loop. But the problem is due
to code motion AllocaInst is moved outside the loop.

I tried -O0 but the problem remains.

Can some please tell me where I am doing wrong or there is some other
approach to catch AllocaInst inside the loop.