mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-22 13:29:44 +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). git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@28697 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
parent
001db453f5
commit
475c55393a
@ -1779,11 +1779,17 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
Out << ')';
|
Out << ')';
|
||||||
return;
|
return;
|
||||||
case Intrinsic::setjmp:
|
case Intrinsic::setjmp:
|
||||||
|
#if defined(HAVE__SETJMP) && defined(HAVE__LONGJMP)
|
||||||
|
Out << "_"; // Use _setjmp on systems that support it!
|
||||||
|
#endif
|
||||||
Out << "setjmp(*(jmp_buf*)";
|
Out << "setjmp(*(jmp_buf*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ')';
|
Out << ')';
|
||||||
return;
|
return;
|
||||||
case Intrinsic::longjmp:
|
case Intrinsic::longjmp:
|
||||||
|
#if defined(HAVE__SETJMP) && defined(HAVE__LONGJMP)
|
||||||
|
Out << "_"; // Use _longjmp on systems that support it!
|
||||||
|
#endif
|
||||||
Out << "longjmp(*(jmp_buf*)";
|
Out << "longjmp(*(jmp_buf*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
|
@ -1779,11 +1779,17 @@ void CWriter::visitCallInst(CallInst &I) {
|
|||||||
Out << ')';
|
Out << ')';
|
||||||
return;
|
return;
|
||||||
case Intrinsic::setjmp:
|
case Intrinsic::setjmp:
|
||||||
|
#if defined(HAVE__SETJMP) && defined(HAVE__LONGJMP)
|
||||||
|
Out << "_"; // Use _setjmp on systems that support it!
|
||||||
|
#endif
|
||||||
Out << "setjmp(*(jmp_buf*)";
|
Out << "setjmp(*(jmp_buf*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ')';
|
Out << ')';
|
||||||
return;
|
return;
|
||||||
case Intrinsic::longjmp:
|
case Intrinsic::longjmp:
|
||||||
|
#if defined(HAVE__SETJMP) && defined(HAVE__LONGJMP)
|
||||||
|
Out << "_"; // Use _longjmp on systems that support it!
|
||||||
|
#endif
|
||||||
Out << "longjmp(*(jmp_buf*)";
|
Out << "longjmp(*(jmp_buf*)";
|
||||||
writeOperand(I.getOperand(1));
|
writeOperand(I.getOperand(1));
|
||||||
Out << ", ";
|
Out << ", ";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user