- Nov 02, 2022
-
-
Zi Xuan Wu (Zeson) authored
.bss without symbol and num following can't be compiled in CSKY target, which is consistent to GCC behavior. So when --save-temps generates .bss, we should UsesELFSectionDirectiveForBSS to avoid such error.
-
Michał Górny authored
Replace the use of the deprecated `llvm-config` tool with LLVM's CMake files for detecting LLVM in standalone builds. Differential Revision: https://reviews.llvm.org/D137024
-
Carlos Alberto Enciso authored
The sanitizer reported memory leak issues; the command line used in the test case is: llvm-debuginfo-analyzer --attribute=level --print=instructions pr-incorrect-instructions-dwarf-clang.o When dealing with logical instruction lines associated with an artificial logical scope, skip the process of finding their enclosing scope. Just add them to the scope. Create logical debug lines only if the command line specifies: --print=lines or --print=elements or --print=all Reviewed By: jryans, vitalybuka Differential Revision: https://reviews.llvm.org/D137156 -
Jan Svoboda authored
The dependency scanner relies on the module map filtering logic in `ASTWriter`. The algorithm currently considers all system module maps affecting, which is not only sub-optimal, but can also cause failures when building a module explicitly (see attached test case). This patch applies the same filtering logic to system module maps. Reviewed By: Bigcheese Differential Revision: https://reviews.llvm.org/D136007
-
chenglin.bi authored
The special case for bit extraction pattern is `((x >> C) & mask) << C`. It can be combined to `x & (mask << C)` by return true in isDesirableToCommuteWithShift. Fix: #56427 Reviewed By: dmgreen Differential Revision: https://reviews.llvm.org/D136014
-
Thomas Raoux authored
When a value used in the forOp is defined outside the region but within the parent warpOp we need to return and distribute the value to pass it to new operations created within the loop. Also simplify the lambda interface. Differential Revision: https://reviews.llvm.org/D137146
-
Johannes Doerfert authored
The handling for MemIntrinsic is not dependent on optimistic information, no need to put it in update for now. Added a TODO though.
-
Johannes Doerfert authored
-
Johannes Doerfert authored
OpenMP offloading always uses uniform workgroups, see https://reviews.llvm.org/D135374. The runtime doesn't need to handle non-uniform workgroups at all either. Differential Revision: https://reviews.llvm.org/D135444
-
Craig Topper authored
This reverts commit 82c820b9. This failed llvm-testsuite in our downstream and a similar issue was reported by @rogfer01.
-
Jan Svoboda authored
In D106876, we stopped serializing module map files that didn't affect compilation of the current module. However, since each `SourceLocation` is simply an offset into `SourceManager`'s global buffer of concatenated input files in, these need to be adjusted during serialization. Otherwise, they can incorrectly point after the buffer or into subsequent input file. This patch starts adjusting `SourceLocation`s, `FileID`s and other `SourceManager` offsets in `ASTWriter`. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D136624
-
Jan Svoboda authored
This patch delays some `ASTWriter` logic until after we've checked whether the source location entry we're serializing as an affecting file or not. Depends on D137214. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137216
-
Konstantin Varlamov authored
This makes the tests more minimal, and in particular it avoids relying on a complete `<cstdlib>`, which may not be available on all platforms. Differential Revision: https://reviews.llvm.org/D137188
-
Jan Svoboda authored
This is a prep-patch for D136624 which allows querying `SourceManager` with raw offsets instead of `SourceLocation`s. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137215
-
Jan Svoboda authored
This patch is a NFC prep for D136624, where we start adjusting offsets into `SourceManager`. Depends on D137213. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137214
-
Jan Svoboda authored
For pragma diagnostic mappings, we always write/read `SourceLocation` with offset 0. This is equivalent to just writing a `FileID`, which is exactly what this patch starts doing. Depends on D137211. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137213
-
Jan Svoboda authored
This patch adds new functions for writing/reading `FileID`s and uses them to replace some ad-hoc code. Reviewed By: dexonsmith Differential Revision: https://reviews.llvm.org/D137211
-
Matt Arsenault authored
Some work will be needed to comply with these rules for non-integral pointers.
-
Vitaly Buka authored
We need to land asan_allocator.h patches first. This reverts commit 75a8cdbc.
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D137210
-
Jan Svoboda authored
-
Hongtao Yu authored
As titled. The change should have minimal impact since the targets of branch samples are mostly covered by range samples. Reviewed By: wenlei, wlei Differential Revision: https://reviews.llvm.org/D137203
-
Weverything authored
The empty key value for APInt was colliding with a valid zero-width APInt. Change the internal value of empty key and tombstone values for APInt to avoid this collision. Fixes: https://github.com/llvm/llvm-project/issues/58013 Differential Revision: https://reviews.llvm.org/D135741
-
Siva Chandra Reddy authored
-
Siva Chandra Reddy authored
-
Amara Emerson authored
This does some trivial cross-regclass folding, where we can either do some extra constraining to eliminate the copy or modify uses to use a smaller regclass. There are minor code size improvements on average. Program size.__text before after diff tramp3d-v4/tramp3d-v4 366000.00 366012.00 0.0% mafft/pairlocalalign 248196.00 248188.00 -0.0% 7zip/7zip-benchmark 568612.00 568592.00 -0.0% kimwitu++/kc 434704.00 434676.00 -0.0% Bullet/bullet 456128.00 456096.00 -0.0% sqlite3/sqlite3 284136.00 284100.00 -0.0% ClamAV/clamscan 381492.00 381396.00 -0.0% SPASS/SPASS 412052.00 411944.00 -0.0% lencod/lencod 428060.00 427912.00 -0.0% consumer-typeset/consumer-typeset 413148.00 411116.00 -0.5% Geomean difference -0.1% Differential Revision: https://reviews.llvm.org/D136793 -
Siva Chandra Reddy authored
Reviewed By: michaelrj Differential Revision: https://reviews.llvm.org/D137147
-
bixia1 authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D136301
-
serge-sans-paille authored
Some distribution install libraries under lib64. LLVM supports this through LLVM_LIBDIR_SUFFIX, have bolt do the same. Differential Revision: https://reviews.llvm.org/D137039
-
Eric Kunze authored
The implementation_attrs attr allows passing of backend specific attributes to TOSA custom ops. Also adds a config option to avoid namespace collisions on the identifier. Reviewed By: rsuderman Differential Revision: https://reviews.llvm.org/D137133
-
Aaron Puchert authored
Some places were using unwrap<T>(x) = cast<T>(unwrap(x)), even though the unwrapped value already had type T. Removing the template argument makes it clear that no cast is intended. Other places were using cast<T>(unwrap(x)), we replace that with the shorthand unwrap<T>(x) for consistency.
-
bipmis authored
-
Nicolas Vasilache authored
This is on a path to deprecation. Context: https://discourse.llvm.org/t/psa-retire-tileandfuselinalgops-method/63850 As the interface-based transformation is more generic, some additional folding of AffineMin/MaxOp and some extra canonicalizations are needed. This can be further evolved. Differential Revision: https://reviews.llvm.org/D137195
-
Paul Robinson authored
-
Felipe de Azevedo Piovezan authored
The packet was introduced in 106d0286. Differential Revision: https://reviews.llvm.org/D136958
-
Aaron Ballman authored
-
Katherine Rasmussen authored
Add the atomic subroutine, atomic_or, to the list of intrinsic subroutines, add its last dummy argument to a check for a coindexed-object, and update test. Reviewed By: PeteSteinfeld Differential Revision: https://reviews.llvm.org/D137097
-
Paul Robinson authored
These weren't running anywhere because of bad specifications. One test has bit-rotted and had to be XFAILed, the rest are okay. Differential Revision: https://reviews.llvm.org/D136612
-
Kirill Stoimenov authored
This change will switch SizeClassAllocator32 to SizeClassAllocator64 on ARM. This might potentially affect ARM platforms with 39-bit address space. This addresses [[ https://github.com/google/sanitizers/issues/703 | issues/703 ]], but unlike [[ https://reviews.llvm.org/D60243 | D60243 ]] it defaults to 64 bit allocator. Reviewed By: vitalybuka, MaskRay Differential Revision: https://reviews.llvm.org/D137136
-
Sanjay Patel authored
This should prevent crashing for the example in issue #58552 by not matching a select-of-vectors-with-scalar-condition. A similar change is likely needed for the related fold to properly fix that kind of bug. The test that shows a regression seems unlikely to occur in real code. This also picks up an optimization in the case where a real (bitwise) logic op is used. We could already convert some similar select ops to real logic via impliesPoison(), so we don't see more diffs on commuted tests. Using commutative matchers (when safe) might also handle one of the TODO tests.
-