<div dir="ltr"><span style="font-size:12.8000001907349px">Hi,</span><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">In PromoteMemoryToRegister.cpp, it seems to rely on the fact that the only users of bitcast/GEP instruction are lifetime intrinsics (llvm.lifetime.start/end). I did some searching in llvm/test folder, it seems to be true.</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">However, by reading LLVM IR manual, I don't see any restriction stated on the possible user of bitcast/GEP instruction. So my question is who impose the restriction ? Is it Clang ?</div><div style="font-size:12.8000001907349px"><br></div><div style="font-size:12.8000001907349px">Regards</div><div class="" style="font-size:12.8000001907349px"><div id=":2vb" class="" tabindex="0"><img class="" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif">-Guoqing</div></div></div>