- Nov 25, 2021
-
-
Louis Dionne authored
We were defining `main()` but never returning from it.
-
Florian Hahn authored
-
Stanislav Mekhanoshin authored
Tests from D113216 are now handled by Reassociate, GVN and BDCE passes after D114462. Moving into phase ordering instead of instcombine.
-
Alexey Bataev authored
Compiler has an analysis for perfect diamond matching but it does not support nodes with main/alternate opcodes. The problem is that the scalars themselves are different and might not match directly with other nodes, but operands and main/alternate opcodes might match and compiler might reuse some previously emitted vector instructions. Need to include this analysis in the cost model and actual vector instructions emission process. Differential Revision: https://reviews.llvm.org/D114101
-
Saleem Abdulrasool authored
The 14.31.30818 toolset has the following in the `stdatomic.h`: ~~~ #ifndef __cplusplus #error <stdatomic.h> is not yet supported when compiling as C, but this is planned for a future release. #endif ~~~ This results in clang failing to build existing code which relied on `stdatomic.h` in C mode on Windows. Simply fallback to the clang header until that header is available as a complete implementation.
-
Dimitry Andric authored
Building cfi with recent clang on a 64-bit system results in the following warnings: compiler-rt/lib/cfi/cfi.cpp:233:64: warning: format specifies type 'void *' but the argument has type '__sanitizer::uptr' (aka 'unsigned long') [-Wformat] VReport(1, "Can not handle: symtab > strtab (%p > %zx)\n", symtab, strtab); ~~ ^~~~~~ %lu compiler-rt/lib/sanitizer_common/sanitizer_common.h:231:46: note: expanded from macro 'VReport' if ((uptr)Verbosity() >= (level)) Report(__VA_ARGS__); \ ^~~~~~~~~~~ compiler-rt/lib/cfi/cfi.cpp:253:59: warning: format specifies type 'void *' but the argument has type '__sanitizer::uptr' (aka 'unsigned long') [-Wformat] VReport(1, "Can not handle: symtab %p, strtab %zx\n", symtab, strtab); ~~ ^~~~~~ %lu compiler-rt/lib/sanitizer_common/sanitizer_common.h:231:46: note: expanded from macro 'VReport' if ((uptr)Verbosity() >= (level)) Report(__VA_ARGS__); \ ^~~~~~~~~~~ Since `__sanitizer::uptr` has the same size as `size_t`, consistently use `%z` as a printf specifier. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D114466 -
Florian Hahn authored
Upcoming changes will result in Induction not being set/used in some cases. Use OrigLoop to get the function instead.
-
Jeremy Morse authored
Almost all of the time, call instructions don't actually lead to SP being different after they return. An exception is win32's _chkstk, which which implements stack probes. We need to recognise that as modifying SP, so that copies of the value are tracked as distinct vla pointers. This patch adds a target frame-lowering hook to see whether stack probe functions will modify the stack pointer, store that in an internal flag, and if it's true then scan CALL instructions to see whether they're a stack probe. If they are, recognise them as defining a new stack-pointer value. The added test exercises this behaviour: two calls to _chkstk should be considered as producing two different values. Differential Revision: https://reviews.llvm.org/D114443
-
Tobias Gysi authored
The padding tests previously contained the tile loops. This revision removes the tile loops since padding itself does not consider the loops. Instead the induction variables are passed in as function arguments which promotes them to symbols in the affine expressions. Note that the pad-and-hoist.mlir test still exercises padding in the context of the full loop nest. Depends On D114175 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D114227
-
Zarko Todorovski authored
Missed some uses of sanity check in previous commits.
-
Tobias Gysi authored
Add the makeComposedPadHighOp method which creates a new PadTensorOp if necessary. If the source to pad is actually the result of a sequence of padded LinalgOps, the method checks if padding is needed or if we can use the padded result of the padded LinalgOp sequence directly. Example: ``` %0 = tensor.extract_slice %arg0 [%iv0, %iv1] [%sz0, %sz1] %1 = linalg.pad_tensor %0 low[0, 0] high[...] { linalg.yield %cst } %2 = linalg.matmul ins(...) outs(%1) %3 = tensor.extract_slice %2 [0, 0] [%sz0, %sz1] ``` when padding %3 return %2 instead of introducing ``` %4 = linalg.pad_tensor %3 low[0, 0] high[...] { linalg.yield %cst } ``` Depends On D114161 Reviewed By: nicolasvasilache, pifon2a Differential Revision: https://reviews.llvm.org/D114175 -
Stanislav Mekhanoshin authored
This reverts commit c407769f.
-
Tobias Gysi authored
Change the failure condition of padOperandToSmallestStaticBoundingBox to never fail if the operand is already statically sized. In particular: - if the padding value computation fails -> return failure if the operand shape is dynamic and success if it is static. - if there is no extract slice op -> return failure if the operand shape is dynamic and success if it is static. The latter change prevents padding from failure if the output operand passed by iteration argument is statically sized since in this case the extract / insert slice pairs are removed by canonicalization. Depends On D114153 Reviewed By: nicolasvasilache Differential Revision: https://reviews.llvm.org/D114161
-
Zarko Todorovski authored
Part of work to use more inclusive terms in clang/llvm.
-
Florian Hahn authored
This reverts commit a5fff587. The offending commit broke building with LLVM_ENABLE_THREADS=OFF.
-
Nemanja Ivanovic authored
The clang portion of c933c2eb was missed as I made some kind of mistake squashing the commits with git. This patch just adds those. The original review: https://reviews.llvm.org/D114088
-
MaheshRavishankar authored
The alloc dealloc pair generation callback is really central to the bufferization algorithm, it modifies the state in a way that affects correctness. This is not really a configurable option. Moving it to BufferizationState removes what was probably the reason it was added as a callback. Differential Revision: https://reviews.llvm.org/D114417
-
Steven Wan authored
The PCH reader looks for `__clangast` section in the precompiled module file, which is not present in the file on AIX, and we don't support writing this custom section in XCOFF yet. Reviewed By: daltenty Differential Revision: https://reviews.llvm.org/D114481
-
Kirill Stoimenov authored
[ASan] Moved __asan_test_only_reported_buggy_pointer to ReportGenericError, which is needed for shared optimzied callback tests. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D114486
-
Jeremy Morse authored
Avoid un-necessarily recreating DBG_VALUEs on call instructions. In LiveDebugvalues we choose to ignore any clobbers of SP by call instructions, as they're irrelevant to our model of the machine. We currently do so for tracking register values (MTracker); do the same for tracking variable locations (TTracker). Test modified to endure that a duplicate DBG_VALUE is not created after the call in struction in this test. Differential Revision: https://reviews.llvm.org/D114365
-
Jeremy Morse authored
Enabling instruction referencing causes a few variable locations to switch order -- i.e., they switch position in the output DWARF, or sometimes the order of DBG_VALUEs. Update a few tests to reflect this. Differential Revision: https://reviews.llvm.org/D114261
-
Simon Pilgrim authored
-
Graham Hunter authored
Precommit for https://reviews.llvm.org/D108699
-
Balázs Kéri authored
The AST structural equivalence check did not differentiate between a struct and a struct with same name in different namespace. When type of a member is checked it is possible to encounter such a case and wrongly decide that the types are similar. This problem is fixed by check for the namespaces of a record declaration. Reviewed By: martong Differential Revision: https://reviews.llvm.org/D113118
-
Levon Ter-Grigoryan authored
Right now if the LLDB is compiled under the windows with static vcruntime library, the -o and -k commands will not work. The problem is that the LLDB create FILE* in lldb.exe and pass it to liblldb.dll which is an object from CRT. Since the CRT is statically linked each of these module has its own copy of the CRT with it's own global state and the LLDB should not share CRT objects between them. In this change I moved the logic of creating FILE* out of commands stream from Driver class to SBDebugger. To do this I added new method: SBError SBDebugger::SetInputStream(SBStream &stream) Command to build the LLDB: cmake -G Ninja -DLLVM_ENABLE_PROJECTS="clang;lldb;libcxx" -DLLVM_USE_CRT_RELEASE="MT" -DLLVM_USE_CRT_MINSIZEREL="MT" -DLLVM_USE_CRT_RELWITHDEBINFO="MT" -DP YTHON_HOME:FILEPATH=C:/Python38 -DCMAKE_C_COMPILER:STRING=cl.exe -DCMAKE_CXX_COMPILER:STRING=cl.exe ../llvm Command which will fail: lldb.exe -o help See discord discussion for more details: https://discord.com/channels/636084430946959380/636732809708306432/854629125398724628 This revision is for the further discussion. Reviewed By: teemperor Differential Revision: https://reviews.llvm.org/D104413
-
Dmitry Vyukov authored
Now that we lock the internal allocator around fork, it's possible it will create additional deadlocks. Add a fake mutex that substitutes the internal allocator for the purposes of deadlock detection. Depends on D114531. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D114532
-
Dmitry Vyukov authored
There is a small chance that the internal allocator is locked during fork and then the new process is created with locked internal allocator and any attempts to use it will deadlock. For example, if detected a suppressed race in the parent during fork and then another suppressed race after the fork. This becomes much more likely with the new tsan runtime as it uses the internal allocator for more things. Reviewed By: melver Differential Revision: https://reviews.llvm.org/D114531
-
- Nov 24, 2021
-
-
Nicolas Vasilache authored
-
Peter Waller authored
The supplied test case, reduced from real world code, crashes with a 'Invalid size request on a scalable vector.' error. Since it's similar in spirit to an existing LAA test, rename the file to generalize it to both. Differential Revision: https://reviews.llvm.org/D114155
-
LLVM GN Syncbot authored
-
Clement Courbet authored
In preparation for D114539.
-
Quinn Pham authored
[NFC] As part of using inclusive language within the llvm project, this patch renames the master label in `x86-shrink-wrapping.ll` to main. Reviewed By: ZarkoCA Differential Revision: https://reviews.llvm.org/D113940
-
Paul Robinson authored
Differential Revision: https://reviews.llvm.org/D114538
-
Pavel Labath authored
All other platforms use GetSupportedArchitectures now.
-
Phoebe Wang authored
-
Roman Lebedev authored
[X86][Costmodel] `getReplicationShuffleCost()`: promote 1 bit-wide elements to 32 bit when have AVX512DQ I believe, this effectively completes `X86TTIImpl::getReplicationShuffleCost()` for AVX512, other than the question of handling plain AVX512F, where we end up with some really ugly "shuffles", but then is there any CPU's that support AVX512, but not AVX512DQ/AVX512BW? Reviewed By: RKSimon Differential Revision: https://reviews.llvm.org/D114315
-
Guillaume Chatelet authored
-
Florian Hahn authored
VPInstruction inherits from VPValue, so the constructor taking ArrayRef<VPValue*> covers all cases that would be covered by the removed constructor.
-
Bradley Smith authored
Differential Revision: https://reviews.llvm.org/D114431
-
Benjamin Kramer authored
This reverts commit 3cf4a2c6. It makes llc hang on the following test case. ``` target datalayout = "e-m:e-i8:8:32-i16:16:32-i64:64-i128:128-n32:64-S128" target triple = "aarch64-unknown-linux-gnu" define dso_local void @_PyUnicode_EncodeUTF16() local_unnamed_addr #0 { entry: br label %while.body117.i while.body117.i: ; preds = %cleanup149.i, %entry %out.6269.i = phi i16* [ undef, %cleanup149.i ], [ undef, %entry ] %0 = load i16, i16* undef, align 2 %1 = icmp eq i16 undef, -10240 br i1 %1, label %fail.i, label %cleanup149.i cleanup149.i: ; preds = %while.body117.i %or130.i = call i16 @llvm.bswap.i16(i16 %0) #2 store i16 %or130.i, i16* %out.6269.i, align 2 br label %while.body117.i fail.i: ; preds = %while.body117.i ret void } ; Function Attrs: nofree nosync nounwind readnone speculatable willreturn declare i16 @llvm.bswap.i16(i16) #1 attributes #0 = { "target-features"="+neon,+v8a" } attributes #1 = { nofree nosync nounwind readnone speculatable willreturn } attributes #2 = { mustprogress nofree norecurse nosync nounwind readnone uwtable willreturn "frame-pointer"="non-leaf" "min-legal-vector-width"="0" "no-trapping-math"="true" "stack-protector-buffer-size"="8" "target-cpu"="generic" "target-features"="+neon,+v8a" } ```
-