<html><head><base href="x-msg://59/"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><br><div><div>On May 19, 2011, at 11:22 PM, Jonas Paulsson wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><span class="Apple-style-span" style="border-collapse: separate; font-family: Optima; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: 2; text-indent: 0px; text-transform: none; white-space: normal; widows: 2; word-spacing: 0px; -webkit-border-horizontal-spacing: 0px; -webkit-border-vertical-spacing: 0px; -webkit-text-decorations-in-effect: none; -webkit-text-size-adjust: auto; -webkit-text-stroke-width: 0px; font-size: medium; "><div class="hmmessage" style="font-size: 10pt; font-family: Tahoma; ">I see, thanks.<span class="Apple-converted-space"> </span><br><br>I used to work with GCC, which has an SSA-property verification run after each pass. It is surprising to find that LLVM does not check this!<br></div></span></blockquote><div><br></div></div>It should. Here is how you can fix it:<div><br></div><div>- Add a flag to MachineRegisterInfo: isSSA(). It should be true initially and cleared by the 2-addr and phi-elim passes.</div><div><br></div><div>- Add code to MachineVerifier.cpp that checks for multiple virtual register defs when MRI->isSSA() is true.</div><div><br></div><div>Then send your patches to llvm-commits!</div><div><br></div><div>Thanks,</div><div><br></div><div>/jakob</div><div><br></div></body></html>