[llvm-branch-commits] [clang] [clang-tools-extra] [libcxx] [clang] improved preservation of template keyword (PR #133610)

2025-03-31 Thread Younan Zhang via llvm-branch-commits
@@ -544,6 +545,35 @@ class QualifiedTemplateName : public llvm::FoldingSetNode { } }; +struct IdentifierOrOverloadedOperator { + IdentifierOrOverloadedOperator() = default; + IdentifierOrOverloadedOperator(const IdentifierInfo *II); + IdentifierOrOverloadedOperator(Overlo

[llvm-branch-commits] [clang] [clang-tools-extra] [libcxx] [clang] improved preservation of template keyword (PR #133610)

2025-03-31 Thread Younan Zhang via llvm-branch-commits
https://github.com/zyn0217 approved this pull request. Thanks for the improvement. https://github.com/llvm/llvm-project/pull/133610 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/

[llvm-branch-commits] [clang] [clang-tools-extra] [libcxx] [clang] improved preservation of template keyword (PR #133610)

2025-03-31 Thread Younan Zhang via llvm-branch-commits
@@ -587,12 +587,12 @@ bool Parser::ParseOptionalCXXScopeSpecifier( << II.getName() << FixItHint::CreateInsertion(Tok.getLocation(), "template "); } - -SourceLocation TemplateNameLoc = ConsumeToken(); +ConsumeToken();

[llvm-branch-commits] [clang] [clang-tools-extra] [libcxx] [clang] improved preservation of template keyword (PR #133610)

2025-03-31 Thread Younan Zhang via llvm-branch-commits
@@ -124,6 +124,31 @@ void SubstTemplateTemplateParmPackStorage::Profile( ID.AddBoolean(Final); } +IdentifierOrOverloadedOperator::IdentifierOrOverloadedOperator( +const IdentifierInfo *II) +: PtrOrOp(reinterpret_cast(II)) { + static_assert(NUM_OVERLOADED_OPERATORS <

[llvm-branch-commits] [mlir] [mlir][LLVM] Delete `LLVMFixedVectorType` and `LLVMScalableVectorType` (PR #133286)

2025-03-31 Thread Christian Ulmann via llvm-branch-commits
@@ -959,26 +862,12 @@ Type mlir::LLVM::getVectorType(Type elementType, } Type mlir::LLVM::getFixedVectorType(Type elementType, unsigned numElements) { Dinistro wrote: I guess that we can burn out these API's in a subsequent step? Maybe we should mark them as

[llvm-branch-commits] [mlir] [mlir][LLVM] Delete `LLVMFixedVectorType` and `LLVMScalableVectorType` (PR #133286)

2025-03-31 Thread Christian Ulmann via llvm-branch-commits
@@ -897,8 +821,7 @@ bool mlir::LLVM::isCompatibleVectorType(Type type) { Type mlir::LLVM::getVectorElementType(Type type) { return llvm::TypeSwitch(type) - .Case( - [](auto ty) { return ty.getElementType(); }) + .Case([](auto ty) { return ty.getElementType

[llvm-branch-commits] [mlir] [mlir][LLVM] Delete `LLVMFixedVectorType` and `LLVMScalableVectorType` (PR #133286)

2025-03-31 Thread Christian Ulmann via llvm-branch-commits
@@ -911,41 +834,21 @@ llvm::ElementCount mlir::LLVM::getVectorNumElements(Type type) { return llvm::ElementCount::getScalable(ty.getNumElements()); Dinistro wrote: This `TypeSwitch` is also no longer too useful. https://github.com/llvm/llvm-project/

[llvm-branch-commits] [llvm] llvm-reduce: Reduce global variable code model (PR #133865)

2025-03-31 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-ir Author: Matt Arsenault (arsenm) Changes The current API doesn't have a way to unset it. The query returns an optional, but the set doesn't. Alternatively I could switch the set to also use optional. --- Full diff: https://github.com/llvm/llvm-pr

[llvm-branch-commits] [llvm] llvm-reduce: Add test for token handling in operands-skip (PR #133857)

2025-03-31 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/133857 Seems to work correctly but wasn't tested. >From 4182da49f37add4eff4c2e3acd32a609ef985338 Mon Sep 17 00:00:00 2001 From: Matt Arsenault Date: Tue, 1 Apr 2025 11:48:22 +0700 Subject: [PATCH] llvm-reduce: Add test

[llvm-branch-commits] [llvm] llvm-reduce: Add test for token handling in operands-skip (PR #133857)

2025-03-31 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm ready_for_review https://github.com/llvm/llvm-project/pull/133857 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] llvm-reduce: Add test for token handling in operands-skip (PR #133857)

2025-03-31 Thread Matt Arsenault via llvm-branch-commits
arsenm 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/133857?utm_source=stack-comment-downstack-mergeability-warning";

[llvm-branch-commits] [llvm] Backport/20.x: [LoongArch] Fix the type of tls-le symbols (PR #133027)

2025-03-31 Thread via llvm-branch-commits
zhaoqi5 wrote: > LGTM. > > Note: test/CodeGen is probably not the best place for such tests. > `test/MC/CSKY/relocation-specifier.s` contains a nice example and tests > multiple relocations at the same time. Modified in https://github.com/llvm/llvm-project/pull/133839, thanks. https://github

[llvm-branch-commits] [llvm] llvm-reduce: Fix overly conservative operands-to-args user restriction (PR #133854)

2025-03-31 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/133854 I assume this was a leftover from typed pointers. It's easier to replace the non-callee uses, they are just replacable pointer values. >From 83ba71fe5eff72cd5f08b41a848c44b93dea3de9 Mon Sep 17 00:00:00 2001 From:

[llvm-branch-commits] [llvm] llvm-reduce: Fix introducing unreachable code in simplify conditionals (PR #133842)

2025-03-31 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm created https://github.com/llvm/llvm-project/pull/133842 After replacing the branch condition, this was calling simplifyCFG to perform the cleanups of the branch. This is far too heavy of a hammer. We do not want all of the extra optimizations in simplifyCFG, and this c

[llvm-branch-commits] [llvm] Backport/20.x: [LoongArch] Fix the type of tls-le symbols (PR #133027)

2025-03-31 Thread via llvm-branch-commits
zhaoqi5 wrote: > > LGTM. > > Note: test/CodeGen is probably not the best place for such tests. > > `test/MC/CSKY/relocation-specifier.s` contains a nice example and tests > > multiple relocations at the same time. > > Will this be fixed in the main branch? Thanks. I have open a new PR (https:

[llvm-branch-commits] [llvm] release/20.x: [workflows] Add missing -y option to apt-get for abi tests (#133337) (PR #133813)

2025-03-31 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/133813 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [LV] Reduce register usage for scaled reductions (PR #133090)

2025-03-31 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 5f81501485b6c9d3e6a35fd382e1c10634e9658c b11c7631712479056bfd588c5031c065a53466fc --e

[llvm-branch-commits] [compiler-rt] [Sanitizers][Darwin][Test] XFAIL malloc_zone.cpp (PR #133832)

2025-03-31 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-compiler-rt-sanitizer Author: Mariusz Borsa (wrotki) Changes The malloc_zone.cpp test currently fails on Darwin hosts, in SanitizerCommon tests with lsan enabled. Need to XFAIL this test to buy time to investigate this failure. Also we're trying to bri

[llvm-branch-commits] [llvm] release/20.x: [TailDuplicator] Determine if computed gotos using `blockaddress` (#132536) (PR #133082)

2025-03-31 Thread Tom Stellard via llvm-branch-commits
tstellar wrote: This has some CI test faliures. https://github.com/llvm/llvm-project/pull/133082 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [compiler-rt] release/20.x: [Sanitizers][Darwin][Test] XFAIL malloc_zone.cpp (PR #133832)

2025-03-31 Thread Mariusz Borsa via llvm-branch-commits
https://github.com/wrotki edited https://github.com/llvm/llvm-project/pull/133832 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] release/20.x: [LoongArch][MC] Add relocation support for fld fst [x]vld [x]vst (PR #133836)

2025-03-31 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/133836 Backport 725a7b664b92cd2e884806de5a08900b43d43cce d055e58334a91dcbaee22eb87bcdae85a1f33cd4 Requested by: @SixWeining >From e7f024dd3ae770af9f766e4b86a43b2df9e6dc1a Mon Sep 17 00:00:00 2001 From: wanglei Date:

[llvm-branch-commits] [compiler-rt] [Sanitizers][Darwin][Test] XFAIL malloc_zone.cpp (PR #133832)

2025-03-31 Thread Mariusz Borsa via llvm-branch-commits
https://github.com/wrotki updated https://github.com/llvm/llvm-project/pull/133832 >From ca129ea5996c2f2b99868bccd2246690a65b6c9e Mon Sep 17 00:00:00 2001 From: Mariusz Borsa Date: Mon, 31 Mar 2025 17:06:41 -0700 Subject: [PATCH] [Sanitizers][Darwin][Test] XFAIL malloc_zone.cpp The malloc_zone

[llvm-branch-commits] [compiler-rt] release/20.x: XFAIL malloc_zone.cpp for darwin/lsan (#131234) (PR #133006)

2025-03-31 Thread Mariusz Borsa via llvm-branch-commits
https://github.com/wrotki closed https://github.com/llvm/llvm-project/pull/133006 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [compiler-rt] [Sanitizers][Darwin][Test] XFAIL malloc_zone.cpp (PR #133832)

2025-03-31 Thread Mariusz Borsa via llvm-branch-commits
https://github.com/wrotki created https://github.com/llvm/llvm-project/pull/133832 The malloc_zone.cpp test currently fails on Darwin hosts, in SanitizerCommon tests with lsan enabled. Need to XFAIL this test to buy time to investigate this failure. Also we're trying to bring the number of tes

[llvm-branch-commits] compiler-rt: Introduce runtime functions for emulated PAC. (PR #133530)

2025-03-31 Thread Chris B via llvm-branch-commits
https://github.com/llvm-beanz requested changes to this pull request. We cannot introduce BSD-licensed code to compiler-rt. Please see [my comment for more details](https://github.com/llvm/llvm-project/pull/133530#discussion_r2021952691). https://github.com/llvm/llvm-project/pull/133530 __

[llvm-branch-commits] [llvm] release/20.x: [workflows] Add missing -y option to apt-get for abi tests (#133337) (PR #133813)

2025-03-31 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-github-workflow Author: None (llvmbot) Changes Backport 7793bae97d2bad36d870c6df438a6fc034f15112 Requested by: @tstellar --- Full diff: https://github.com/llvm/llvm-project/pull/133813.diff 2 Files Affected: - (modified) .github/workflows/libclang-a

[llvm-branch-commits] [llvm] release/20.x: [workflows] Add missing -y option to apt-get for abi tests (#133337) (PR #133813)

2025-03-31 Thread Aiden Grossman via llvm-branch-commits
https://github.com/boomanaiden154 approved this pull request. https://github.com/llvm/llvm-project/pull/133813 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] release/20.x: [workflows] Add missing -y option to apt-get for abi tests (#133337) (PR #133813)

2025-03-31 Thread via llvm-branch-commits
llvmbot wrote: @boomanaiden154 What do you think about merging this PR to the release branch? https://github.com/llvm/llvm-project/pull/133813 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailma

[llvm-branch-commits] [llvm] release/20.x: [workflows] Add missing -y option to apt-get for abi tests (#133337) (PR #133813)

2025-03-31 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/133813 Backport 7793bae97d2bad36d870c6df438a6fc034f15112 Requested by: @tstellar >From 2f6c5807ca7e8263c634eee22a8a353994011dc9 Mon Sep 17 00:00:00 2001 From: Tom Stellard Date: Mon, 31 Mar 2025 15:30:05 -0700 Subjec

[llvm-branch-commits] [llvm] [Metadata] Preserve MD_prof when merging instructions when one is missing. (PR #132433)

2025-03-31 Thread Snehasish Kumar via llvm-branch-commits
https://github.com/snehasish updated https://github.com/llvm/llvm-project/pull/132433 >From 4680029efc3f4e350f7a07033088a9925b9300d7 Mon Sep 17 00:00:00 2001 From: Snehasish Kumar Date: Fri, 21 Mar 2025 17:00:38 + Subject: [PATCH] Update tests, apply clang-tidy suggestions --- llvm/lib/Tr

[llvm-branch-commits] [llvm] [Metadata] Preserve MD_prof when merging instructions when one is missing. (PR #132433)

2025-03-31 Thread Snehasish Kumar via llvm-branch-commits
https://github.com/snehasish updated https://github.com/llvm/llvm-project/pull/132433 >From 4680029efc3f4e350f7a07033088a9925b9300d7 Mon Sep 17 00:00:00 2001 From: Snehasish Kumar Date: Fri, 21 Mar 2025 17:00:38 + Subject: [PATCH] Update tests, apply clang-tidy suggestions --- llvm/lib/Tr

[llvm-branch-commits] [llvm] [SDAG] Introduce inbounds flag for pointer arithmetic (PR #131862)

2025-03-31 Thread Eli Friedman via llvm-branch-commits
efriedma-quic wrote: If we have PTRADD without a corresponding pointer type, the operand of the PTRADD is implicitly an inttoptr, which causes the problems we're discussing. Which... the IR layer doesn't really properly preserve inttoptr operations in all circumstances, but we're trying to fi

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Add infastructure to parse parameters (PR #133800)

2025-03-31 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 HEAD~1 HEAD --extensions h,cpp -- clang/include/clang/Parse/ParseHLSLRootSignature.h

[llvm-branch-commits] ELF: Add support for R_AARCH64_INST32 relocation. (PR #133534)

2025-03-31 Thread Peter Collingbourne via llvm-branch-commits
pcc wrote: > Apologies for the delay in responding, just come back from vacation. Not had > a chance to look through the Discourse posts yet, will do so this week. > > While it may seem a bit premature, would you be able to open an issue in the > AArch64 ABI (https://github.com/ARM-software/ab

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Add infastructure to parse parameters (PR #133800)

2025-03-31 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-hlsl Author: Finn Plummer (inbelic) Changes - defines `ParamType` as a way to represent a reference to some parameter in a root signature - defines `ParseParam` and `ParseParams` as an infastructure to define how the parameters of a given struct should

[llvm-branch-commits] [clang] [llvm] [HLSL][RootSignature] Add infastructure to parse parameters (PR #133800)

2025-03-31 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic created https://github.com/llvm/llvm-project/pull/133800 - defines `ParamType` as a way to represent a reference to some parameter in a root signature - defines `ParseParam` and `ParseParams` as an infastructure to define how the parameters of a given struct should be

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-03-31 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 7810f30bb64b71e006ff7f0b16dff684ed63597b 77c230f82a61769714bee98b2e848820850d9cb5 --e

[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

2025-03-31 Thread Kai Nacke via llvm-branch-commits
https://github.com/redstar created https://github.com/llvm/llvm-project/pull/133799 The GOFF format uses symbol definitions to represent sections and symbols. Introducing a section can require up to 3 symbol definitions. However, most of these details are not needed by the AsmPrinter. To mappe

[llvm-branch-commits] [clang] [HLSL] Define the HLSLRootSignature Attr (PR #123985)

2025-03-31 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic closed https://github.com/llvm/llvm-project/pull/123985 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [clang] 068da73 - Revert "[Clang][Cmake] fix libtool duplicate member name warnings (#133619)"

2025-03-31 Thread via llvm-branch-commits
Author: Farzon Lotfi Date: 2025-03-31T16:51:59-04:00 New Revision: 068da73e6dab35fdbd18c6b5c3ad1e0a9ed5a783 URL: https://github.com/llvm/llvm-project/commit/068da73e6dab35fdbd18c6b5c3ad1e0a9ed5a783 DIFF: https://github.com/llvm/llvm-project/commit/068da73e6dab35fdbd18c6b5c3ad1e0a9ed5a783.diff

[llvm-branch-commits] [clang] 0de37ec - Revert "[HLSL][RootSignature] Implement parsing of a DescriptorTable with emp…"

2025-03-31 Thread via llvm-branch-commits
Author: Finn Plummer Date: 2025-03-31T13:17:55-07:00 New Revision: 0de37ec26159a6840c93e6595975445ac6c0e642 URL: https://github.com/llvm/llvm-project/commit/0de37ec26159a6840c93e6595975445ac6c0e642 DIFF: https://github.com/llvm/llvm-project/commit/0de37ec26159a6840c93e6595975445ac6c0e642.diff

[llvm-branch-commits] [llvm] bc65196 - update test due to https://github.com/llvm/llvm-project/pull/126880 not being backported

2025-03-31 Thread Tom Stellard via llvm-branch-commits
Author: Lei Huang Date: 2025-03-31T12:51:21-07:00 New Revision: bc65196c0919f337e7efcaaa1c7fb20ac988b3d4 URL: https://github.com/llvm/llvm-project/commit/bc65196c0919f337e7efcaaa1c7fb20ac988b3d4 DIFF: https://github.com/llvm/llvm-project/commit/bc65196c0919f337e7efcaaa1c7fb20ac988b3d4.diff LOG

[llvm-branch-commits] [llvm] [PowerPC] Support conversion between f16 and f128 (#130158) (PR #133279)

2025-03-31 Thread via llvm-branch-commits
github-actions[bot] wrote: @lei137 (or anyone else). If you would like to add a note about this fix in the release notes (completely optional). Please reply to this comment with a one or two sentence description of the fix. When you are done, please add the release:note label to this PR. ht

[llvm-branch-commits] [llvm] [PowerPC] Support conversion between f16 and f128 (#130158) (PR #133279)

2025-03-31 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/133279 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [PowerPC] Support conversion between f16 and f128 (#130158) (PR #133279)

2025-03-31 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar updated https://github.com/llvm/llvm-project/pull/133279 >From bc65196c0919f337e7efcaaa1c7fb20ac988b3d4 Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Thu, 27 Mar 2025 17:27:45 + Subject: [PATCH] update test due to https://github.com/llvm/llvm-project/pull/12688

[llvm-branch-commits] [llvm] release/20.x: [ARM] Speedups for CombineBaseUpdate. (#129725) (PR #130035)

2025-03-31 Thread Tom Stellard via llvm-branch-commits
https://github.com/tstellar closed https://github.com/llvm/llvm-project/pull/130035 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] release/20.x: [ARM] Speedups for CombineBaseUpdate. (#129725) (PR #130035)

2025-03-31 Thread via llvm-branch-commits
https://github.com/llvmbot updated https://github.com/llvm/llvm-project/pull/130035 >From d6d1dbf221814b2a28cb234e72c7d81730ff26e7 Mon Sep 17 00:00:00 2001 From: David Green Date: Thu, 6 Mar 2025 09:35:12 + Subject: [PATCH] [ARM] Speedups for CombineBaseUpdate. (#129725) This attempts to p

[llvm-branch-commits] compiler-rt: Introduce runtime functions for emulated PAC. (PR #133530)

2025-03-31 Thread Peter Collingbourne via llvm-branch-commits
@@ -0,0 +1,115 @@ +#include pcc wrote: Correct, I forgot to add one. Will add. https://github.com/llvm/llvm-project/pull/133530 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llv

[llvm-branch-commits] [llvm] llvm-reduce: Preserve uselistorder when writing thinlto bitcode (PR #133369)

2025-03-31 Thread Teresa Johnson via llvm-branch-commits
https://github.com/teresajohnson edited https://github.com/llvm/llvm-project/pull/133369 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: analyze functions without CFG information (PR #133461)

2025-03-31 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/133461 >From 4572e7635d2cd9a7d00c3d0f332eec6c35cdf10b Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Wed, 19 Mar 2025 18:58:32 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: analyze functions without CF

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: Detect address materialization and arithmetics (PR #132540)

2025-03-31 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/132540 >From c975f5b73958d2aeadf82c0a7b736e713d8798ae Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Thu, 20 Mar 2025 20:15:07 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: Detect address materializati

[llvm-branch-commits] [llvm] [BOLT] Make DataflowAnalysis::getStateBefore() const (NFC) (PR #133308)

2025-03-31 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/133308 >From 12d4a200bee45399a64fdeaee37f6edd5eee4bfd Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Thu, 27 Mar 2025 21:06:55 +0300 Subject: [PATCH] [BOLT] Make DataflowAnalysis::getStateBefore() const (N

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: analyze functions without CFG information (PR #133461)

2025-03-31 Thread Anatoly Trosinenko via llvm-branch-commits
https://github.com/atrosinenko updated https://github.com/llvm/llvm-project/pull/133461 >From 4572e7635d2cd9a7d00c3d0f332eec6c35cdf10b Mon Sep 17 00:00:00 2001 From: Anatoly Trosinenko Date: Wed, 19 Mar 2025 18:58:32 +0300 Subject: [PATCH 1/2] [BOLT] Gadget scanner: analyze functions without CF

[llvm-branch-commits] [clang] [clang-tools-extra] [libcxx] [clang] improved preservation of template keyword (PR #133610)

2025-03-31 Thread Matheus Izvekov via llvm-branch-commits
mizvekov wrote: @zwuis thanks for finding these. I removed that assertion because it was not relevant anymore at that point where it existed. However, we should still not have an ElaboratedType in a NestedNameSpecifier, although this patch moves us in the direction where that will not be the

[llvm-branch-commits] [llvm] [LV] Reduce register usage for scaled reductions (PR #133090)

2025-03-31 Thread Sam Tebbs via llvm-branch-commits
@@ -5026,10 +5026,23 @@ calculateRegisterUsage(VPlan &Plan, ArrayRef VFs, // even in the scalar case. RegUsage[ClassID] += 1; } else { +// The output from scaled phis and scaled reductions actually have +// fewer lanes

[llvm-branch-commits] ELF: Add support for R_AARCH64_INST32 relocation. (PR #133534)

2025-03-31 Thread Peter Smith via llvm-branch-commits
smithp35 wrote: Apologies for the delay in responding, just come back from vacation. Not had a chance to look through the Discourse posts yet, will do so this week. While it may seem a bit premature, would you be able to open an issue in the AArch64 ABI (https://github.com/ARM-software/abi-aa/

[llvm-branch-commits] [llvm] llvm-reduce: Preserve uselistorder when writing thinlto bitcode (PR #133369)

2025-03-31 Thread Teresa Johnson via llvm-branch-commits
https://github.com/teresajohnson approved this pull request. lgtm but please remove the FIXME for the reason noted below https://github.com/llvm/llvm-project/pull/133369 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://li

[llvm-branch-commits] [llvm] [LV] Reduce register usage for scaled reductions (PR #133090)

2025-03-31 Thread Sam Tebbs via llvm-branch-commits
https://github.com/SamTebbs33 updated https://github.com/llvm/llvm-project/pull/133090 >From 6193c2c846710472c7e604ef33a15cda18771328 Mon Sep 17 00:00:00 2001 From: Samuel Tebbs Date: Wed, 26 Mar 2025 14:01:59 + Subject: [PATCH 1/3] [LV] Reduce register usage for scaled reductions --- ...

[llvm-branch-commits] [llvm] [PowerPC] Support conversion between f16 and f128 (#130158) (PR #133279)

2025-03-31 Thread Lei Huang via llvm-branch-commits
https://github.com/lei137 updated https://github.com/llvm/llvm-project/pull/133279 >From 9cb7ed36484774b012b8e17c79fccc161c36d116 Mon Sep 17 00:00:00 2001 From: Lei Huang Date: Thu, 27 Mar 2025 17:27:45 + Subject: [PATCH] update test due to https://github.com/llvm/llvm-project/pull/126880

[llvm-branch-commits] [flang] release/20.x: [flang] Fix missed case of symbol renaming in module file generation (#132475) (PR #133223)

2025-03-31 Thread Paul Osmialowski via llvm-branch-commits
https://github.com/pawosm-arm updated https://github.com/llvm/llvm-project/pull/133223 >From 78b0eb25e001071d7793bd8f253c3d2efc5cbf0a Mon Sep 17 00:00:00 2001 From: Peter Klausler Date: Wed, 26 Mar 2025 12:09:38 -0700 Subject: [PATCH] [flang] Fix missed case of symbol renaming in module file g

[llvm-branch-commits] [flang] release/20.x: [flang] Fix missed case of symbol renaming in module file generation (#132475) (PR #133223)

2025-03-31 Thread Eugene Epshteyn via llvm-branch-commits
https://github.com/eugeneepshteyn approved this pull request. https://github.com/llvm/llvm-project/pull/133223 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [LoopInterchange] Improve profitability check for vectorization (PR #133672)

2025-03-31 Thread Ryotaro Kasuga via llvm-branch-commits
kasuga-fj wrote: Depends on #133667 https://github.com/llvm/llvm-project/pull/133672 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: Detect address materialization and arithmetics (PR #132540)

2025-03-31 Thread Kristof Beyls via llvm-branch-commits
@@ -355,37 +399,39 @@ class PacRetAnalysis return State(); } +// First, compute various properties of the instruction, taking the state +// before its execution into account, if necessary. + +BitVector Clobbered = getClobberedRegs(Point); +// Compute

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: Detect address materialization and arithmetics (PR #132540)

2025-03-31 Thread Kristof Beyls via llvm-branch-commits
@@ -587,6 +587,22 @@ class MCPlusBuilder { return getNoRegister(); } + virtual MCPhysReg getSafelyMaterializedAddressReg(const MCInst &Inst) const { +llvm_unreachable("not implemented"); +return getNoRegister(); + } + + /// Analyzes if this instruction can saf

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: Detect address materialization and arithmetics (PR #132540)

2025-03-31 Thread Kristof Beyls via llvm-branch-commits
@@ -1,7 +1,8 @@ if "AArch64" not in config.root.targets: config.unsupported = True -flags = "--target=aarch64-linux-gnu -nostartfiles -nostdlib -ffreestanding" +# -Wl,--no-relax prevents converting ADRP+ADD pairs into NOP+ADR. +flags = "--target=aarch64-linux-gnu -nostartf

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: Detect address materialization and arithmetics (PR #132540)

2025-03-31 Thread Kristof Beyls via llvm-branch-commits
@@ -335,6 +335,50 @@ class PacRetAnalysis }); } + BitVector getClobberedRegs(const MCInst &Point) const { +BitVector Clobbered(NumRegs, false); +// Assume a call can clobber all registers, including callee-saved +// registers. There's a good chance that call

[llvm-branch-commits] [llvm] [BOLT] Gadget scanner: Detect address materialization and arithmetics (PR #132540)

2025-03-31 Thread Kristof Beyls via llvm-branch-commits
@@ -587,6 +587,22 @@ class MCPlusBuilder { return getNoRegister(); } + virtual MCPhysReg getSafelyMaterializedAddressReg(const MCInst &Inst) const { +llvm_unreachable("not implemented"); +return getNoRegister(); + } kbeyls wrote: I think that

[llvm-branch-commits] [llvm] [SDAG] Introduce inbounds flag for pointer arithmetic (PR #131862)

2025-03-31 Thread Fabian Ritter via llvm-branch-commits
https://github.com/ritter-x2a updated https://github.com/llvm/llvm-project/pull/131862 >From ee21919269e84f95b07c65c90937cc13d25202ad Mon Sep 17 00:00:00 2001 From: Fabian Ritter Date: Mon, 17 Mar 2025 06:51:16 -0400 Subject: [PATCH] [SDAG] Introduce inbounds flag for pointer arithmetic This p

[llvm-branch-commits] [llvm] [AMDGPU][SDAG] Only fold flat offsets if they are inbounds (PR #132353)

2025-03-31 Thread Fabian Ritter via llvm-branch-commits
https://github.com/ritter-x2a updated https://github.com/llvm/llvm-project/pull/132353 >From a8155cf5b7847a041be8d4252b20cae01d305404 Mon Sep 17 00:00:00 2001 From: Fabian Ritter Date: Fri, 21 Mar 2025 03:33:02 -0400 Subject: [PATCH] [AMDGPU][SDAG] Only fold flat offsets if they are inbounds F

[llvm-branch-commits] [llvm] [SDAG] Introduce inbounds flag for pointer arithmetic (PR #131862)

2025-03-31 Thread Fabian Ritter via llvm-branch-commits
https://github.com/ritter-x2a updated https://github.com/llvm/llvm-project/pull/131862 >From ee21919269e84f95b07c65c90937cc13d25202ad Mon Sep 17 00:00:00 2001 From: Fabian Ritter Date: Mon, 17 Mar 2025 06:51:16 -0400 Subject: [PATCH] [SDAG] Introduce inbounds flag for pointer arithmetic This p

[llvm-branch-commits] [llvm] [LoopInterchange] Fix the vectorizable check for a loop (PR #133667)

2025-03-31 Thread Ryotaro Kasuga via llvm-branch-commits
kasuga-fj wrote: Depends on #133665 https://github.com/llvm/llvm-project/pull/133667 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

[llvm-branch-commits] [llvm] release/20.x: [ARM] Speedups for CombineBaseUpdate. (#129725) (PR #130035)

2025-03-31 Thread Daniel Kiss via llvm-branch-commits
https://github.com/DanielKristofKiss approved this pull request. LGMT https://github.com/llvm/llvm-project/pull/130035 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-c