- Jul 27, 2017
-
-
Reid Kleckner authored
Fixes PR33938 llvm-svn: 309198
-
Michael Kruse authored
A region statement's instruction list is always empty and ignored by the code generator. Don't give the impression that it means anything. llvm-svn: 309197
-
Michael Kruse authored
The instruction list is ignored for region statements, there is no reason to set it. llvm-svn: 309196
-
Richard Smith authored
The initializer for a static local variable cannot be hot, because it runs at most once per program. That's not quite the same thing as having a low branch probability, but under the assumption that the function is invoked many times, modeling this as a branch probability seems reasonable. For TLS variables, the situation is less clear, since the initialization side of the branch can run multiple times in a program execution, but we still expect initialization to be rare relative to non-initialization uses. It would seem worthwhile to add a PGO counter along this path to make this estimation more accurate in future. For globals with guarded initialization, we don't yet apply any branch weights. Due to our use of COMDATs, the guard will be reached exactly once per DSO, but we have no idea how many DSOs will define the variable. llvm-svn: 309195
-
Reid Kleckner authored
Fixes PR33932 llvm-svn: 309194
-
Konstantin Zhuravlyov authored
Differential Revision: https://reviews.llvm.org/D35900 llvm-svn: 309193
-
Hiroshi Yamauchi authored
llvm-svn: 309192
-
Meador Inge authored
This patch fixes a small issue with respect to how memory region names are parsed on output section descriptions. For example, consider: .text : { *(.text) } > rom That can also be written like: .text : { *(.text) } >rom The latter form is accepted by GNU LD and is fairly common. Differential Revision: https://reviews.llvm.org/D35920 llvm-svn: 309191 -
Reid Kleckner authored
This passes locally for me, which fails the overall lit test suite. I can't debug a passing test, but I will try to help debug the test when we get some failing logs. llvm-svn: 309190
-
Eric Beckmann authored
variable before each search so that they don't conflict. llvm-svn: 309189
-
Rui Ueyama authored
llvm-svn: 309188
-
Hans Wennborg authored
The warning fires on non-suspicious code in Chromium. Reverting until a solution is figured out. > Recommit r308327 2nd time: Add a warning for missing > '#pragma pack (pop)' and suspicious uses of '#pragma pack' in included files > > The first recommit (r308441) caused a "non-default #pragma pack value might > change the alignment of struct or union members in the included file" warning > in LLVM itself. This recommit tweaks the added warning to avoid warnings for > #includes that don't have any records that are affected by the non-default > alignment. This tweak avoids the previously emitted warning in LLVM. > > Original message: > > This commit adds a new -Wpragma-pack warning. It warns in the following cases: > > - When a translation unit is missing terminating #pragma pack (pop) directives. > - When entering an included file if the current alignment value as determined > by '#pragma pack' directives is different from the default alignment value. > - When leaving an included file that changed the state of the current alignment > value. > > rdar://10184173 > > Differential Revision: https://reviews.llvm.org/D35484 llvm-svn: 309186
-
Stanislav Mekhanoshin authored
Currently SI_IF results in a s_and_saveexec_b64 followed by s_xor_b64. The xor is used to extract only the changed bits. In case of a simple if region where the only use of that value is in the SI_END_CF to restore the old exec mask, we can omit the xor and perform an or of the exec mask with the original exec value saved by the s_and_saveexec_b64. Differential Revision: https://reviews.llvm.org/D35861 llvm-svn: 309185
-
Evandro Menezes authored
Change the order of a case and the description for Exynos Mx processors. llvm-svn: 309184
-
Evandro Menezes authored
Add the information for the scalar reciprocal square root approximation. llvm-svn: 309183
-
Rui Ueyama authored
I believe this compiles fine on all platforms, even on Windows. llvm-svn: 309182
-
Eric Beckmann authored
Reapply "Set a different var for checking I686, because LLVM_NATIVE_ARCH is" This reverts commit e7400d7cbc2b7539de3aa7a20adc8f4ee0cb7bef. llvm-svn: 309181
-
Leo Li authored
Summary: liblog is still required to create ubsan runtimes on Android when __ANDROID_API__ < 21. Reviewers: eugenis, vsk Subscribers: kubamracek, mgorny, pirama, srhines, llvm-commits Differential Revision: https://reviews.llvm.org/D35915 llvm-svn: 309180
-
Eric Beckmann authored
This reverts commit 38a6db6397364ee91b04afea2cdcb1b5b4d252bf. llvm-svn: 309179
-
Wei Ding authored
Differential Revision: http://reviews.llvm.org/D35146 llvm-svn: 309178
-
Eric Beckmann authored
overwritten. llvm-svn: 309177
-
Davide Italiano authored
Thanks to Peter for the report! llvm-svn: 309176
-
Martin Storsjo authored
Also handle overflow correctly in LDR/STR relocations. Even if the offset range of a 8 byte LDR instruction is 15 bit (even if the immediate itself is 12 bit) due to a 3 bit shift, only include up to 12 bits of offset after doing the relocation, by limiting the range of the immediate by the number of shifted bits. Differential Revision: https://reviews.llvm.org/D35792 llvm-svn: 309175
-
Davide Italiano authored
llvm-svn: 309174
-
Kostya Serebryany authored
llvm-svn: 309173
-
Matt Arsenault authored
These are not actually uniform values except in kernels. llvm-svn: 309172
-
Jakub Kuderski authored
llvm-svn: 309170
-
Eric Beckmann authored
libxml2.so is for 64 bit. llvm-svn: 309169
-
Jonathan Peyton authored
This change drops in KMP_DEVICE_THREAD_LIMIT to replace KMP_MAX_THREADS. It's possible there will eventually be a OMP_DEVICE_THREAD_LIMIT, and we need something to distinguish from OMP_THREAD_LIMIT, which is currently implemented incorrectly (the fix for that will be added soon in a separate patch). KMP_ALL_THREADS is deprecated here, but we can keep the "all" option on KMP_DEVICE_THREAD_LIMIT to support that functionality. KMP_DEVICE_THREAD_LIMIT now has priority over its deprecated rival KMP_ALL_THREADS. I also cleaned up some comments that incorrectly referred to non-existent kmp_max_threads variable instead of kmp_max_nth. I've left the name of where this setting eventually ends up as __kmp_max_nth, for now. This change does not change much in the way of functionality. It does NOT change OMP_THREAD_LIMIT. It's just cleaning up and setting up for that. Patch by Terry Wilmarth Differential Revision: https://reviews.llvm.org/D35860 llvm-svn: 309168
-
Tom Stellard authored
Reviewers: arsenm Reviewed By: arsenm Subscribers: kzhuravl, wdng, nhaehnle, yaxunl, rovka, kristof.beyls, igorb, dstuttard, tpr, t-tye, llvm-commits Differential Revision: https://reviews.llvm.org/D35127 llvm-svn: 309165
-
Michael Kruse authored
A PHI node's incoming block is the user of its operand, not the PHI's parent. Assuming the PHINode's parent being the user lead to the removal of a MemoryAccesses because its use was assumed to be inside of the SCoP. llvm-svn: 309164
-
Aditya Nandakumar authored
uses. Also splitting the buildSources part allows more overloads such as adding MachineOperands directly in the arguments for buildInstr. llvm-svn: 309163
-
Rafael Espindola authored
llvm-svn: 309162
-
Rafael Espindola authored
llvm-svn: 309161
-
Rafael Espindola authored
llvm-svn: 309160
-
Peter Collingbourne authored
This was a use-after-free waiting to happen. llvm-svn: 309159
-
Adam Nemet authored
Summary: This changes SimplifyLibCalls to use the new OptimizationRemarkEmitter API. In fact, as SimplifyLibCalls is only ever called via InstCombine, (as far as I can tell) the OptimizationRemarkEmitter is added there, and then passed through to SimplifyLibCalls later. I have avoided changing any remark text. This closes PR33787 Patch by Sam Elliott! Reviewers: anemet, davide Reviewed By: anemet Subscribers: davide, mehdi_amini, eraman, fhahn, llvm-commits Differential Revision: https://reviews.llvm.org/D35608 llvm-svn: 309158
-
Andrew V. Tischenko authored
This patch returns proper value to indicate the case when instruction throughput can't be calculated. Differential revision https://reviews.llvm.org/D35831 llvm-svn: 309156
-
Alexey Sotkin authored
Subscribers: cfe-commits, yaxunl, Anastasia Differential Revision: https://reviews.llvm.org/D35420 llvm-svn: 309155
-
Adrian Prantl authored
This is a better fix than r308708 for the problem introduced in r304020. It restores the skeleton CU testcases modified by that commit to their original form and most importantly ensures that frontend-generated skeleton CUs (such as used to point to Clang modules) come after the regular CUs. This broke for DICompileUnit nodes that don't have any immediate children because they are now constructed lazily instead of the order in which they are listed in !llvm.dbg.cu. After this commit we still don't guarantee that order, but we do guarantee that empty skeletons come last. Shipping versions of LLDB are very sensitive to the ordering of CUs. I'll track a fix for LLDB to be more permissive separately. This fixes a test failure in the LLDB testsuite. rdar://problem/33357252 llvm-svn: 309154
-