- Feb 25, 2014
-
-
Chandler Carruth authored
the pointer adjustment code. This is the primary code path that creates totally new instructions in SROA and being able to lump them based on the pointer value's name for which they were created causes *significantly* fewer name collisions and general noise in the debug output. This is particularly significant because it is making it much harder to track down instability in the output of SROA, as name de-duplication is a totally harmless form of instability that gets in the way of seeing real problems. The new fancy naming scheme tries to dig out the root "pre-SROA" name for pointer values and associate that all the way through the pointer formation instructions. Digging out the root is important to prevent the multiple iterative rounds of SROA from just layering too much cruft on top of cruft here. We already track the layers of SROAs iteration in the alloca name prefix. We don't need to duplicate it here. Should have no functionality change, and shouldn't have any really measurable impact on NDEBUG builds, as most of the complex logic is debug-only. llvm-svn: 202139
-
Tim Northover authored
These seem to be supported by GCC, and do make sense architecturally so we should probably have them. llvm-svn: 202138
-
Tim Northover authored
llvm-svn: 202137
-
Chandler Carruth authored
PHI-pointer builder, just copy the builder and clobber the obvious fields. llvm-svn: 202136
-
Chandler Carruth authored
using OldPtr more heavily. Lots of this code was written before the rewriter had an OldPtr member setup ahead of time. There are already asserts in place that should ensure this doesn't change any functionality. llvm-svn: 202135
-
Chandler Carruth authored
llvm-svn: 202134
-
David Majnemer authored
This comment survived the transition from ForceInline to InlineAlways, fix it. llvm-svn: 202133
-
Kostya Serebryany authored
llvm-svn: 202132
-
David Majnemer authored
The __forceinline keyword's semantics are now recast as AlwaysInline and the kw___forceinline token has its language mode set for KEYMS. This preserves the semantics of the previous implementation but with less duplication of code. llvm-svn: 202131
-
Nico Rieck authored
llvm-svn: 202130
-
Chandler Carruth authored
the break statement, not just think it to yourself.... No idea how this worked at all, much less survived most bots, my bootstrap, and some bot bootstraps! The Polly one didn't survive, and this was filed as PR18959. I don't have a reduced test case and honestly I'm not seeing the need. What we probably need here are better asserts / debug-build behavior in SmallPtrSet so that this madness doesn't make it so far. llvm-svn: 202129
-
Kostya Serebryany authored
llvm-svn: 202128
-
Renato Golin authored
llvm-svn: 202127
-
Renato Golin authored
llvm-svn: 202126
-
Renato Golin authored
llvm-svn: 202125
-
Kostya Serebryany authored
[asan] Fix for size_t in Asan's new and delete operators on x64 FreeBSD in 32-bit mode, only for FreeBSD <= 9.2; patch by Viktor Kutuzov llvm-svn: 202124
-
Kostya Serebryany authored
llvm-svn: 202123
-
Alexey Samsonov authored
llvm-svn: 202122
-
David Majnemer authored
Add documentation for these attributes, it includes: - Motivation for their existence. - Examples on how to use them. - Examples on how to misuse them. llvm-svn: 202121
-
Kostya Serebryany authored
llvm-svn: 202120
-
Alexey Samsonov authored
llvm-svn: 202119
-
Kostya Serebryany authored
[sanitizer] fix epoch handling in deadlock detector (before the fix, we could have had edges from locks in the previous epoch to locks in the current epoch) llvm-svn: 202118
-
David Majnemer authored
llvm-svn: 202117
-
Alp Toker authored
r202112 fixed the generated output which will hopefully go away soon. llvm-svn: 202116
-
Ted Kremenek authored
llvm-svn: 202115
-
Ted Kremenek authored
The FormatSecurity warning group does not need to be a sub-group of the FormatNonLiteral group. Patch by Zach Davis! llvm-svn: 202114
-
Rui Ueyama authored
llvm-svn: 202113
-
David Majnemer authored
llvm-svn: 202112
-
Shankar Easwaran authored
llvm-svn: 202111
-
Jim Ingham authored
unexpectedly closed. llvm-svn: 202110
-
Ben Langmuir authored
This allows the 'name' field to contain a path, like { 'type': 'directory', 'name': '/path/to/dir', 'contents': [ ... ] } which not only simplifies reading and writing these files (for humans), but makes it possible to easily modify locations via textual replacement, which would not have worked in the old scheme. E.g. sed s:<ROOT>:<NEW ROOT> llvm-svn: 202109 -
Alp Toker authored
llvm-svn: 202108
-
Alp Toker authored
llvm-svn: 202107
-
Chandler Carruth authored
sorting it. This helps uncover latent reliance on the original ordering which aren't guaranteed to be preserved by std::sort (but often are), and which are based on the use-def chain orderings which also aren't (technically) guaranteed. Only available in C++11 debug builds, and behind a flag to prevent noise at the moment, but this is generally useful so figured I'd put it in the tree rather than keeping it out-of-tree. llvm-svn: 202106
-
Argyrios Kyrtzidis authored
[libclang] Introduce libclang APIs for creating a buffer with a JSON virtual file overlay description. The current API only supports adding 'virtual file path' -> 'real file path' mappings. rdar://15986708 llvm-svn: 202105
-
Argyrios Kyrtzidis authored
llvm-svn: 202104
-
Chandler Carruth authored
the destination operand or source operand of a memmove. It so happens that it was impossible for SROA to try to rewrite self-memmove where the operands are *identical*, because either such a think is volatile (and we don't rewrite) or it is non-volatile, and we don't even register it as a use of the alloca. However, making the 'IsDest' test *rely* on this subtle fact is... Very confusing for the reader. We should use the direct and readily available test of the Use* which gives us concrete information about which operand is being rewritten. No functionality changed, I hope! ;] llvm-svn: 202103
-
Chandler Carruth authored
These complement many of the existing accessors and make it significantly easier to write code which needs to poke at the underlying Use without hard coding the operand number at which it resides for a particular instruction. No functionality changed of course. llvm-svn: 202102
-
Shankar Easwaran authored
llvm-svn: 202101
-
Shankar Easwaran authored
llvm-svn: 202100
-