- Aug 21, 2017
-
-
George Rimar authored
parallel_for_each_n splits a given task into small pieces of tasks and then passes them to background threads managed by a thread pool to process them in parallel. TaskGroup then waits for all tasks to be done, which is done by TaskGroup's destructor. In the previous code, all tasks were passed to background threads, and the main thread just waited for them to finish their jobs. This patch changes the logic so that the main thread processes a task just like other worker threads instead of just waiting for workers. This patch improves the performance of parallel_for_each_n for a task which is too small that we do not split it into multiple tasks. Previously, such task was submitted to another thread and the main thread waited for its completion. That involves multiple inter-thread synchronization which is not cheap for small tasks. Now, such task is processed by the main thread, so no inter-thread communication is necessary. Differential revision: https://reviews.llvm.org/D36607 llvm-svn: 311312
-
George Rimar authored
[ELF] - Do not segfault when doing logical and/or operations on symbols that have no output sections. Previously we would crash on samples from testcase, because were trying to access zero pointer to output section. Differential revision: https://reviews.llvm.org/D36145 llvm-svn: 311311
-
George Rimar authored
Previously last 4 bytes of executable loads were not filled with trap instructions, patch fixes this bug. Differential revision: https://reviews.llvm.org/D36262 llvm-svn: 311310
-
Coby Tayree authored
Allow those prefixes on assembly code Differential Revision: https://reviews.llvm.org/D36845 llvm-svn: 311309
-
Craig Topper authored
[AVX-512] Don't change which instructions we use for unmasked subvector broadcasts when AVX512DQ is enabled. There's no functional difference between the AVX512DQ instructions if we're not masking. This change unifies test checks and removes extra isel entries. Similar was done for subvector insert and extracts recently. llvm-svn: 311308
-
Craig Topper authored
llvm-svn: 311307
-
Dean Michael Berris authored
Summary: When extracting the instrumentation map from a binary, we should be able to recognize the new kinds of instrumentation sleds we've been emitting with the compiler using -fxray-instrument. This change adds a test for all the kinds of sleds we currently support (sans the tail-call sled, which is a bit harder to force in a simple prebuilt input). Reviewers: kpw, dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D36819 llvm-svn: 311305
-
Chandler Carruth authored
This causes LLVM to assert fail on PPC64 and crash / infloop in other cases. Filed http://llvm.org/PR34248 with reproducer attached. llvm-svn: 311304
-
Craig Topper authored
llvm-svn: 311303
-
Michael Kruse authored
The pattern recognition for MatMul is restrictive. The number of "disjuncts" in the isl_map containing constraint information was previously required to be 1 (as per isl_*_coalesce - which should ideally produce a domain map with a single disjunct, but does not under some circumstances). This was changed and made more flexible. Contributed-by:
Annanay Agarwal <cs14btech11001@iith.ac.in> Differential Revision: https://reviews.llvm.org/D36460 llvm-svn: 311302
-
Johannes Altmanninger authored
llvm-svn: 311301
-
Craig Topper authored
[AVX512] Add a test to check what happens when a load is referenced by two different masked scalar intrinsics with the same op inputs, but different masking node. We're missing some single use checks in the sse_load_f32/f64 handling that cause us to replicate the load. llvm-svn: 311300
-
Kuba Mracek authored
llvm-svn: 311299
-
Kuba Mracek authored
llvm-svn: 311298
-
Craig Topper authored
llvm-svn: 311297
-
Kuba Mracek authored
llvm-svn: 311296
-
Benjamin Kramer authored
No functionality change intended. llvm-svn: 311295
-
-
-
Johannes Altmanninger authored
Summary: Use qualified names if available. Reviewers: arphaman Subscribers: klimek Differential Revision: https://reviews.llvm.org/D36186 llvm-svn: 311292
-
- Aug 20, 2017
-
-
Benjamin Kramer authored
llvm-svn: 311291
-
Benjamin Kramer authored
No functionality change intended. llvm-svn: 311290
-
Siddharth Bhat authored
We now load the function pointer for `cuMemAllocManaged` dynamically, so it should be possible to compile `GPUJIT` on non-CUDA systems again. It should now be possible to link on non-cuda systems again. Thanks to Philipp Schaad for noticing this inconsitency. Differential Revision: https://reviews.llvm.org/D36921 llvm-svn: 311289
-
Benjamin Kramer authored
No functionality change intended. llvm-svn: 311288
-
Benjamin Kramer authored
There's no reason to destroy them in a global destructor. llvm-svn: 311287
-
Benjamin Kramer authored
llvm-svn: 311286
-
Elena Demikhovsky authored
Store operation takes 2 UOps on X86 processors. The exact cost calculation affects several optimization passes including loop unroling. This change compensates performance degradation caused by https://reviews.llvm.org/D34458 and shows improvements on some benchmarks. Differential Revision: https://reviews.llvm.org/D35888 llvm-svn: 311285
-
Johannes Altmanninger authored
Summary: Add separate tests for the top-down and the bottom-up phase, as well as one for the optimal matching. Reviewers: arphaman Subscribers: klimek Differential Revision: https://reviews.llvm.org/D36185 llvm-svn: 311284
-
Aditya Kumar authored
llvm-svn: 311283
-
Aditya Kumar authored
Added a separate metadata to indicate when the loop has already been vectorized instead of setting width and count to 1. Patch written by Divya Shanmughan and Aditya Kumar Differential Revision: https://reviews.llvm.org/D36220 llvm-svn: 311281
-
Johannes Altmanninger authored
Summary: Ignore macros and implicit AST nodes, as well as anything outside of the main source file. Reviewers: arphaman Subscribers: klimek Differential Revision: https://reviews.llvm.org/D36184 llvm-svn: 311280
-
Igor Breger authored
Summary: Support call ABI. For now only Linux C and X86_64_SysV calling conventions supported. Variadic function not supported. Reviewers: zvi, guyblank, oren_ben_simhon Reviewed By: oren_ben_simhon Subscribers: rovka, kristof.beyls, llvm-commits Differential Revision: https://reviews.llvm.org/D34602 llvm-svn: 311279
-
Igor Breger authored
Usually this case generated by ABI lowering, it requare to performe trancate/anyext. llvm-svn: 311278
-
Alex Bradbury authored
llvm-svn: 311277
-
Alex Bradbury authored
Replace with report_fatal_error. llvm-svn: 311276
-
Alex Bradbury authored
llvm-svn: 311275
-
Sam Elliott authored
Reverting due to clang build failure llvm-svn: 311274
-
Sam Elliott authored
Summary: This updates the Inliner to only add a single Optimization Remark when Inlining, rather than an Analysis Remark and an Optimization Remark. Fixes https://bugs.llvm.org/show_bug.cgi?id=33786 Reviewers: anemet, davidxl, chandlerc Reviewed By: anemet Subscribers: haicheng, fhahn, mehdi_amini, dblaikie, llvm-commits, eraman Differential Revision: https://reviews.llvm.org/D36054 llvm-svn: 311273
-
Igor Breger authored
Differential Revision: https://reviews.llvm.org/D34978 llvm-svn: 311272
-
Sam Elliott authored
Summary: The New Pass Manager infrastructure was forgetting to keep around the optimization remark yaml file that the compiler might have been producing. This meant setting the option to '-' for stdout worked, but setting it to a filename didn't give file output (presumably it was deleted because compilation didn't explicitly keep it). This change just ensures that the file is kept if compilation succeeds. So far I have updated one of the optimization remark output tests to add a version with the new pass manager. It is my intention for this patch to also include changes to all tests that use `-opt-remark-output=` but I wanted to get the code patch ready for review while I was making all those changes. Fixes https://bugs.llvm.org/show_bug.cgi?id=33951 Reviewers: anemet, chandlerc Reviewed By: anemet, chandlerc Subscribers: javed.absar, chandlerc, fhahn, llvm-commits Differential Revision: https://reviews.llvm.org/D36906 llvm-svn: 311271
-