- Apr 16, 2024
-
-
Joseph Huber authored
Summary: Currently we treat this attribute as a minimum number for the amount of blocks scheduled on the kernel. However, the doucmentation states that this applies to CTA's mapped onto a *single* SM. Currently we just set it to the total number of blocks, which will almost always result in a warning that the value is out of range and will be ignored. We don't have a good way to automatically know how many CTAs can be put on a single SM nor if we should do this, so we should probably leave this up to users manually adding it. https://docs.nvidia.com/cuda/parallel-thread-execution/index.html#performance-tuning-directives-minnctapersm
-
Jonas Devlieghere authored
The lldb-server unit tests are timing out on GreenDragon and swift-ci. We haven't been able to reproduce this locally or figure out why. We've made several attempts to address potential issues, but we've reached a point where we need to skip them to get signal out of this bot again.
-
cmtice authored
Add an accessor function to DWARFDebugNames::NameIndex to allow other classes to access the Offsets field within NameIndex. This will be used by LLD to create a merged .debug_names index (https://github.com/llvm/llvm-project/pull/86508)
-
Craig Topper authored
Remove unneeded an unneeded variable and rename another.
-
Joseph Huber authored
Summary: The previous patch mistakenly merged these when they indeed need to be treated like separate triples because it's what's passed to the test suite.
-
Yijia Gu authored
-
Craig Topper authored
-
Nico Weber authored
-
cor3ntin authored
This fixes an assertion in Expr::Classify when a trying to deduce a dependent dereference operator. Fixes #88329
-
Utkarsh Saxena authored
Instead of directly pushing the `Destroy`, we should use `pushFullExprCleanup` which handles conditional branches. This fixes a backend crash due to 89ba7e18. Added minimized crash reproducer.
-
Ivan Butygin authored
Add uplifting from `scf.while` to `scf.for`. This uplifting expects a very specific ops pattern: * `before` block consisting of single `arith.cmp` op * `after` block containing `arith.addi` We also have a set of patterns to cleanup `scf.while` loops to get them close to the desired form, they will be added in separate PRs. This is part of upstreaming `numba-mlir` scf uplifting pipeline: `cf -> scf.while -> scf.for -> scf.parallel` Original code: https://github.com/numba/numba-mlir/blob/main/mlir/lib/Transforms/PromoteToParallel.cpp
-
Craig Topper authored
-
Justin Fargnoli authored
-
Yijia Gu authored
-
Job Henandez Lara authored
Fixes #88187
-
Leonard Chan authored
Also reapply "[llvm] Teach whole program devirtualization about relative vtables" This reverts commit 1c604a97 and 474f5efe.
-
Nico Weber authored
-
Alexey Bataev authored
Perform required operations, only when the result is required + check if value was not inserted already into the list of the externally used scalars and early exit, if it was.
-
Leonard Chan authored
This reverts commit 09c3bfe9.
-
Leonard Chan authored
This reverts commit b8b2f990. This was failing on a local build.
-
Arthur Eubanks authored
-
Kazu Hirata authored
We don't need to create these instances of ArrayRef because StructType::create and ConstantStruct::get take ArrayRef, and ArrayRef can be implicitly constructed from C arrays.
-
Arthur Eubanks authored
-
Arthur Eubanks authored
-
Arthur Eubanks authored
-
Arthur Eubanks authored
-
Arthur Eubanks authored
-
Arthur Eubanks authored
-
Arthur Eubanks authored
-
Leonard Chan authored
This reverts commit 1c604a97.
-
Leonard Chan authored
This reverts commit 474f5efe.
-
Yingwei Zheng authored
Fix assertion failure in our downstream CI https://github.com/dtcxzyw/llvm-codegen-benchmark/issues/1.
-
Florian Mayer authored
Revert "[clang analysis] ExprMutationAnalyzer avoid infinite recursion for recursive forwarding reference" (#88765) Reverts llvm/llvm-project#87954 Broke sanitizer bots, e.g. https://lab.llvm.org/buildbot/#/builders/239/builds/6587/steps/10/logs/stdio
-
Yingwei Zheng authored
As we canonicalizes smin with non-negative operands into umin in the middle-end, the saturation pattern will be broken. This patch reverts the transform in DAGCombine to fix the regression on ARM. Fixes https://github.com/llvm/llvm-project/issues/85706.
-
David Tenty authored
clang treats the cast here as an error since 999d4f84 landed with -Xextra -Werror. We believe this cast to be safe for the reasons noted in comment, but we should do some further cleanup at some point.
-
Martin Storsjö authored
When doing GC, we normally won't have dangling references, because such a reference would keep the other section alive, keeping it from being eliminated. However, references within DWARF sections are ignored for the purposes of GC (because otherwise, they would essentially keep everything alive, defeating the point of the GC), see c579a5b1 for more context. Therefore, dangling relocations against discarded symbols are ignored within DWARF sections (see maybeReportRelocationToDiscarded in Chunks.cpp). Consequently, we also shouldn't create any pseudo relocations for these cases, as we run into a null pointer dereference when trying to generate the pseudo relocation info for it. This fixes the downstream bug https://github.com/mstorsjo/llvm-mingw/issues/418, fixing crashes on combinations with -ffunction-sections, -fdata-sections, -Wl,--gc-sections and debug info.
-
Nathan Sidwell authored
A small cleanup -- no braces needed here.
-
Nathan Sidwell authored
Use `isX86()` rather than `!isAArch64() && !isRISCV()`, and similar.
-
Fangrui Song authored
`writeNext` overloads increase the pointer argument like `readNext`. Code like the following ``` endian::write32<ELFT::Endianness>(p, 42); p += 4; endian::write32<ELFT::Endianness>(p, 43); p += 4; ``` can be simplified to: ``` endian::writeNext<uint32_t, ELFT::Endianness>(p, 42); endian::writeNext<uint32_t, ELFT::Endianness>(p, 43); ```
-
Kazu Hirata authored
The first field to serialize is the size of IndexedMemProfRecord::AllocSites. It has nothing to do with GlobalValue::GUID. This happens to work because of: using GUID = uint64_t;
-