Created
June 25, 2014 17:56
-
-
Save ArchRobison/d3601433d160b05ed5ee to your computer and use it in GitHub Desktop.
patch to LLVM 3.3 to work around Intel VTune Amplifier bug. For Julia, apply to julia/deps/llvm-3.3/lib/ExecutionEngine/IntelJITEvents/IntelJITEventListener.cpp
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| --- IntelJITEventListener.cpp.orig 2014-05-15 13:45:30.079547337 -0500 | |
| +++ IntelJITEventListener.cpp 2014-05-15 13:46:43.647359854 -0500 | |
| @@ -174,6 +174,11 @@ | |
| FunctionMessage.line_number_table = 0; | |
| } | |
| +#define AMPLIFIER_BUG_WORKAROUND 1 | |
| +#if AMPLIFIER_BUG_WORKAROUND | |
| + for( unsigned i=FunctionMessage.line_number_size; i-->0; ) | |
| + FunctionMessage.line_number_table[i].LineNumber = i>0 ? FunctionMessage.line_number_table[i-1].LineNumber : 0; | |
| +#endif | |
| Wrapper->iJIT_NotifyEvent(iJVM_EVENT_TYPE_METHOD_LOAD_FINISHED, | |
| &FunctionMessage); | |
| MethodIDs[FnStart] = FunctionMessage.method_id; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment