[llvm-branch-commits] [llvm] [llvm][mustache] Simplify debug logging (PR #159193)

2025-09-29 Thread Petr Hosek via llvm-branch-commits
@@ -545,7 +571,7 @@ class AddIndentationStringStream : public MustacheOutputStream { Indent.resize(Indentation, ' '); for (char C : Data) { - LLVM_DEBUG(dbgs() << "IndentationStream: NeedsIndent=" << NeedsIndent + LLVM_DEBUG(dbgs() << "[IndentationStream] Ne

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid extra allocations in parseSection (PR #159199)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159199 >From baee14750289435743b141a067c716b65a859666 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 09:40:04 -0700 Subject: [PATCH] [llvm][mustache] Avoid extra allocations in parseSection We don't

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid redundant saves in accessor splitting (PR #159197)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159197 >From 1e2990f79e4d866bcc6fc3c0113db86db8a4ba2c Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 00:11:47 -0700 Subject: [PATCH] [llvm][mustache] Avoid redundant saves in accessor splitting The s

[llvm-branch-commits] [llvm] [llvm][mustache] Use single pass when tokenizing (PR #159196)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159196 >From 3e3e4ea5d3e855addcc661db7bc7999b301324e6 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 15 Sep 2025 23:27:50 -0700 Subject: [PATCH] [llvm][mustache] Use single pass when tokenizing The old implement

[llvm-branch-commits] [llvm] [llvm][mustache] Simplify debug logging (PR #159193)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159193 >From 79eaa0a04f0b7925145d4032a4629901f23d6bfe Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Sat, 13 Sep 2025 23:21:07 -0700 Subject: [PATCH] [llvm][mustache] Simplify debug logging --- llvm/lib/Support/Must

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid extra allocations in parseSection (PR #159199)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159199 >From 92378defe8a7a4e84589c80c663703055a025580 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 09:40:04 -0700 Subject: [PATCH] [llvm][mustache] Avoid extra allocations in parseSection We don't

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid extra copy for json strings (PR #159195)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159195 >From b9da248b3cb169ec2187b94ed489b9de4554 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 15 Sep 2025 19:54:34 -0700 Subject: [PATCH] [llvm][mustache] Avoid extra copy for json strings --- llvm/lib/S

[llvm-branch-commits] [llvm] [llvm][mustache] Use single pass when tokenizing (PR #159196)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159196 >From cbc1f386bf88525a06976e8284889f720052c7ad Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Mon, 15 Sep 2025 23:27:50 -0700 Subject: [PATCH] [llvm][mustache] Use single pass when tokenizing The old implement

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid extra allocations in parseSection (PR #159199)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159199 >From 057142b5db72fcd1147607898a0e7751e75b6492 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 09:40:04 -0700 Subject: [PATCH] [llvm][mustache] Avoid extra allocations in parseSection We don't

[llvm-branch-commits] [llvm] [LoongArch][DAGCombiner] Combine vxor (vand ..) to vandn (PR #161037)

2025-09-29 Thread Zhaoxin Yang via llvm-branch-commits
@@ -4939,6 +4939,86 @@ void LoongArchTargetLowering::ReplaceNodeResults( } } +// Helper to attempt to return a cheaper, bit-inverted version of \p V. +static SDValue isNOT(SDValue V, SelectionDAG &DAG) { + // TODO: don't always ignore oneuse constraints. + V = peekThroughB

[llvm-branch-commits] [llvm] [llvm][mustache] Avoid redundant saves in accessor splitting (PR #159197)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159197 >From cb29414d1ecc2f15760041072bf8428e8b691bd3 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Tue, 16 Sep 2025 00:11:47 -0700 Subject: [PATCH] [llvm][mustache] Avoid redundant saves in accessor splitting The s

[llvm-branch-commits] [llvm] [llvm][mustache] Simplify debug logging (PR #159193)

2025-09-29 Thread Paul Kirth via llvm-branch-commits
https://github.com/ilovepi updated https://github.com/llvm/llvm-project/pull/159193 >From f153c6a4f81738c9777af5505294e4c83b817bf4 Mon Sep 17 00:00:00 2001 From: Paul Kirth Date: Sat, 13 Sep 2025 23:21:07 -0700 Subject: [PATCH] [llvm][mustache] Simplify debug logging --- llvm/lib/Support/Must

[llvm-branch-commits] ELF: Use preprocessed relocations for EhInputSection scanning (PR #161091)

2025-09-29 Thread Peter Smith via llvm-branch-commits
https://github.com/smithp35 approved this pull request. LGTM. Thanks for the update. https://github.com/llvm/llvm-project/pull/161091 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinf

[llvm-branch-commits] ELF: Use preprocessed relocations for EhInputSection scanning (PR #161091)

2025-09-29 Thread Fangrui Song via llvm-branch-commits
https://github.com/MaskRay updated https://github.com/llvm/llvm-project/pull/161091 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] ELF: Use preprocessed relocations for EhInputSection scanning (PR #161091)

2025-09-29 Thread Fangrui Song via llvm-branch-commits
@@ -473,6 +467,9 @@ class RelocationScanner { template void scanOne(typename Relocs::const_iterator &i); + template MaskRay wrote: Created #161229 to rewrite the file-level comment and give an overview. https://github.com/llvm/llvm-project/pull/161091

[llvm-branch-commits] [clang] [CIR] Upstream AddressSpace casting support (PR #161212)

2025-09-29 Thread via llvm-branch-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff origin/main HEAD --extensions cpp,h -- clang/test/CIR/address-space-conversion.cpp c

[llvm-branch-commits] [clang] [CIR] Upstream AddressSpace casting support (PR #161212)

2025-09-29 Thread David Rivera via llvm-branch-commits
RiverDave wrote: > [!WARNING] > This pull request is not mergeable via GitHub because a downstack PR is > open. Once all requirements are satisfied, merge this PR as a stack href="https://app.graphite.dev/github/pr/llvm/llvm-project/161212?utm_source=stack-comment-downstack-mergeability-warning

[llvm-branch-commits] [clang] [Clang] Introduce -fsanitize=alloc-token (PR #156839)

2025-09-29 Thread Marco Elver via llvm-branch-commits
https://github.com/melver updated https://github.com/llvm/llvm-project/pull/156839 >From b3653330c2c39ebaa094670f11afb0f9d36b9de2 Mon Sep 17 00:00:00 2001 From: Marco Elver Date: Thu, 4 Sep 2025 12:07:26 +0200 Subject: [PATCH] fixup! Insert AllocToken into index.rst Created using spr 1.3.8-bet

[llvm-branch-commits] [llvm] [AMDGPU][MC] Avoid creating lit64() operands unless asked or needed. (PR #161191)

2025-09-29 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Ivan Kosarev (kosarev) Changes There should normally be no need to generate implicit lit64() modifiers on the assembler side. It's the encoder's responsibility to recognise literals that are implicitly 64 bits wide. The exceptions

[llvm-branch-commits] [clang] [Clang] Introduce -fsanitize=alloc-token (PR #156839)

2025-09-29 Thread Hans Wennborg via llvm-branch-commits
@@ -0,0 +1,45 @@ +// RUN: %clang_cc1-fsanitize=alloc-token -falloc-token-max=2147483647 -triple x86_64-linux-gnu -x c -emit-llvm %s -o - | FileCheck %s zmodem wrote: I can sympathize with wanting to test the end-to-end behavior, but maybe that could be put

[llvm-branch-commits] [llvm] [LoongArch] Custom legalize vector_shuffle to `xvinsve0.{w/d}` when possible (PR #161156)

2025-09-29 Thread via llvm-branch-commits
https://github.com/heiher approved this pull request. https://github.com/llvm/llvm-project/pull/161156 ___ llvm-branch-commits mailing list [email protected] https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [AArch64][SME] Support split ZPR and PPR area allocation (PR #142392)

2025-09-29 Thread Sander de Smalen via llvm-branch-commits
@@ -1405,111 +1432,186 @@ void AArch64EpilogueEmitter::emitEpilogue() { NumBytes -= PrologueSaveSize; assert(NumBytes >= 0 && "Negative stack allocation size!?"); - // Process the SVE callee-saves to determine what space needs to be - // deallocated. - StackOffset Deall

[llvm-branch-commits] [llvm] [LoongArch] Make rotl/rotr custom for lsx/lasx (PR #161154)

2025-09-29 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-loongarch Author: Zhaoxin Yang (ylzsx) Changes --- Patch is 21.22 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/161154.diff 6 Files Affected: - (modified) llvm/lib/Target/LoongArch/LoongArchISel

[llvm-branch-commits] [llvm] [LoongArch][DAGCombiner] Combine vxor (vand ..) to vandn (PR #161037)

2025-09-29 Thread via llvm-branch-commits
@@ -4939,6 +4939,86 @@ void LoongArchTargetLowering::ReplaceNodeResults( } } +// Helper to attempt to return a cheaper, bit-inverted version of \p V. +static SDValue isNOT(SDValue V, SelectionDAG &DAG) { + // TODO: don't always ignore oneuse constraints. + V = peekThroughB