[Verifier] Forbid operand bundles with label operands (#220529)
These should obviously not be allowed, and break the invariant that
labels can only occur (as Uses) inside terminators, which the
predecessor iterator relies on.
[GlobalISel] Add G_EXTRACT_VECTOR_ELT to computeNumSignBits (#218283)
Port the SDAG EXTRACT_VECTOR_ELT computeNumSignBits handling to
GlobalISel. If the element index is known, demand only that element from
the source vector. If unknown, conservatively demand all elements.
Part of #150515.
[flang][test] Fix ASAN error in unit tests (#218917)
When flang is built with ASAN, one of the unit tests fails:
```
[ RUN ] FrontendActionTest.ParseSyntaxOnly
=================================================================
==94036==ERROR: AddressSanitizer: heap-use-after-free on address 0xef60299e1268 at pc 0xbf00842915d0 bp 0xffffcc819e50 sp 0xffffcc819e48
READ of size 2 at 0xef60299e1268 thread T0
#0 0xbf00842915cc in getShowColors /home/davspi01/llvm-project/llvm/../clang/include/clang/Basic/DiagnosticOptions.def:68:14
#1 0xbf00842915cc in showColors /home/davspi01/llvm-project/llvm/../clang/include/clang/Basic/DiagnosticOptions.h:159:13
#2 0xbf00842915cc in Fortran::frontend::TextDiagnosticPrinter::HandleDiagnostic(clang::DiagnosticsEngine::Level, clang::Diagnostic const&) /home/davspi01/llvm-project/flang/lib/Frontend/TextDiagnosticPrinter.cpp:116:27
#3 0xbf0088f08ef0 in clang::DiagnosticsEngine::Report(clang::DiagnosticsEngine::Level, clang::Diagnostic const&) /home/davspi01/llvm-project/clang/lib/Basic/Diagnostic.cpp:625:11
#4 0xbf0088f09584 in clang::DiagnosticsEngine::ProcessDiag(clang::DiagnosticBuilder const&) /home/davspi01/llvm-project/clang/lib/Basic/Diagnostic.cpp:705:3
#5 0xbf0088f099ac in clang::DiagnosticsEngine::EmitDiagnostic(clang::DiagnosticBuilder const&, bool) /home/davspi01/llvm-project/clang/lib/Basic/Diagnostic.cpp:727:15
#6 0xbf0082d78778 in Emit /home/davspi01/llvm-project/llvm/../clang/include/clang/Basic/Diagnostic.h:1332:28
#7 0xbf0082d78778 in clang::DiagnosticBuilder::~DiagnosticBuilder() /home/davspi01/llvm-project/llvm/../clang/include/clang/Basic/Diagnostic.h:1367:26
#8 0xbf0083dacd7c in Fortran::frontend::FrontendAction::reportFatalSemanticErrors() /home/davspi01/llvm-project/flang/lib/Frontend/FrontendAction.cpp:310:5
<...>
```
[15 lines not shown]
[LoopVersioning] Preserve MemorySSA if requested. (#220290)
Update LoopVersioning to take an option MemorySSAUpdater. If provided,
update MemorySSA in the cloned loop, as well as for the new edges
connecting the new loop.
This fixes a MemorySSA verification failure with expensive checks in the
LoopFlatten pass which marks MemorySSA as preserved and is using
LoopVersioning.
Exposed by https://github.com/llvm/llvm-project/pull/219663.
PR: https://github.com/llvm/llvm-project/pull/220290
net-mgmt/netbox: Update to 4.6.10
Changelog:
Performance Improvements:
* Prefetch the related fields of nested serializers referenced by
SerializedPKRelatedField
* Include reverse many-to-many relationships when determining REST API
prefetches
Bug Fixes:
* Support the selection of multiple values when filtering VLAN groups by
scope (e.g. by site group)
* Gracefully handle invalid values assigned to a custom script's Meta
attributes
* Reference brief components in the OpenAPI response schemas for nested
SerializedPKRelatedField fields
* Expand the active navigation menu section when resizing from a mobile
to a desktop viewport
[17 lines not shown]
devel/py-dj60-django-rq: Set PORTSCOUT
* The 4.2 release contains breaking changes and the only consumer of
this port, net-mgmt/netbox, won't be compatible with newer versions
until the upcoming 4.7.x release.
[flang][openmp] Support importing module declare target globals (#213930)
Attach declare target attributes to declare target functions and
globals that have been imported from a module file.
Fixes https://github.com/llvm/llvm-project/issues/212333
Show the SNAT setting in a new tab in a filter.settings.nat container so the new structure is complete, but still leave it at the old spot as well. Its only a reflected field, it can be at multiple spots still.
[mlir][linalg] Preserve operand casts when vectorizing 1-D convolutions (#217351)
The 1-D convolution vectorizer previously inferred operand promotions
from their source and accumulator types. This caused unsigned extensions
in `linalg.generic` payloads to be emitted as signed extensions in the
vectorized operation.
Record the casts applied to the input and filter operands and replay
them when promoting their vector values. This preserves the cast
operation instead of inferring the conversion.
Assisted by: Claude
[Clang] Fix conversion from floats to bool-backed enums per CWG1094 (#211172)
After CWG 1094, `[expr.static.cast]p8` has been updated to include:
> A value of floating-point type can also be explicitly converted to an
> enumeration type. The resulting value is the same as converting the
> original value to the underlying type of the enumeration
> ([conv.fpint]), and subsequently to the enumeration type.
`[conv.fpint]p1` states:
> If the destination type is bool, see [conv.bool].
`[conv.bool]` states:
> A zero value, null pointer value, or null member pointer value is
> converted to false; any other value is converted to true.
Previously `TryStaticCast` always used integral conversion for
[21 lines not shown]
bcm2835_audio: Comment out vchi_service_release()
bcm2835_audio_release() calls vchi_service_close() and then
unconditionally calls vchi_service_release() with the same service
handle.
In the VCHI shim implementation, a successful vchi_service_close() calls
service_free(service). The subsequent vchi_service_release() therefore
dereferences a freed SHIM_SERVICE_T object when it reads
service->handle, resulting in a use-after-free panic.
vchi_service_release(), however, releases a reference which might block
vchi_service_close() from completing successfuly, so comment it out
instead of removing it altogether, until further testing is done.
PR: 297187
MFC after: 2 weeks
Reviewed by: markj
Differential Revision: https://reviews.freebsd.org/D58921
[2 lines not shown]
AMDGPU/GlobalISel: Bitcasting G_TRUNC combine
Creating the G_TRUNC that changes type as well. This is really
the LLT::scalar trunc style that we inherited from switching to
extended LLTs, very common on non-true16 targets.
Affects inst-select pattern matching that were blocked by bitcast.