[Mips] Disable strict node mutation (#247107)
Constrained FP operations that the target does not handle were mutated
to their non-strict counterparts, so they lost their chain and could be
removed when their result was unused or reordered with respect to calls
that test or change the FP environment.
Now that the constrained operations that have instructions are selected
directly, set IsStrictFPEnabled like the other targets that support
strict FP, so the remaining ones are expanded or scalarized with their
strict semantics or become libcalls.
Also select STRICT_FMINNUM and STRICT_FMAXNUM to min.fmt and max.fmt on
R6, as was the case for the mutated nodes.
Co-authored-by: Claude Opus 5.5 <noreply at anthropic.com>
[clang][bytecode] Destroy subobjects on return in destructors (#247133)
A return statement in a destructor body emitted RetVoid, skipping the
destruction of members and bases. Jump to the subobject destruction
instead.
[MLIR][OpenMP] Keep the blocks of a converted region in order (#246684)
convertOmpOpRegions inserted each new LLVM block in front of the block
it had created just before, so the blocks of a region came out in
reverse order. For a loop, that put the body before the header and the
preheader. At -O0 the code keeps the block order, so the line table
marked the start of the statement inside the loop body, and a breakpoint
on the statement was hit on every iteration. This is shown below for the
inline loop of an array assignment in a target region.
program test
integer :: arr(4)
!$omp target map(from: arr)
arr = 1
!$omp end target
end program
(gdb) break 4
(gdb) run
[16 lines not shown]
[llvm][Object] Add MIPS to machineToStr() (#247353)
getMachineType() maps /machine:mips to IMAGE_FILE_MACHINE_R4000 since
#121254, but machineToStr() had no case for it. Before #240047 this hit
llvm_unreachable() in lld-link and llvm-lib. Since then the diagnostic
reads "machine type x64 conflicts with unknown" instead of "mips".
Fixes #239535
[libclc][spirv] Implement single-rounded fp16 fma for Vulkan (#247196)
`opencl/lib/spirv/vulkan/math/fma.cl` previously only provided software
`fma` overloads for `float`, leaving `half` `fma` to fall back to a
naive fp32 FMA followed by conversion to fp16, which suffers from double
rounding and fails the OpenCL CTS `math_brute_force` `fma` test.
Implement scalar `fma(half, half, half)` in fp32 using Knuth's TwoSum
(with `#pragma OPENCL FP_CONTRACT OFF`) and round-to-odd (RTO)
sticky-bit adjustment so the final fp32-to-fp16 conversion produces the
exact single-rounded result, and generate the vector overloads via
`ternary_def_scalarize.inc`.
build: remove packages cleaning aux side effect
Been bitten by this a few times. Might be useful to make the
download not fail if e.g. make download-packages,aux does not
manage to build the aux set because it's not gotten to the
packages stage yet.
Back in 2014 dev_bsize was replaced with DEV_BSIZE, but with this diff
the calculation was also changed, resulting in the superblock being written
to block 0, instead of 2.
Remove the position calculation entirely since ext2fs should always have
its superblock at 1024 bytes.
OK krw@, gnezdo@, miod@
[MachineBlockPlacement] Avoid quadratic work list scans (NFC) (#244668)
selectBestCandidateBlock() scans the whole work list each time a chain
can't fall through. With many cold blocks off a hot path, this happens
once per cold block, on a list holding all of them.
Keep the work lists as heaps, dropping entries of placed or deleted
blocks once they reach the top.
No functional change; check-llvm and llvm-test-suite output are
unchanged.
editors/ecrire: Switch to a proper upstream
The version is going backwards because the port was pointing to a fork. The
upstream version is actually more recent.
PR: 300725
Approved by: yuri (maintainer timeout)