mirror of
https://github.com/RPCS3/llvm-mirror.git
synced 2024-12-26 13:36:28 +00:00
Now that PR633 is implemented, the CBE can know to emit _setjmp/_longjmp
when available. This speeds up hexxagon from 18.61s to 16.61s with the CBE on PPC Mac OS (for reference, LLC is 15.48s and GCC is 23.35s). llvm-svn: 28697
This commit is contained in:
parent
bfbee64ecf
commit
3dbb345389
@ -1779,11 +1779,17 @@ void CWriter::visitCallInst(CallInst &I) {
|
||||
Out << ')';
|
||||
return;
|
||||
case Intrinsic::setjmp:
|
||||
#if defined(HAVE__SETJMP) && defined(HAVE__LONGJMP)
|
||||
Out << "_"; // Use _setjmp on systems that support it!
|
||||
#endif
|
||||
Out << "setjmp(*(jmp_buf*)";
|
||||
writeOperand(I.getOperand(1));
|
||||
Out << ')';
|
||||
return;
|
||||
case Intrinsic::longjmp:
|
||||
#if defined(HAVE__SETJMP) && defined(HAVE__LONGJMP)
|
||||
Out << "_"; // Use _longjmp on systems that support it!
|
||||
#endif
|
||||
Out << "longjmp(*(jmp_buf*)";
|
||||
writeOperand(I.getOperand(1));
|
||||
Out << ", ";
|
||||
|
Loading…
Reference in New Issue
Block a user