Given an instruction and the basic block that it's in, is there an easy way to tell if the operands are ever referenced after the instruction?<br><br>For example, if i have <br>...<br>%mul = mul nsw i32 %a, %val <br>%add = add nsw i32 %b, %val<br>
...<br><br>And I'm iterating through this basic block, can I tell when I get to the multiply instruction that another instruction is going to be using %val?<br><br>Since I'm running my code through reg2mem, I don't really care much about other basicblocks (anything outside the basicblock should have an eliminated phi instruction so it will be pulled from memory anyways).<br>