<div dir="ltr">Hi,<div><br></div><div>The RoboVM project recently upgraded from LLVM 3.3 to 3.4 and with the new version we are sometimes seeing "ran out of registers during register allocation" errors when targeting x86 32-bit that we haven't seen before. Nothing has changed in our bitcode generator. I have attached an IR file which can be used to reproduce this problem. The problem occurs with -O2 and -disable-fp-elim specified.</div>
<div><br></div><div>Running llc from 3.3 works without problems:</div><div>$ ~/Downloads/clang+llvm-3.3-x86_64-apple-darwin12/bin/llc -mtriple i386-unknown-macosx -O2 -disable-fp-elim reg-alloc-test.ll<br></div><div><br></div>
<div>While llc from 3.4 fails:</div><div><div>$ ~/Downloads/clang+llvm-3.4-x86_64-apple-darwin10.9/bin/llc -mtriple i386-unknown-macosx -O2 -disable-fp-elim reg-alloc-test.ll</div><div>LLVM ERROR: ran out of registers during register allocation</div>
</div><div><br></div><div>I haven't been able to test this with the latest trunk but I got the same error when trying with the 3.4.1 branch.</div><div><br></div><div>Has anyone else seen this? Is it a known bug? Or should I report it?</div>
<div><br></div><div>Regards,</div><div>Niklas</div></div>