LLVM/project 9a3e66ebolt/include/bolt/Core DebugData.h, bolt/lib/Core DebugData.cpp DIEBuilder.cpp

[BOLT][DWARF][NFC] Fix DebugStrOffsetsWriter (#100672)

Fix DebugStrOffsetsWriter so updateAddressMap can't be called after it
is finalized.
DeltaFile
+28-0bolt/test/X86/dwarf5-df-larger-batch-size.test
+7-1bolt/lib/Core/DebugData.cpp
+4-1bolt/include/bolt/Core/DebugData.h
+4-1bolt/lib/Rewrite/DWARFRewriter.cpp
+1-1bolt/lib/Core/DIEBuilder.cpp
+44-45 files

LLVM/project 1aa99baclang/lib/Sema SemaTemplateDeduction.cpp, clang/test/SemaTemplate GH18291.cpp cwg2398.cpp

[clang] check deduction consistency when partial ordering function templates

This makes partial ordering of function templates consistent with
other entities.

Fixes #18291
DeltaFile
+584-268clang/lib/Sema/SemaTemplateDeduction.cpp
+106-34clang/test/Templight/templight-empty-entries-fix.cpp
+16-0clang/test/SemaTemplate/GH18291.cpp
+14-0clang/test/SemaTemplate/cwg2398.cpp
+5-9clang/test/SemaTemplate/temp_arg_nontype.cpp
+3-4clang/test/SemaTemplate/temp_arg_type.cpp
+728-3153 files not shown
+731-3179 files

LLVM/project 558315alldb/source/Commands CommandObjectTarget.cpp

[LLDB] Remove the redundent 'properties' variable (#95675)

This is described in (N3) https://pvs-studio.com/en/blog/posts/cpp/1126/

Warning message -
V547 Expression 'properties ++ > 0' is always false.
CommandObjectTarget.cpp:100

I could not understand it properly but the properties++ operation is
performed twice when the target architecture is valid.
First increment seems unnecessary since it is always false '0>0'.

---------

Co-authored-by: xgupta <shivma98.tkg at gmail.com>
DeltaFile
+1-1lldb/source/Commands/CommandObjectTarget.cpp
+1-11 files

LLVM/project a09c0f6libc/benchmarks/gpu LibcGpuBenchmark.h LibcGpuBenchmark.cpp

[libc] Add Minimum Time and Iterations, Reduce Epsilon (#100838)

This PR adds minimums (50 iterations, 500 us, and epsilon of 0.0001) to
ensure that all benchmarks run at least a set number of times before
outputting a final measurement.
DeltaFile
+3-2libc/benchmarks/gpu/LibcGpuBenchmark.h
+1-0libc/benchmarks/gpu/LibcGpuBenchmark.cpp
+4-22 files

LLVM/project 3eb7a8ellvm/test/Transforms/InstCombine select-load.ll multiple-uses-load-bitcast-select.ll, llvm/test/Transforms/SROA phi-with-duplicate-pred.ll select-load.ll

[NFC][InstCombine][SROA][Asan] Precommit test affected by #100773

Some optimizations need to be undone with
sanitizers by #100773.

Pull Request: https://github.com/llvm/llvm-project/pull/100844
DeltaFile
+104-0llvm/test/Transforms/InstCombine/select-load.ll
+45-0llvm/test/Transforms/SROA/phi-with-duplicate-pred.ll
+23-1llvm/test/Transforms/SROA/select-load.ll
+24-0llvm/test/Transforms/InstCombine/multiple-uses-load-bitcast-select.ll
+21-0llvm/test/Transforms/SROA/phi-and-select.ll
+15-0llvm/test/Transforms/InstCombine/ptr-replace-alloca.ll
+232-12 files not shown
+252-18 files

LLVM/project 6c404f7llvm/lib/Analysis Loads.cpp, llvm/test/Transforms/InstCombine select-load.ll strnlen-2.ll

[InstCombine][asan] Don't speculate loads before `select ptr`

Even if memory is valid from `llvm` point of view,
e.g. local alloca, sanitizers have API for user
specific memory annotations.

This annotations can be used to track size of the
local object, e.g. inline vector like may prevent
accessed beyond the current vector size.

So valid programs should not access those parts of
alloca before checking preconditions.

Fixes #100639.

Pull Request: https://github.com/llvm/llvm-project/pull/100773
DeltaFile
+101-0llvm/test/Transforms/InstCombine/select-load.ll
+32-9llvm/test/Transforms/SROA/select-load.ll
+20-7llvm/test/Transforms/SROA/phi-and-select.ll
+6-2llvm/lib/Analysis/Loads.cpp
+6-1llvm/test/Transforms/InstCombine/strnlen-2.ll
+3-2llvm/test/Transforms/SROA/phi-with-duplicate-pred.ll
+168-212 files not shown
+174-238 files

LLVM/project 0fce1ballvm/include/llvm/Analysis Loads.h, polly/lib/Analysis ScopDetection.cpp ScopBuilder.cpp

[NFC][Load] Make `ScanFrom` required parameters

In #100773 we will go conservative for sanitizers,
so it's better to pinpoint location consciously.

Pull Request: https://github.com/llvm/llvm-project/pull/100789
DeltaFile
+2-4llvm/include/llvm/Analysis/Loads.h
+2-1polly/lib/Analysis/ScopDetection.cpp
+1-1polly/lib/Analysis/ScopBuilder.cpp
+5-63 files

LLVM/project a33fda5llvm/include/llvm/Analysis ValueTracking.h Loads.h, llvm/lib/Analysis Loads.cpp ValueTracking.cpp

[NFC][Load] Find better place for `mustSuppressSpeculation`

And extract `suppressSpeculativeLoadForSanitizers`.

Pull Request: https://github.com/llvm/llvm-project/pull/100794
DeltaFile
+13-0llvm/lib/Analysis/Loads.cpp
+0-11llvm/lib/Analysis/ValueTracking.cpp
+0-7llvm/include/llvm/Analysis/ValueTracking.h
+7-0llvm/include/llvm/Analysis/Loads.h
+20-184 files

LLVM/project bb51b9cllvm/test/Transforms/InstCombine multiple-uses-load-bitcast-select.ll ptr-replace-alloca.ll, llvm/test/Transforms/SROA phi-with-duplicate-pred.ll select-load.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+45-0llvm/test/Transforms/SROA/phi-with-duplicate-pred.ll
+23-1llvm/test/Transforms/SROA/select-load.ll
+24-0llvm/test/Transforms/InstCombine/multiple-uses-load-bitcast-select.ll
+21-0llvm/test/Transforms/SROA/phi-and-select.ll
+15-0llvm/test/Transforms/InstCombine/ptr-replace-alloca.ll
+10-0llvm/test/Transforms/InstCombine/strnlen-2.ll
+138-11 files not shown
+148-17 files

LLVM/project dd4531ellvm/test/Transforms/InstCombine multiple-uses-load-bitcast-select.ll ptr-replace-alloca.ll, llvm/test/Transforms/SROA phi-with-duplicate-pred.ll select-load.ll

[NFC][InstCombine][SROA][Asan] Precommit test affected by #100773

Some optimization need to be undone with
sanitizers by #100773.

Pull Request: https://github.com/llvm/llvm-project/pull/100844
DeltaFile
+45-0llvm/test/Transforms/SROA/phi-with-duplicate-pred.ll
+23-1llvm/test/Transforms/SROA/select-load.ll
+24-0llvm/test/Transforms/InstCombine/multiple-uses-load-bitcast-select.ll
+21-0llvm/test/Transforms/SROA/phi-and-select.ll
+15-0llvm/test/Transforms/InstCombine/ptr-replace-alloca.ll
+10-0llvm/test/Transforms/InstCombine/strnlen-2.ll
+138-11 files not shown
+148-17 files

LLVM/project 47aea61llvm/test/Transforms/InstCombine multiple-uses-load-bitcast-select.ll

[NFC] Fix upate_test_checks warning
DeltaFile
+4-4llvm/test/Transforms/InstCombine/multiple-uses-load-bitcast-select.ll
+4-41 files

LLVM/project b32c38alld/ELF ScriptParser.cpp

[ELF] Replace some while (peek() != ")" && !atEOF()) with till
DeltaFile
+4-8lld/ELF/ScriptParser.cpp
+4-81 files

LLVM/project cd354e3llvm/test/Transforms/SROA phi-with-duplicate-pred.ll

[NFC][SROA] Regenerate a test

New update_test_checks.py use a difference spacing.
DeltaFile
+10-10llvm/test/Transforms/SROA/phi-with-duplicate-pred.ll
+10-101 files

LLVM/project 5f37585llvm/utils/gn/secondary/llvm/tools/llvm-ctxprof-util BUILD.gn

[gn] port 7f3dcf4b2e10 (llvm-ctxprof-util no driver)
DeltaFile
+1-3llvm/utils/gn/secondary/llvm/tools/llvm-ctxprof-util/BUILD.gn
+1-31 files

LLVM/project 497e2e8llvm/test/Transforms/VectorCombine/X86 load-widening.ll load-inseltpoison.ll

[NFC][VectorCombine] Add negative sanitizer tests (#100832)

They are already work as expected.
DeltaFile
+80-0llvm/test/Transforms/VectorCombine/X86/load-widening.ll
+52-0llvm/test/Transforms/VectorCombine/X86/load-inseltpoison.ll
+132-02 files

LLVM/project 10bb296lld/ELF ScriptParser.cpp

[ELF] Replace some while (peek() != ")" && !atEOF()) with till
DeltaFile
+9-14lld/ELF/ScriptParser.cpp
+9-141 files

LLVM/project 2a89356lld/ELF ScriptParser.cpp ScriptLexer.cpp, lld/test/ELF/linkerscript phdrs.s sections.s

[ELF] Add till and rewrite while (... consume("}"))

After #100493, the idiom `while (!errorCount() && !consume("}"))` could
lead to inaccurate diagnostics or dead loops. Introduce till to change
the code pattern.
DeltaFile
+7-11lld/ELF/ScriptParser.cpp
+11-0lld/ELF/ScriptLexer.cpp
+7-0lld/ELF/ScriptLexer.h
+2-1lld/test/ELF/linkerscript/phdrs.s
+2-1lld/test/ELF/linkerscript/sections.s
+29-135 files

LLVM/project c901b73llvm/lib/Target/RISCV RISCVMergeBaseOffset.cpp, llvm/test/CodeGen/RISCV inline-asm-mem-constraint.ll

[RISCV] Don't crash in RISCVMergeBaseOffset if INLINE_ASM uses address register in a non-memory constraint. (#100790)

If the register is used by a non-memory constraint we should disable the
fold. Otherwise, we may leave CommonOffset unassigned.

Fixes #100779.
DeltaFile
+50-0llvm/test/CodeGen/RISCV/inline-asm-mem-constraint.ll
+9-1llvm/lib/Target/RISCV/RISCVMergeBaseOffset.cpp
+59-12 files

LLVM/project 6cf1ea9lld/test/ELF/linkerscript sections.s overlay.test

[ELF,test] Improve unclosed tests
DeltaFile
+35-17lld/test/ELF/linkerscript/sections.s
+8-0lld/test/ELF/linkerscript/overlay.test
+6-0lld/test/ELF/linkerscript/phdrs.s
+4-0lld/test/ELF/linkerscript/memory-err.s
+53-174 files

LLVM/project c43a970llvm/test/Transforms/VectorCombine/X86 load-inseltpoison.ll

more

Created using spr 1.3.4
DeltaFile
+52-0llvm/test/Transforms/VectorCombine/X86/load-inseltpoison.ll
+52-01 files

LLVM/project 72c3d3fllvm/test/Transforms/VectorCombine/X86 load-widening.ll

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+80-0llvm/test/Transforms/VectorCombine/X86/load-widening.ll
+80-01 files

LLVM/project 4f5ad22lld/test/ELF/linkerscript phdrs.s header-phdr.test

[ELF,test] Improve PHDRS tests
DeltaFile
+82-122lld/test/ELF/linkerscript/phdrs.s
+0-15lld/test/ELF/linkerscript/header-phdr.test
+0-15lld/test/ELF/linkerscript/phdr-check.s
+82-1523 files

LLVM/project 06429a4utils/bazel/llvm-project-overlay/mlir BUILD.bazel

[bazel] Port 26d92826a5ed7894fb6d604c8e0e755daa50cdf7 (#100829)

DeltaFile
+19-0utils/bazel/llvm-project-overlay/mlir/BUILD.bazel
+19-01 files

LLVM/project 0ff9259flang/include/flang/Evaluate tools.h

[flang][cuda][NFC] Extract is cuda device attribute logic (#100809)

DeltaFile
+23-26flang/include/flang/Evaluate/tools.h
+23-261 files

LLVM/project dbb8b7aclang/lib/CodeGen CGGPUBuiltin.cpp, clang/test/OpenMP nvptx_target_printf_codegen.c

Reapply "[OpenMP][libc] Remove special handling for OpenMP printf (#98940)"

This reverts commit fea5914c926e2f013a8b5e27eaa74c7047fb2c71.
DeltaFile
+0-179clang/test/OpenMP/nvptx_target_printf_codegen.c
+0-75libc/src/gpu/rpc_fprintf.cpp
+15-31offload/DeviceRTL/src/LibC.cpp
+0-29clang/lib/CodeGen/CGGPUBuiltin.cpp
+0-23libc/src/gpu/rpc_fprintf.h
+0-12libc/src/gpu/CMakeLists.txt
+15-3496 files not shown
+17-36312 files

LLVM/project aef2a3dbolt/lib/Profile YAMLProfileReader.cpp, bolt/test/X86 yaml-unknown-keys.test

[𝘀𝗽𝗿] initial version

Created using spr 1.3.4
DeltaFile
+50-0bolt/test/X86/yaml-unknown-keys.test
+1-0bolt/lib/Profile/YAMLProfileReader.cpp
+1-0bolt/tools/merge-fdata/merge-fdata.cpp
+52-03 files

LLVM/project db2aa50llvm/include/llvm/SandboxIR SandboxIR.h, llvm/lib/SandboxIR SandboxIR.cpp

[SandboxIR] Implement InvokeInst (#100796)

This patch implements sandboxir::InvokeInst which mirrors
llvm::InvokeInst.
DeltaFile
+91-0llvm/unittests/SandboxIR/SandboxIRTest.cpp
+85-0llvm/lib/SandboxIR/SandboxIR.cpp
+74-4llvm/include/llvm/SandboxIR/SandboxIR.h
+56-0llvm/unittests/SandboxIR/TrackerTest.cpp
+306-44 files

LLVM/project d41f565.github/workflows release-binaries.yml

workflow/release-binaries: Fix typo

Introduced in b0860b20878d2c84fc3ce56ea608c5186872faa2.
DeltaFile
+1-1.github/workflows/release-binaries.yml
+1-11 files

LLVM/project b0860b2.github/workflows release-binaries.yml

workflows/release-binaries: Always pull composite actions from main branch (#100805)

If we pull from the release tag, then if there is a bug in one of the
actions on the release tag, then we can never do a build for that tag.
Pulling from main will allows us to fix bugs in the actions we use to
build the releases.
DeltaFile
+15-5.github/workflows/release-binaries.yml
+15-51 files

LLVM/project fea5914clang/lib/CodeGen CGGPUBuiltin.cpp, libc/spec gpu_ext.td

Revert "[OpenMP][libc] Remove special handling for OpenMP printf (#98940)"

This reverts commit 069e8bcd82c4420239f95c7e6a09e1f756317cfc.

Summary:
Some tests failing, revert this for now.
DeltaFile
+75-0libc/src/gpu/rpc_fprintf.cpp
+30-14offload/DeviceRTL/src/LibC.cpp
+29-0clang/lib/CodeGen/CGGPUBuiltin.cpp
+23-0libc/src/gpu/rpc_fprintf.h
+12-0libc/src/gpu/CMakeLists.txt
+8-0libc/spec/gpu_ext.td
+177-145 files not shown
+183-1611 files