<div>Hello LLVMDevs,<br></div><div>Should following code in bool LiveRangeCalc::findReachingDefs() check for isConstantPhysReg()?<br></div><div>Or there is a code which should prevent error below to hit for constant physical register?<br></div><div><br></div><div>  2     if (Register::isPhysicalRegister(PhysReg) && !MBB->isLiveIn(PhysReg)) {<br></div><div>  1       MBB->getParent()->verify();<br></div><div>225       const TargetRegisterInfo *TRI = MRI->getTargetRegisterInfo();<br></div><div>  1       errs() << "The register " << printReg(PhysReg, TRI)<br></div><div>  2              << " needs to be live in to " << printMBBReference(*MBB)<br></div><div>  3              << ", but is missing from the live-in list.\n";<br></div><div>  4       report_fatal_error("Invalid global physical register");<br></div><div>  5     }<br></div><div><br></div><div>Thanks!<br></div><div>GI Bison.<br></div><div><br></div><div class="protonmail_signature_block"><div class="protonmail_signature_block-user protonmail_signature_block-empty"><br></div><div class="protonmail_signature_block-proton">Sent with <a href="https://protonmail.com" target="_blank">ProtonMail</a> Secure Email.<br></div></div><div><br></div>