- Dec 29, 2021
-
-
Fangrui Song authored
-
Kyungwoo Lee authored
Add the option comment in .rst. Reviewed By: ellis Differential Revision: https://reviews.llvm.org/D116348
-
-
Mike Hommey authored
References from thread-local variable sections are treated as offsets relative to the start of the thread-local data memory area, which is initialized via copying all the TLV data sections (which are all contiguous). If later data sections require a greater alignment than earlier ones, the offsets of data within those sections won't be guaranteed to aligned unless we normalize alignments. We therefore use the largest alignment for all TLV data sections. Reviewed By: #lld-macho, int3 Differential Revision: https://reviews.llvm.org/D116263
-
modimo authored
D43002 introduced a test debug-info-objname.cpp that outputted the current compiler version into CodeView. Internally we appended a date to the patch version and overflowed the 16-bits allocated to that space. This change clamps the Frontend version outputted values to 16-bits like rGd1185fc0 did for the Backend version. Testing: ninja check-all newly added tests correctly clamps and no longer asserts when trying to output the field Reviewed By: aganea Differential Revision: https://reviews.llvm.org/D116243
-
Krzysztof Parzyszek authored
Co-authored-by:
Anirudh Sundar Subramaniam <quic_sanirudh@quicinc.com> Co-authored-by:
Ankit Aggarwal <aankit@quicinc.com>
-
Shilei Tian authored
Following D111954, this patch adds the resource pool for CUevent. Reviewed By: ye-luo Differential Revision: https://reviews.llvm.org/D116315
-
Ellis Hoag authored
When using debug info for profile correlation, avoid adding duplicate functions in the synthetic Data section. Before this patch, n duplicate function entries in the Data section would cause counter values to be a factor of n larger. I built instrumented clang with and without debug info correlation and got these summaries. ``` # With Debug Info Correlate $ llvm-profdata show default.profdata Instrumentation level: IR entry_first = 0 Total functions: 182530 Maximum function count: 52034 Maximum internal block count: 5763 # Without $ llvm-profdata show default.profdata Instrumentation level: IR entry_first = 0 Total functions: 183212 Maximum function count: 52034 Maximum internal block count: 5766 ``` The slight difference in counts seem to be mostly from FileSystem and Map functions and the difference in the number of instrumented functions seems to come from missing debug info like destructors without source. Reviewed By: kyulee Differential Revision: https://reviews.llvm.org/D116051
-
Craig Topper authored
getShiftAmountTy used to directly return the shift amount type from the target which could be too small for large illegal types. For example, X86 always returns i8. The code here detected this and used i32 instead if it won't fit. This behavior was added to getShiftAmountTy in D112469 so we no longer need this workaround.
-
Nick Desaulniers authored
This conditional check for -mstack-protector-guard=tls got out of sync with the conditional check for -mtp=cp15 by me in D114116, because I forgot about the similar check added in D113026. Re-use the code in arm::isHardTPSupported so that these aren't out of sync. Interestingly, our CI reported this when testing -mstack-protector-guard=tls; it was only reproducible with Debian's LLVM and not upstream LLVM due to this out of tree patch: https://salsa.debian.org/pkg-llvm-team/llvm-toolchain/-/blob/snapshot/debian/patches/930008-arm.diff Fixes: https://github.com/ClangBuiltLinux/linux/issues/1502 Reviewed By: ardb Differential Revision: https://reviews.llvm.org/D116233
-
Shilei Tian authored
This patch makes some minor adjustments to `ResourcePool`: - Don't initialize the resources if `Size` is 0 which can avoid assertion. - Add a new interface function `clear` to release all hold resources. - If initial size is 0, resize to 1 when the first request is encountered. Reviewed By: jdoerfert Differential Revision: https://reviews.llvm.org/D116340
-
Renato Golin authored
Plenty of new targets nowadays and I found myself repeating the same thing over and over, so this is more or less what we said over the last few years, but condensed in an ordered fashion and easy to digest. This does not change any of the recommendations, only documents what we have been saying for years.
-
Krzysztof Parzyszek authored
-
Brian Cain authored
-
Rob Suderman authored
Includes dependency fix that resulted in canonicalizer pass not linking in. Linalg named ops lowering are moved to a separate pass. This allows TOSA canonicalizers to run between named-ops lowerings and the general TOSA lowerings. This allows the TOSA canonicalizers to run between lowerings. Differential Revision: https://reviews.llvm.org/D116057
-
Krzysztof Parzyszek authored
llvm/test/DebugInfo/Hexagon/zreg-post-inc.s -> llvm/test/MC/Hexagon/zreg-post-inc.s
-
Michael Benfield authored
This should fix the builder clang-sphinx-docs.
-
David Green authored
We should always be in SSA form when running the pass, so turn a check into an assert.
-
Roman Lebedev authored
Can't get the pointee type of an opaque pointer, but in that case said attributes must already be typed, so just don't try to rewrite them if they already are.
-
Greg Clayton authored
When we switched options over to use the Options.td file, a bug was introduced that caused the "-g" option for "settings set" to require a filename arguemnt. This patch fixes this issue and adds a test so this doesn't regress. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D116012
-
Greg Clayton authored
This patch add the ability to cache the manual DWARF indexing results to disk for faster subsequent debug sessions. Manual DWARF indexing is time consuming and causes all DWARF to be fully parsed and indexed each time you debug a binary that doesn't have an acceptable accelerator table. Acceptable accelerator tables include .debug_names in DWARF5 or Apple accelerator tables. This patch breaks up testing by testing all of the encoding and decoding of required C++ objects in a gtest unit test, and then has a test to verify the debug info cache is generated correctly. This patch also adds the ability to track when a symbol table or DWARF index is loaded or saved to the cache in the "statistics dump" command. This is essential to know in statistics as it can help explain why a debug session was slower or faster than expected. Reviewed By: labath, wallace Differential Revision: https://reviews.llvm.org/D115951
-
Fangrui Song authored
-
Kazu Hirata authored
Identified with readability-const-return-type.
-
Brian Cain authored
-
Brian Cain authored
Z-register does not show up in defs, so checks searching for the def operand must look for a different def index than they would normally.
-
Tony Tye authored
- Update documentation on the DWARF extension for heterogeneous debugging to better reference the DWARF Version 5 standard. - Numerous other corrections. Reviewed By: kzhuravl Differential Revision: https://reviews.llvm.org/D116275
-
Tony Tye authored
Add changes to the DWARF Version 5 standard to the DWARF extension to allow locations on the evaluation stack documentation. Reviewed By: kzhuravl Differential Revision: https://reviews.llvm.org/D116265
-
Kazu Hirata authored
Identified with modernize-use-nullptr.
-
Florian Hahn authored
This patch adds a new prepareToExecute helper to set up live-ins, so VPTransformState doesn't need to hold values like TripCount. This also requires making the trip count operand for ActiveLaneMask explicit in VPlan. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D116320
-
Krzysztof Parzyszek authored
HexagonMCChecker has its own function isPredicateRegister, which does the same thing as HexagonMCInstrInfo::isPredReg.
-
- Dec 28, 2021
-
-
Sanjay Patel authored
We should not lose analysis precision if an 'add' has both no-wrap flags (nsw and nuw) compared to just one or the other. This patch is modeled on a similar construct that was added with D59386. I don't think it is possible to expose a problem with an unsigned compare because of the way this was coded (nuw is handled first). InstCombine has an assert that fires with the example from: https://github.com/llvm/llvm-project/issues/52884 ...because it was expecting InstSimplify to handle this kind of pattern with an smax. Fixes #52884 Differential Revision: https://reviews.llvm.org/D116322
-
Sanjay Patel authored
-
Florian Hahn authored
Not all header phis widen the phi, e.g. like the new VPCanonicalIVPHIRecipe in D113223. To let those recipes also inherit from a phi-like base class, add a more generic VPHeaderPHIRecipe abstract base class. Reviewed By: Ayal Differential Revision: https://reviews.llvm.org/D116304
-
Nikita Popov authored
In their current form, these folds are fundamentally incompatible with opaque pointers. We should add a separate set of folds for the canonicalization of the GEP source type. For now, skip these folds.
-
Nikita Popov authored
The GEP source type is independent of whether it is a scalar or vector GEP, as such we can simply preserve it.
-
Nikita Popov authored
This time with some complex arithmetic involving bitcasts.
-
Nikita Popov authored
Switch this Assembler test to use utc by adding a dummy function and opt run line.
-
Nikita Popov authored
An inbounds GEP may still cross the sign boundary, so signed icmps cannot be folded (https://alive2.llvm.org/ce/z/XSgi4D). This was previously fixed for other folds in this function, but this one was missed.
-
Nikita Popov authored
The fold is incorrect for the sgt case, as gep inbounds is allowed to cross the sign boundary.
-
Nikita Popov authored
We need to make sure that the GEP source element types match. A caveat here is that the used GEP source element type can be arbitrary if no offset is stripped from the original GEP -- the transform is somewhat inconsistent in that it always starts from a GEP, but might not actually look through it if it has multiple indices.
-