[Offload][Omp] Mark failing flang test as unsupported (#244547)
Flang doesn't seem to support correctly the test added in #243817 Marked
as unsupported with a link to the issue to fix it.
[libc++][pstl] Fix the lack of a backend tag in std::is_heap_until implementation in the serial backend (#244174)
The implementation in the serial backend has been a regular template
instead of a specialisation with a concrete backend tag
(`__serial_backend_tag`).
Nothing functionally changes because of the fix.
fbt/powerpc: don't instrument the trap entry path
On powerpc an fbt probe is a program interrupt that goes through the
normal trap path, powerpc_interrupt() -> trap() -> dtrace_trap(). A
probe on trap() or powerpc_interrupt() fires again on the way to its
own handler, so it recurses until the kernel stack runs out, and
enabling fbt::trap:entry panics the machine right away.
Skip both functions, like aarch64 and riscv skip their exception
handlers.
Reviewed by: jhibbits
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D61660
[analyzer] Fix CFG elements order when AddLifetime is enabled (#243630)
When `AddLifetime` is enabled the the order of CFG elements are in a
mixed, not reversed order for a scope that mixes trivially and
non-trivially destructible locals. Non-trivially destructible locals
were constructed in a reverse order in `addAutomaticObjDestruction`, but
the trivially destructible locals were constructed in a reverse order in
`addScopeExitHandling`. Even though in each function the reverse order
of declaration was correctly implemented at the call site of the
functions (`addAutomaticObjHandling`) the order was mixed.
This PR resolves this issue by removing `appendLifetimeEnds` function
from the `addScopeExitHandling` function and adding
`needsAutomaticDestruction` as a guard only for destructors marked as no
return.
This PR fixes https://github.com/llvm/llvm-project/issues/233815
[AVR] lower `va_arg` in clang rather than rely on the LLVM intrinsic (#240157)
The LLVM intrinsic is well-known to miscompile, and most other frontends
already lower `va_arg` themselves.
[mlir][VectorToGPU] Avoid skipping contractions after rejected candididates (#238761)
When collecting operations for MMA conversion, a rejected candidate may
populate the backward-slice cache for another candidate without
selecting it for conversion.
Checking the cache to skip previously visited operations can therefore
prevent a valid contraction from being considered for MMA conversion.
Instead, check opToConvert to skip only operations already selected for
conversion. This preserves the slice cache while allowing candidates
encountered during rejected conversions to be considered independently.
Fixes regression from
https://github.com/llvm/llvm-project/commit/d287e55d0302.
Assisted-by: Codex
[RISCV] Ignore debug uses in RISCVVLOptimizer (#244237)
Fixes #242732.
With `-g`, `DBG_VALUE` users prevented `RISCVVLOptimizer` from reducing
the VL of vector instructions causing `-g` and `-g0` codegen to diverge.
There were two places where debug uses got in the way
- `checkUsers` walked `use_operands()` including when peeking through
`COPY`, `INSERT_SUBREG` and `PHI` so hitting a `DBG_VALUE` made it give
up since debug instructions dont have an SEW operand.
- `tryReduceVL` walked `use_instructions()` when checking whether same
block uses are dominated by the new VL before moving `MI` after the VL
definition so a `DBG_VALUE` sitting between `MI` and the VL def blocked
the move.
This switches those walks to `use_nodbg_operands()` and
`use_nodbg_instructions()` and adds MIR tests in
[4 lines not shown]