[SampleProf] Add flag to allow re-reading loaded profiles with remapper (#244798)
Add a temporary hidden option
`-sample-profile-allow-reread-loaded-profile` (default `false`) to
restore the pre-#230386 behavior during incremental reads with a
remapper; this flag is temporary and for performance testing.
[X86] Fix mask indexing in the extractelement(bitcast(<X x i1>)) fold (#240715)
`combineExtractVectorElt` folds `extract_element(bitcast(<X x i1>))`
into an `EXTRACT_SUBVECTOR` of the mask, but sizes and indexes the
subvector by the result width instead of the source element width. The
result of `EXTRACT_VECTOR_ELT` may be wider than the element (and
`PEXTRB`/`PEXTRW` always return i32), so the fold could select the wrong
mask bits or build an out-of-bounds `EXTRACT_SUBVECTOR`.
Use the source element width, bitcast back to the element type, and
any-extend (zero-extend for `PEXTRB`/`PEXTRW`) to the result type.
Fixes #240704
AI assistance: Claude Code and ChatGPT were used for triage, patch
development and editing; the author reviewed the change and takes
responsibility for it.
[cir] Convert gpu.func and gpu.launch_func signatures with cir types (#245465)
In CIR + OpenACC, the OpenACC compute region will be converted and
outlined to a `gpu.func`. The CIR to LLVM conversion will handle the
body of the `gpu.func` fine but the signature will keep the CIR types.
This patch adds two patterns to be able to convert the types in the
signature as well.
---------
Co-authored-by: Erich Keane <ekeane at nvidia.com>
build: digest ports, plugins and make configs as well for RECIPE #529
This is a stop-gap measure to some degree since 64118a51609d showed
we can alter the recipe by changing a config file amongst other
things. This is neither easily visible to the user of a RECIPE nor
is it going to help much in the long run considering how many
knobs there are to alter the build as it is now.
At the moment this is an experimental run so simply invalidate the
RECIPE instead of letting it run even though things are going out
of sync quickly. Later we need to thing of something else, ideally
not having to copy every config file and dropping the environment
into a file as well because we also have to consider other archs,
kernels, .conf.local files, etc.
The next time touching the file we should also refactor this into
a single function to make it easier to handle in the future.
[Matrix] Implement matrix support for the `lerp` intrinsic (#243639)
Closes #184506.
This PR implements the matrix api for `lerp` and adds matrix codegen
tests and matrix sema tests. Matrix backend tests were not added because
no DirectX or SPIRV backend changes were made.
Assisted-by: Claude Opus 5.5
[lld][MachO] Pool relocation storage & sort relocs in ascending address order (#245184)
Currently, each subsection grows its own `std::vector` of relocations,
resulting in a lot of small allocations during relocation parsing, which
is costly. This PR allocates one relocation array per input section, and
each subsection takes a `RelocsArray` slice of it.
Some linker passes still need to dynamically `emplace_back()` into the
`RelocsArray`; since the slices are contiguous, they cannot expand
in-place, so we switch the `RelocsArray` storage to a per-subsection
heap-allocated buffer as needed. This is a similar to how `SmallVector`
behaves.
Additionally, we sort the relocations in ascending address order,
matching the order that subsections are sorted in. This means that
iterating over the relocations in subsection order can now benefit more
from the hardware prefetcher. (Previously, each subsection's relocations
were sorted in descending address order, but that did not matter as much
since the allocations were fragmented anyway.) This ordering results in
[3 lines not shown]
[ADT] Remove unused <memory> include from APFloat.h (NFC) (#245882)
DoubleAPFloat::Floats was switched from std::unique_ptr<APFloat[]> to a
raw pointer in c72ebeeb7f1c, leaving <memory> unused in this header..
Also updates the comment that still referred to the unique_ptr
print/publisher-devel: Update 5.9.28 => 5.9.34
Security: file names in server mode.
In server mode, the file names sent with /v0/publish and /v0/pdf were
not checked. A request could write files outside of the job directory
on the server. Now only the file name without a directory is used, as
with /v1. Requests with an invalid file name such as .. are rejected.
Updating is recommended if the server can be reached by others.
Changelog:
https://doc.speedata.de/publisher/en/manual/changelog/version-5/#5934-2026-11-23
PR: 301106
MFH: 2026Q4
(cherry picked from commit 9597cb46ded3a981accb8a9ae56cc9dc5fed2192)
[lldb][test] Gate TestBugReportURL on backtrace (#245826)
TestBugReportURL.test checks for the "PLEASE submit a bug report"
message printed by CrashHandler in PrettyStackTrace.cpp, which is
compiled out when LLVM_ENABLE_BACKTRACES is disabled.
Export LLVM_ENABLE_BACKTRACES from LLVMConfig.cmake.in for standalone
builds, plumb it into lldb/test/Shell as the `backtrace` lit feature
(matching llvm, clang, and lld), and require `backtrace` in
TestBugReportURL.test. Also update the GN and Bazel lit site configs.
Assisted by Gemini.
[Matrix] Fix `fmuladd` crash on `+` or `-` between a matrix and scalar (#245686)
Fixes #244340.
With FP contraction on (the default for `clang-dxc`), Clang tries to
fuse a `+` or `-` with a multiply operand into an `fmuladd`. For a
matrix and a scalar, the scalar isn't splatted yet at that point, so the
`fmuladd` builds with mismatched operand types and hits an assertion.
This PR fixes that by skipping fusion when the operand types differ. The
check is intentionally general rather than matrix-specific, since
`fmuladd` requires all three operands to have the same type. In
practice, a mismatch is currently only reachable with matrix + scalar,
but the general check also guards against future changes.
This PR also adds HLSL and C codegen tests for the crash and for cases
that should still fuse (matrix + matrix, vector + scalar, mixed scalar
types).
Assisted-by: Claude Opus 5.5
print/publisher-devel: Update 5.9.28 => 5.9.34
Security: file names in server mode.
In server mode, the file names sent with /v0/publish and /v0/pdf were
not checked. A request could write files outside of the job directory
on the server. Now only the file name without a directory is used, as
with /v1. Requests with an invalid file name such as .. are rejected.
Updating is recommended if the server can be reached by others.
Changelog:
https://doc.speedata.de/publisher/en/manual/changelog/version-5/#5934-2026-11-23
PR: 301106
MFH: 2026Q4
[flang][OpenMP] Keep pending METADIRECTIVE variants in their scope
A loop-associated METADIRECTIVE replacement inside a BEGIN
METADIRECTIVE region can escape the region. In
```fortran
!$omp begin metadirective default(parallel)
continue
!$omp metadirective when(user={condition(flag)}: simd) default(do)
!$omp end metadirective
do i = 1, n
end do
```
neither SIMD nor DO has a loop in the region, but only the DO is
reported. The SIMD is checked against the loop after END METADIRECTIVE.
In this PR each block records where its entries start in the list of
pending replacements, so that it can diagnose the leftovers when it ends.
[4 lines not shown]
[flang][OpenMP] Add tasking constructs to the construct trait set
Count TASK, TASKLOOP and TASKGROUP in the construct trait set for
METADIRECTIVE and DECLARE VARIANT, both on their own and as leaves of a
compound construct such as PARALLEL MASKED TASKLOOP. They cannot be
named in a construct selector, but the set contains every enclosing
construct, and its size and order affect the scores. Each one is added
with OMPContext::addUnknownConstruct, so it never matches a selector.
The other constructs that cannot be named in a selector will be added
in follow-up patches.
Part of #244761
Assisted-by: GitHub Copilot and Claude Opus 5.5
[lldb][NativePDB] Initialize VariableInfo::is_param (#246084)
`VariableInfo::is_param` has no initializer, and `CreateLocalVariable`
does not initialize it when it builds the `VariableInfo` of an
`S_CONSTANT`, so a local constant can be listed as an argument of its
function.
This patch initializes it to `false`.
rdar://193647118