- Mar 21, 2018
-
-
Craig Topper authored
llvm-svn: 328071
-
Craig Topper authored
Summary: This code previously had a SmallVector of std::pairs containing an unsigned and another SmallVector. The outer vector was using the unsigned effectively as a key to decide which SmallVector to add into. So each time something new needed to be added the out vector needed to be scanned. If it wasn't found a new entry needed to be added to be added. This sounds very much like a map, but the next loop iterates over the outer vector to get a deterministic order. We can simplify this code greatly if use SmallMapVector instead. This uses more stack space since we now have a vector and a map, but the searching and creating new entries all happens behind the scenes. It should also make the search more efficient though usually there are only a few entries so that doesn't matter much. We could probably get determinism by just using std::map which would iterate over the unsigned key, but that would generate different output from what we get with the current implementation. Reviewers: RKSimon, dblaikie Reviewed By: dblaikie Subscribers: llvm-commits Differential Revision: https://reviews.llvm.org/D44711 llvm-svn: 328070
-
Petr Hosek authored
This reverts commit r328060 because a test that was inteded to run on Windows but never ran before due to the missing config initialization is now being executed and is failing. llvm-svn: 328069
-
Rafael Espindola authored
llvm-svn: 328068
-
Artem Dergachev authored
It seems that the refactoring was causing a functional change and some warnings have disappeared. llvm-svn: 328067
-
Artem Dergachev authored
r326249 wasn't quite enough because we often run out of inlining stack depth limit and for that reason fail to see the atomics we're looking for. Add a more straightforward false positive suppression that is based on the name of the class. I.e. if we're releasing a pointer in a destructor of a "something shared/intrusive/reference/counting something ptr/pointer something", then any use-after-free or double-free that occurs later would likely be a false positive. rdar://problem/38013606 Differential Revision: https://reviews.llvm.org/D44281 llvm-svn: 328066
-
David Blaikie authored
Support depends on llvm-c (a few typedefs, macros, etc - Types.h, Disassembler.h, and TargetMachine.h. This could be done the other way - those macros/typedefs/etc could be moved into Support and used from llvm-c instead. If someone feels that's a better direction to go, happy to discuss it/try it out/etc. llvm-svn: 328065
-
Marshall Clow authored
llvm-svn: 328064
-
Eugene Zelenko authored
[Analysis] Fix some Clang-tidy modernize and Include What You Use warnings; other minor fixes (NFC). llvm-svn: 328063
-
Davide Italiano authored
New tests should run the make syntax voodoo $@ and $< instead of hardcoding the names. We should also document how to write one, it's on my list. llvm-svn: 328062
-
Craig Topper authored
Also restrict to port 0 and 1 for SkylakeClient. It looks like the scheduler models don't account for client not having a full vector ALU on port 5 like server. Fixes PR36808. llvm-svn: 328061
-
Julie Hockett authored
Adding the config initialization to clang-tools-extra so that tests that use REQUIRES, UNSUPPORTED, and XFAIL based on platform or target triple work properly. Differential Revision: https://reviews.llvm.org/D44708 llvm-svn: 328060
-
Marshall Clow authored
llvm-svn: 328059
-
Philip Reames authored
Most basic possible test for the logic used by LICM. Also contains a speculative build fix for compiles which complain about a definition of a stuct K; followed by a declaration as class K; llvm-svn: 328058
-
Derek Schuff authored
The tests compile after r328049 llvm-svn: 328057
-
Philip Reames authored
(Currently showing without, will enable and check in diff to show impact) llvm-svn: 328056
-
Philip Reames authored
Next step is to actually merge the implementations and get both implementations tested through the new printer. llvm-svn: 328055
-
Marshall Clow authored
llvm-svn: 328054
-
Bruno Cardoso Lopes authored
When skipping building the module for a private framework module, LangOpts.CurrentModule isn't enough for implict modules builds; for instance, in case a private module is built while building a public one, LangOpts.CurrentModule doesn't reflect the -fmodule-name being passed down, but instead the module name which triggered the build. Store the actual -fmodule-name in LangOpts.ModuleName and actually check a name was provided during compiler invocation in order to skip building the private module. rdar://problem/38434694 llvm-svn: 328053
-
Simon Pilgrim authored
As discussed on D44687, there was no need for 2 separate for loops for collecting the Regex and then matching against instructions. llvm-svn: 328052
-
Erich Keane authored
llvm-svn: 328051
-
Rafael Espindola authored
It is always identical to RuntimeCC. llvm-svn: 328050
-
Derek Schuff authored
The default thread model for wasm is single, and in this mode thread-local global variables can be lowered identically to non-thread-local variables. Differential Revision: https://reviews.llvm.org/D44703 llvm-svn: 328049
-
Rafael Espindola authored
We were just missing test coverage for this. llvm-svn: 328048
-
Benjamin Kramer authored
llvm-svn: 328047
-
Jonathan Peyton authored
Added settings code to read OMP_TARGET_OFFLOAD environment variable. Added target-offload-var ICV as __kmp_target_offload, set via OMP_TARGET_OFFLOAD, if available, otherwise defaulting to DEFAULT. Valid values for the ICV are specified as enum values {0,1,2} for disabled, default, and mandatory. An internal API access function __kmpc_get_target_offload is provided. Patch by Terry Wilmarth Differential Revision: https://reviews.llvm.org/D44577 llvm-svn: 328046 -
Simon Pilgrim authored
As noticed on D44687, these already match the WriteFMA def so can be removed. llvm-svn: 328045
-
Eugene Zelenko authored
llvm-svn: 328044
-
Craig Topper authored
Unless Ded has some many I don't know about. llvm-svn: 328043
-
Shoaib Meenai authored
The inline assembly generated for the ARC autorelease elision marker must have a funclet token if it's emitted inside a funclet, otherwise the inline assembly (and all subsequent code in the funclet) will be marked unreachable by WinEHPrepare. Note that this only applies for the non-O0 case, since at O0, clang emits the autorelease elision marker itself rather than deferring to the backend. The fix for clang is handled in a separate change. Differential Revision: https://reviews.llvm.org/D44641 llvm-svn: 328042
-
Benjamin Kramer authored
No need to pay for this on program startup, and also no need to destroy it on process end. llvm-svn: 328041
-
Rafael Espindola authored
llvm-svn: 328040
-
Martin Storsjo authored
Mingw uses the same stack protector functions as GCC provides on other platforms as well. Patch by Valentin Churavy! Differential Revision: https://reviews.llvm.org/D27296 llvm-svn: 328039
-
Abderrazek Zaafrani authored
https://reviews.llvm.org/D44591 llvm-svn: 328038
-
Kevin Enderby authored
term sections from .o files to look to see if the pointers have a relocation entry and if so print the symbol name from the relocation entry. If not fall back to the existing code and use the pointer value to look up that value in the symbol table. rdar://38337506 llvm-svn: 328037
-
Rafael Espindola authored
This is another case where there is special logic for adding dllimport and so we cannot use setGVProperties. llvm-svn: 328036
-
Abderrazek Zaafrani authored
https://reviews.llvm.org/D44591 llvm-svn: 328035
-
Craig Topper authored
llvm-svn: 328034
-
Craig Topper authored
Both vectors contain unsigned so we can just use append to do the copying. Not only is this shorter, but it should be able to predict the final size and only grow the vector once if needed. llvm-svn: 328033
-
Craig Topper authored
llvm-svn: 328032
-