<div dir="ltr"><div>Hello, LLVMDev.</div><div><br></div><div>Given an alloca in the entry block, I want to find all its uses after which it is used no more. I tried naive approach by recursively iterating over uses(), but faced 2 problems:</div><div><br></div><div>1. I have to take into account "indirect" uses introduced by stores/loads.</div><div>2. In case of loops the use chain I built become circular.</div><div><br></div><div>I came up with an idea by tracking current "use path", but wanted to ask if there is a LLVM analysis for this first.</div><div><br></div><div>Thanks in advance.<br></div></div>