LLVM/project 0135cf9llvm/lib/ProfileData/Coverage CoverageMappingReader.cpp

[Coverage] Fix quadratic propagation in RawCoverageMappingReader (#194996)

```
llvm-cov export /tmp/Cov/bin/lld -instr-profile=/tmp/Cov/cov.profdata -format=lcov --sources lld/ELF/Arch/RISCV.cpp
```
does not finish after minutes.

Root cause: The expansion-region count propagation loop is bounded by
`VirtualFileMapping.size()`, the number of macro expansions.

In the TableGen-generated `RISCVGenDAGISel.inc` (depended on by
LLVMLTO), `NumFileMappings` is 74941 (largely due to the `TARGET_VAL`
macro). With 149887 mapping regions, the loop does not finish after more
than ten minutes.

Fix with an early break.
DeltaFile
+13-6llvm/lib/ProfileData/Coverage/CoverageMappingReader.cpp
+13-61 files

LLVM/project 8b41ee5llvm/lib/Transforms/Vectorize SLPVectorizer.cpp

Address comment

Created using spr 1.3.7
DeltaFile
+0-6llvm/lib/Transforms/Vectorize/SLPVectorizer.cpp
+0-61 files

LLVM/project e353364llvm/lib/Target/AMDGPU AMDGPULowerVGPREncoding.cpp, llvm/test/CodeGen/AMDGPU vgpr-setreg-mode-swar.mir hazard-setreg-vgpr-msb-gfx1250.mir

[AMDGPU] Refactor setreg handling in the VGPR MSB lowering (#186491)

It can skip inserting S_SET_VGPR_MSB if we set the mode via
piggybacking. We are now relying on the HW bug for correct
behavior. If/when the bug is fixed lowering will be incorrect.

SETREG is not a piggybacking target anymore. Instead piggybacking is
disabled if we have seen a SETREG since the last mode change.
DeltaFile
+117-48llvm/test/CodeGen/AMDGPU/vgpr-setreg-mode-swar.mir
+14-34llvm/lib/Target/AMDGPU/AMDGPULowerVGPREncoding.cpp
+9-3llvm/test/CodeGen/AMDGPU/hazard-setreg-vgpr-msb-gfx1250.mir
+140-853 files

LLVM/project ea012e4utils/bazel/llvm-project-overlay/libc/test/src/sys/mman BUILD.bazel

[Bazel] Fixes 581e9d7 (#195290)

This fixes 581e9d7d125f1573b1eae4a421a0bee9b0e61760.

Co-authored-by: Google Bazel Bot <google-bazel-bot at google.com>
DeltaFile
+11-0utils/bazel/llvm-project-overlay/libc/test/src/sys/mman/BUILD.bazel
+11-01 files

LLVM/project 581e9d7libc/src/sys/mman mmap.h, libc/test/integration/src/pthread CMakeLists.txt

[libc][NFC] Remove <sys/mman.h> from mmap.h and fix tests (#195240)

Removed the last direct <sys/mman.h> include from mmap.h, replacing it
with hdr/types/size_t.h and hdr/types/off_t.h.

Added hdr/sys_mman_macros.h to test files that relied on transitive
includes for PROT_READ, MAP_ANONYMOUS, and similar macros.
DeltaFile
+11-0libc/test/src/sys/mman/linux/CMakeLists.txt
+2-1libc/src/sys/mman/mmap.h
+2-0libc/test/integration/src/pthread/CMakeLists.txt
+1-0libc/test/src/sys/mman/linux/madvise_test.cpp
+1-0libc/test/src/sys/mman/linux/posix_madvise_test.cpp
+1-0libc/test/src/sys/mman/linux/mmap_test.cpp
+18-116 files not shown
+34-122 files

LLVM/project 0e23b2cclang/test/AST ast-dump-templates.cpp, llvm/test/CodeGen/RISCV rvp-simd-64.ll atomic-rmw.ll

Rebase

Created using spr 1.3.7
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+5,061-4,162llvm/test/CodeGen/Thumb2/mve-clmul.ll
+4,652-0llvm/test/CodeGen/RISCV/rvp-simd-64.ll
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+3,230-456llvm/test/CodeGen/WebAssembly/strided-int-mac.ll
+1,519-1,501llvm/test/Transforms/LoopVectorize/X86/x86-interleaved-accesses-masked-group.ll
+17,530-17,5783,551 files not shown
+154,008-91,2703,557 files

LLVM/project 5ef58e1clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608743 files not shown
+31,526-30,559749 files

LLVM/project a00706cclang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608742 files not shown
+31,524-30,559748 files

LLVM/project d22ea4fclang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608742 files not shown
+31,524-30,559748 files

LLVM/project 04c8e18clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608742 files not shown
+31,521-30,557748 files

LLVM/project 93b2570clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608742 files not shown
+31,521-30,557748 files

LLVM/project 28ac2d5clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608738 files not shown
+31,513-30,556744 files

LLVM/project a0e6647clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608738 files not shown
+31,513-30,556744 files

LLVM/project 8a6b84cclang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU div.ll rem.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608737 files not shown
+31,492-30,537743 files

LLVM/project 6504c3aclang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU div.ll rem.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608737 files not shown
+31,492-30,537743 files

LLVM/project 82cc114clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608710 files not shown
+31,465-30,537716 files

LLVM/project 2b7bc57clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU div.ll rem.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608710 files not shown
+31,465-30,537716 files

LLVM/project 3923f14clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608710 files not shown
+31,465-30,537716 files

LLVM/project b83881fclang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608710 files not shown
+31,465-30,537716 files

LLVM/project c56fde8clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608710 files not shown
+31,465-30,537716 files

LLVM/project ba0479eclang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608710 files not shown
+31,465-30,537716 files

LLVM/project 1b4d843clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU div.ll rem.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608710 files not shown
+31,465-30,537716 files

LLVM/project b0bc94eclang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU div.ll rem.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608710 files not shown
+31,465-30,537716 files

LLVM/project da60cd0clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608709 files not shown
+31,463-30,534715 files

LLVM/project 16b30ecclang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU div.ll rem.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608709 files not shown
+31,463-30,534715 files

LLVM/project 032d3f4clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608709 files not shown
+31,463-30,534715 files

LLVM/project 7fa77e6clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU div.ll rem.ll

rebase

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608709 files not shown
+31,463-30,534715 files

LLVM/project 14eae3bclang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608709 files not shown
+31,463-30,534715 files

LLVM/project 802afa1clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU rem.ll div.ll

rebase/reorder

Created using spr 1.3.5
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608732 files not shown
+31,718-30,534738 files

LLVM/project 84d15f4clang/test/AST ast-dump-templates.cpp, llvm/test/Analysis/CostModel/AMDGPU div.ll rem.ll

[𝘀𝗽𝗿] changes introduced through rebase

Created using spr 1.3.5

[skip ci]
DeltaFile
+648-9,339clang/test/AST/ast-dump-templates.cpp
+2,420-2,120llvm/test/CodeGen/RISCV/atomic-rmw.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/div.ll
+952-952llvm/test/Analysis/CostModel/AMDGPU/rem.ll
+643-643llvm/test/Analysis/CostModel/AMDGPU/insertelement.ll
+532-602llvm/test/CodeGen/X86/vector-reduce-umin.ll
+6,147-14,608732 files not shown
+31,718-30,534738 files