Changes in directory llvm/lib/Target/CBackend:
Writer.cpp updated: 1.264 -> 1.265 --- Log message: Now that PR633: http://llvm.cs.uiuc.edu/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). --- Diffs of the changes: (+6 -0) Writer.cpp | 6 ++++++ 1 files changed, 6 insertions(+) Index: llvm/lib/Target/CBackend/Writer.cpp diff -u llvm/lib/Target/CBackend/Writer.cpp:1.264 llvm/lib/Target/CBackend/Writer.cpp:1.265 --- llvm/lib/Target/CBackend/Writer.cpp:1.264 Fri Jun 2 13:54:01 2006 +++ llvm/lib/Target/CBackend/Writer.cpp Tue Jun 6 16:45:47 2006 @@ -1779,11 +1779,17 @@ 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 << ", "; _______________________________________________ llvm-commits mailing list llvm-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits