- Jun 10, 2023
-
-
Akira Hatanaka authored
names The test case was failing because "-f{{[^"]*coverage.*}}" was matching the following string: "-fdebug-compilation-dir=/Users/buildslave/jenkins/workspace/coverage/" Differential Revision: https://reviews.llvm.org/D152485 -
Yitzhak Mandelbaum authored
The documentation claims that the check recognizes `ASSERT_THAT`, but it doesn't recognize any googletest macros at the moment. This patch removes the reference.
-
Arthur Eubanks authored
-
Matthew Voss authored
Requested in https://reviews.llvm.org/D148950#4315575
-
Paul Kirth authored
After https://reviews.llvm.org/D151954 we've noticed some issues w/ clang-format behavior, as outlined in https://github.com/llvm/llvm-project/issues/63170. Valid C/C++ files, that were previously accepted, are now rejected by clang-format, emitting the message: "The new replacement overlaps with an existing replacement." This reverts commit 4b976495 and d2627cf8, which depends on it. Reviewed By: phosek Differential Revision: https://reviews.llvm.org/D152473
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D152529
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D152528
-
Bjorn Pettersson authored
Swap order for checking address space and the strip pointer cast when analyzing if a load/store is accessing an alloca. This to make sure we do the cheaper check first. This is done as a follow up to D152386.
-
Amir Ayupov authored
Initialize and return `FlowFunction` from initFunction->createFlowFunction. Aligns the interface to `createFlowFunction` in D144500, intent to reuse in a follow-up. Reviewed By: spupyrev Differential Revision: https://reviews.llvm.org/D152216
-
Johannes Doerfert authored
Fix my email and add OpenMP-Opt and Attributor to the list.
-
Fangrui Song authored
[AMDGPU,BPF,SystemZ,WebAssembly] Migrate to new encodeInstruction that uses SmallVectorImpl<char>. NFC
-
Artem Belevich authored
Differential Revision: https://reviews.llvm.org/D152478
-
Florian Hahn authored
If we didn't find the extact ZExt expr in the rewrite map, check if there's an entry for a smaller ZExt we can use instead. Reviewed By: nikic Differential Revision: https://reviews.llvm.org/D149786
-
Alex Langford authored
-
Krzysztof Parzyszek authored
The name rdf::Use conflicts with llvm::Use when both namespaces are used via `using namespace`. Specifically this happened in the declaration of DataFlowGraph::newUse (in RDFGraph.cpp): ``` using namespace rdf; Use newUse(...); <-- Lookup conflict for "Use" ``` Since the TRT lookup starts in a different namespace than that of the leading type, this serves as a workaround. In general the rdf namespace will not likely be introduced via `using namespace`, so this shouldn't be a problem elsewhere.
-
Krzysztof Parzyszek authored
-
Amara Emerson authored
hoisted constants. The constant hoisting pass tries to hoist large constants into predecessors and also generates remat instructions in terms of the hoisted constants. These aim to prevent codegen from rematerializing expensive constants multiple times. So we can re-use this optimization, we can preserve the no-op bitcasts that are used to anchor constants to the predecessor blocks. SelectionDAG achieves this by having the OpaqueConstant node, which is just a normal constant with an opaque flag set. I've opted to avoid introducing a new constant generic instruction here. Instead, we have a new G_CONSTANT_FOLD_BARRIER operation that constitutes a folding barrier. These are somewhat like the optimization hints, G_ASSERT_ZEXT in that they're eliminated by the generic instruction selection code. This change by itself has very minor improvements in -Os CTMark overall. What this does allow is better optimizations when future combines are added that rely on having expensive constants remain unfolded. Differential Revision: https://reviews.llvm.org/D144336
-
River Riddle authored
Promised interfaces allow for a dialect to "promise" the implementation of an interface, i.e. declare that it supports an interface, but have the interface defined in an extension in a library separate from the dialect itself. A promised interface is powerful in that it alerts the user when the interface is attempted to be used (e.g. via cast/dyn_cast/etc.) and the implementation has not yet been provided. This makes the system much more robust against misconfiguration, and ensures that we do not lose the benefit we currently have of defining the interface in the dialect library. Differential Revision: https://reviews.llvm.org/D120368
-
Martin Storsjö authored
This requires being able to opt out from adding the leading underscores in COFFModuleDefinition. Normally it is added automatically for I386 type targets. We could either move the decision entirely to all callers, letting the caller check the machine type and decide whether underscores should be added, or keep the logic mostly as is, but allowing opting out from the behaviour on I386. I went with keeping the interface as is for now. Differential Revision: https://reviews.llvm.org/D152363
-
Wang authored
[clang/test/CodeGen] Add test coverage for VarBypassDetector handling init statements and condition variables in switch clauses [VarBypassDetector.cpp](https://github.com/llvm/llvm-project/blob/main/clang/lib/CodeGen/VarBypassDetector.cpp) lacks test coverage for handling init statements and condition variables in switch clauses, as is shown in: https://lab.llvm.org/coverage/coverage-reports/coverage/Users/buildslave/jenkins/workspace/coverage/llvm-project/clang/lib/CodeGen/VarBypassDetector.cpp.html#L70 This patch adds test coverage for uncovered lines. Reviewed By: vitalybuka Differential Revision: https://reviews.llvm.org/D152412
-
Kazu Hirata authored
This patch fixes: llvm/lib/CodeGen/MachineScheduler.cpp:4223:9: error: unused type alias 'IntervalTy' [-Werror,-Wunused-local-typedef]
-
Peiming Liu authored
Brings back "[mlir][sparse] moving inbound check for slice driven loop into before block of the WhileOp" This reverts commit 07b92790. Reviewed By: K-Wu Differential Revision: https://reviews.llvm.org/D152566
-
Peiming Liu authored
This reverts commit 853d704f. Differential Revision: https://reviews.llvm.org/D152562
-
Kun Wu authored
Reviewed By: aartbik Differential Revision: https://reviews.llvm.org/D152465
-
Peiming Liu authored
This patch changes the while loop generated for iterating over a fully reduced sparse level with affine index expression. Before: ``` cont = true while (cont) { if (inBound()) { .... cont = true; } else { cont = false; } } ``` After: ``` while(inBound()) { .... } ``` Reviewed By: K-Wu Differential Revision: https://reviews.llvm.org/D152463 -
Craig Topper authored
Add register classes to output registers. Use simm5 instead of XLenVT for output immediate.
-
Arthur Eubanks authored
-
Felipe de Azevedo Piovezan authored
The current implementation of the AppleAcceleratorTable::Entry is problematic for a few reasons: 1. It is heavyweight. Iterators should be cheap, but the current implementation tracks 3 different integer values, one "Entry" object, and one pointer to the actual accelerator table. Most of this information is redundant and can be removed. 2. It performs "memory reads" outside of the dereference operation. This violates the usual expectations of iterators, whereby we don't access anything so long as we don't dereference the iterator. 3. It doesn't commit to tracking _one_ thing only. It tries to track both an "index" into a list of HashData entries and a pointer in a blob of data. For this reason, it allows for multiple "invalid" states, keeps redundant information around and is difficult to understand. 4. It couples the interpretation of the data with the iterator increment. As such, if the *interpretation* fails, the iterator will keep on producing garbage values without ever indicating so to consumers. The problem this iterator is trying to solve is simple: we have a blob of data containing many "HashData" entries and we want to iterate over them. As such, this commit makes the iterator only track a pointer over that data, and it decouples the iterator increments from the interpretation of this blob of data. We maintain the already existing assumption that failures never happen, but now make it explicit with an assert. Depends on D152158 Differential Revision: https://reviews.llvm.org/D152159
-
Fangrui Song authored
so that they get an error on other targets. This change uses let statements to apply `Flags = [TargetSpecific]` to options (mostly -m*) without specifying `Flags`. Follow-up to D151590. For some options, e.g. -mdefault-build-attributes (D31813), -mbranch-likely (D38168), -mfpu=/-mabi= (6890b9b7), a warning seems desired in at least certain cases. This is not the best practice, but this change works around them by not applying `Flags = [TargetSpecific]`. ( For Intel CPU errata -malign-branch= family options, we also drop the unneeded NotXarchOption flag. This flag reports an error if the option is used with -Xarch_*. This error reporting does not seem very useful. )
-
- Jun 09, 2023
-
-
LLVM GN Syncbot authored
-
Caleb Zulawski authored
Correctly handle single-element vectors to fix an assertion failure. Add tests that were missing from the original commit. Differential Revision: D151782
-
Nikolas Klauser authored
These concepts are used to ensure valid iterators are passed to PSTL algorithms, but can also be used for other interfaces. Reviewed By: ldionne, #libc Spies: EricWF, libcxx-commits Differential Revision: https://reviews.llvm.org/D150493
-
Jay Foad authored
Differential Revision: https://reviews.llvm.org/D152539
-
Matthias Springer authored
Add a new transform op to populate patterns: ApplyFoldTensorSliceIntoTransferPatternsOp. Differential Revision: https://reviews.llvm.org/D152531
-
MineGame159 authored
Adds 2 new functions to the C libclang api for retrieving operator kinds for binary and unary operators from cursors. Also adds 2 functions for retrieving the spelling of the new enums. Fixes https://github.com/llvm/llvm-project/issues/29138 Differential Revision: https://reviews.llvm.org/D150910
-
Krzysztof Parzyszek authored
-
Akira Hatanaka authored
-
Bjorn Pettersson authored
The comments and the checks in test/Transforms/SLPVectorizer/X86/schedule_budget.ll did not match. After commit 352c46e7 the vectorization has happened also with the reduced budget. This patch is supposed to restore the original intention with the test case (the one described in the comments). We want to see that a restricted budget may reduce the amount of vectorization (i.e. verifying that the -slp-schedule-budget option makes a difference), while a higher budget still result in vectorization. Differential Revision: https://reviews.llvm.org/D152530
-
Bjorn Pettersson authored
In commit 2be0abb7 (D149893) the load store vectorized was reimplemented. One thing that can happen with the new LSV is that it can increase the align of alloca and global objects. However, the code comments indicate that the intention only was to increase alignment of alloca. Now we will use stripPointerCasts to analyse if the load/store really is accessing an alloca (same as getOrEnforceKnownAlignment is using). And then we only try to change the align if we find an alloca instruction. This way the code will match better with code comments, and we won't change alignment of non-stack variables to use the "StackAdjustedAlignment". Differential Revision: https://reviews.llvm.org/D152386
-
Amir Ayupov authored
Use StringRef method instead of reimplementing the splitting. Incidentally, it also fixes the duplicate printing of the command arguments: ``` PERF2BOLT: spawning perf job to read branch events Launching perf: /usr/bin/perf script^@-F^@pid,ip,brstack -F^@pid,ip,brstack pid,ip,brstack -f -i PERF2BOLT: spawning perf job to read mem events Launching perf: /usr/bin/perf script^@-F^@pid,event,addr,ip -F^@pid,event,addr,ip pid,event,addr,ip -f -i PERF2BOLT: spawning perf job to read process events Launching perf: /usr/bin/perf script^@--show-mmap-events --show-mmap-events -f -i PERF2BOLT: spawning perf job to read task events Launching perf: /usr/bin/perf script^@--show-task-events --show-task-events -f -i ``` Fixes it to: ``` PERF2BOLT: spawning perf job to read branch events Launching perf: /usr/bin/perf script -F pid,ip,brstack -f -i PERF2BOLT: spawning perf job to read mem events Launching perf: /usr/bin/perf script -F pid,event,addr,ip -f -i PERF2BOLT: spawning perf job to read process events Launching perf: /usr/bin/perf script --show-mmap-events -f -i PERF2BOLT: spawning perf job to read task events Launching perf: /usr/bin/perf script --show-task-events -f -i ``` Reviewed By: #bolt, rafauler Differential Revision: https://reviews.llvm.org/D152483
-