[llvm-branch-commits] [clang] [AstMatcher]`templateArgumentCountIs` support `FunctionDecl` (PR #130416)

2025-03-11 Thread Congcong Cai via llvm-branch-commits
HerrCai0907 wrote: dump-ast-matchers has some bug. I will fix it after https://github.com/llvm/llvm-project/pull/130726 merging https://github.com/llvm/llvm-project/pull/130416 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org ht

[llvm-branch-commits] [lld] [lld][LoongArch] Convert TLS IE to LE in the normal or medium code model (PR #123680)

2025-03-11 Thread Zhaoxin Yang via llvm-branch-commits
https://github.com/ylzsx updated https://github.com/llvm/llvm-project/pull/123680 >From 0f580567169ffbf1546a5389ab4b9f7d1fc07c71 Mon Sep 17 00:00:00 2001 From: yangzhaoxin Date: Thu, 2 Jan 2025 20:58:56 +0800 Subject: [PATCH 1/5] Convert TLS IE to LE in the normal or medium code model. Origina

[llvm-branch-commits] [llvm] [AMDGPU] Allocate scratch space for dVGPRs for CWSR (PR #130055)

2025-03-11 Thread Carl Ritson via llvm-branch-commits
https://github.com/perlfu approved this pull request. LGTM nit: can you note somewhere (in a comment) that `ScratchReservedForDynamicVGPRs` is in bytes -- the magic divide by 4 to set `dynamic_vgpr_saved_count` was not entirely obvious. https://github.com/llvm/llvm-project/pull/130055 ___

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SIMemoryLegalizer to NPM (PR #130060)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
optimisan wrote: Perhaps best to avoid large stacks like this to reduce upstack rebasing on mid-stack updates. https://github.com/llvm/llvm-project/pull/130060 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SIInsertWaitcnts to NPM (PR #130061)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130061 >From 0818ab4b709c83d80a149d7ce41d0cf796de7497 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 04:41:08 + Subject: [PATCH 1/2] [AMDGPU][NPM] Port SIInsertWaitcnts to NPM --- llvm/lib/Targ

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port FEntryInserter to NPM (PR #129857)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/129857 >From b15d39cf6236a02212e5b802153d1614d2c8884e Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Wed, 5 Mar 2025 09:19:08 + Subject: [PATCH 1/2] [CodeGen][NPM] Port FEntryInserter to NPM --- llvm/include/l

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port FEntryInserter to NPM (PR #129857)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Akshat Oke (optimisan) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/129857.diff 8 Files Affected: - (added) llvm/include/llvm/CodeGen/FEntryInserter.h (+25) - (modified) llvm/include/llvm/InitializePasses.h (

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port FEntryInserter to NPM (PR #129857)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
optimisan wrote: There were no existing tests, added one. https://github.com/llvm/llvm-project/pull/129857 ___ 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] [CodeGen][NPM] Port FEntryInserter to NPM (PR #129857)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/129857 >From b15d39cf6236a02212e5b802153d1614d2c8884e Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Wed, 5 Mar 2025 09:19:08 + Subject: [PATCH 1/2] [CodeGen][NPM] Port FEntryInserter to NPM --- llvm/include/l

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port FEntryInserter to NPM (PR #129857)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/129857 >From b15d39cf6236a02212e5b802153d1614d2c8884e Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Wed, 5 Mar 2025 09:19:08 + Subject: [PATCH 1/2] [CodeGen][NPM] Port FEntryInserter to NPM --- llvm/include/l

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port PatchableFunction to NPM (PR #129866)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-aarch64 Author: Akshat Oke (optimisan) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/129866.diff 8 Files Affected: - (added) llvm/include/llvm/CodeGen/PatchableFunction.h (+30) - (modified) llvm/include/llvm/InitializePas

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port XRayInstrumentation to NPM (PR #129865)

2025-03-11 Thread via llvm-branch-commits
@@ -143,11 +170,43 @@ void XRayInstrumentation::prependRetWithPatchableExit( } } -bool XRayInstrumentation::runOnMachineFunction(MachineFunction &MF) { +PreservedAnalyses +XRayInstrumentationPass::run(MachineFunction &MF, + MachineFunctionAnalys

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SIPreEmitPeephole to NPM (PR #130065)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130065 >From 8e8a5ace64ed51ba5466af56a642efdb8f9c8a38 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 06:20:13 + Subject: [PATCH 1/2] [AMDGPU][NPM] Port SIPreEmitPeephole to NPM --- llvm/lib/Tar

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SIPreEmitPeephole to NPM (PR #130065)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130065 >From 8e8a5ace64ed51ba5466af56a642efdb8f9c8a38 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 06:20:13 + Subject: [PATCH 1/2] [AMDGPU][NPM] Port SIPreEmitPeephole to NPM --- llvm/lib/Tar

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port RemoveLoadsIntoFakeUses to NPM (PR #130068)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130068 >From 88b0e7fda861484572721c3fda7c020afa1b456b Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 09:30:37 + Subject: [PATCH 1/2] [CodeGen][NPM] Port RemoveLoadsIntoFakeUses to NPM --- .../l

[llvm-branch-commits] [mlir] [MLIR][OpenMP] Minor improvements to BlockArgOpenMPOpInterface, NFC (PR #130789)

2025-03-11 Thread Sergio Afonso via llvm-branch-commits
https://github.com/skatrak created https://github.com/llvm/llvm-project/pull/130789 This patch introduces a use for the new `getBlockArgsPairs` to avoid having to manually list each applicable clause. Also, the `numClauseBlockArgs()` function is introduced, which simplifies the implementation

[llvm-branch-commits] [mlir] [MLIR][OpenMP] Minor improvements to BlockArgOpenMPOpInterface, NFC (PR #130789)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-openmp Author: Sergio Afonso (skatrak) Changes This patch introduces a use for the new `getBlockArgsPairs` to avoid having to manually list each applicable clause. Also, the `numClauseBlockArgs()` function is introduced, which simplifies the impl

[llvm-branch-commits] [mlir] [MLIR][OpenMP] Minor improvements to BlockArgOpenMPOpInterface, NFC (PR #130789)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-flang-openmp @llvm/pr-subscribers-mlir Author: Sergio Afonso (skatrak) Changes This patch introduces a use for the new `getBlockArgsPairs` to avoid having to manually list each applicable clause. Also, the `numClauseBlockArgs()` function is introduced,

[llvm-branch-commits] [mlir] [MLIR][OpenMP] Minor improvements to BlockArgOpenMPOpInterface, NFC (PR #130789)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-mlir-llvm Author: Sergio Afonso (skatrak) Changes This patch introduces a use for the new `getBlockArgsPairs` to avoid having to manually list each applicable clause. Also, the `numClauseBlockArgs()` function is introduced, which simplifies the implem

[llvm-branch-commits] [llvm] [SeparateConstOffsetFromGEP] Preserve inbounds flag based on ValueTracking (PR #130617)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu @llvm/pr-subscribers-llvm-transforms Author: Fabian Ritter (ritter-x2a) Changes If we know that the initial GEP was inbounds, and we change it to a sequence of GEPs from the same base pointer where every offset is non-negative, then the ne

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Ádám Kallai via llvm-branch-commits
@@ -180,13 +178,16 @@ void DataAggregator::start() { if (opts::ArmSPE) { if (!opts::BasicAggregation) { - errs() << "PERF2BOLT-ERROR: Arm SPE mode is combined only with " -"BasicAggregation.\n"; - exit(1); + // pidfrom_ip to_ip

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port PostRAHazardRecognizer to NPM (PR #130066)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130066 >From cd2a7ff03443f983ac247c41d697d2c85fb8b821 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 06:42:54 + Subject: [PATCH 1/2] [CodeGen][NPM] Port PostRAHazardRecognizer to NPM --- .../ll

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SIInsertHardClauses to NPM (PR #130062)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130062 >From 4edbd96b9a5599e8e315ce90393e91d29539f81c Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 04:52:38 + Subject: [PATCH 1/2] [AMDGPU][NPM] Port SIInsertHardClauses to NPM --- llvm/lib/T

[llvm-branch-commits] [llvm] [SeparateConstOffsetFromGEP] Preserve inbounds flag based on ValueTracking (PR #130617)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm deleted https://github.com/llvm/llvm-project/pull/130617 ___ 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: [X86][AVX10.2] Fix unexpected larger scope (#130767) (PR #130774)

2025-03-11 Thread Simon Pilgrim via llvm-branch-commits
https://github.com/RKSimon approved this pull request. https://github.com/llvm/llvm-project/pull/130774 ___ 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] [AMDGPU][NPM] Port SILateBranchLowering to NPM (PR #130063)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130063 >From c7ec8bbf224754fcddbf8dc26aba07d655e69869 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 05:26:49 + Subject: [PATCH 1/2] [AMDGPU][NPM] Port SILateBranchLowering to NPM --- llvm/lib/

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port AMDGPUSetWavePriority to NPM (PR #130064)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130064 >From 0793691bb216221b7010ae8ce4ef26ba3d678be7 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 06:07:23 + Subject: [PATCH 1/2] [AMDGPU][NPM] Port AMDGPUSetWavePriority to NPM --- llvm/lib

[llvm-branch-commits] [llvm] release/20.x: [X86][AVX10.2] Fix unexpected larger scope (#130767) (PR #130774)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: None (llvmbot) Changes Backport fcce3084cb43a12f2e6e19b8e5b655f3df8739d6 Requested by: @phoebewang --- Full diff: https://github.com/llvm/llvm-project/pull/130774.diff 2 Files Affected: - (modified) llvm/lib/Target/X86/X86InstrSS

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Ádám Kallai via llvm-branch-commits
https://github.com/kaadam edited https://github.com/llvm/llvm-project/pull/129231 ___ 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] [mlir] [MLIR][OpenMP] Minor improvements to BlockArgOpenMPOpInterface, NFC (PR #130789)

2025-03-11 Thread Tom Eccles via llvm-branch-commits
https://github.com/tblah approved this pull request. LGTM, thanks https://github.com/llvm/llvm-project/pull/130789 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commi

[llvm-branch-commits] [clang] [CUDA][HIP] fix virtual dtor host/device attr (PR #130126)

2025-03-11 Thread Yaxun Liu via llvm-branch-commits
yxsamliu wrote: @tstellar Is this PR the right procedure for c-p a fix to LLVM release branch? Thanks. https://github.com/llvm/llvm-project/pull/130126 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: Temporal divergence lowering (non i1) (PR #124298)

2025-03-11 Thread Petar Avramovic via llvm-branch-commits
https://github.com/petar-avramovic updated https://github.com/llvm/llvm-project/pull/124298 >From 31f4387623100e815d478245ca78b6dcc52f869e Mon Sep 17 00:00:00 2001 From: Petar Avramovic Date: Fri, 28 Feb 2025 15:56:04 +0100 Subject: [PATCH] AMDGPU/GlobalISel: Temporal divergence lowering (non i

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: Update divergence lowering tests (PR #128702)

2025-03-11 Thread Petar Avramovic via llvm-branch-commits
https://github.com/petar-avramovic updated https://github.com/llvm/llvm-project/pull/128702 >From 8e33358f5f3ca6167cc585acb7661d7a5f4a8568 Mon Sep 17 00:00:00 2001 From: Petar Avramovic Date: Fri, 28 Feb 2025 15:54:55 +0100 Subject: [PATCH] AMDGPU/GlobalISel: Update divergence lowering tests I

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: Update divergence lowering tests (PR #128702)

2025-03-11 Thread Petar Avramovic via llvm-branch-commits
https://github.com/petar-avramovic updated https://github.com/llvm/llvm-project/pull/128702 >From 8e33358f5f3ca6167cc585acb7661d7a5f4a8568 Mon Sep 17 00:00:00 2001 From: Petar Avramovic Date: Fri, 28 Feb 2025 15:54:55 +0100 Subject: [PATCH] AMDGPU/GlobalISel: Update divergence lowering tests I

[llvm-branch-commits] [llvm] AMDGPU/GlobalISel: Temporal divergence lowering (non i1) (PR #124298)

2025-03-11 Thread Petar Avramovic via llvm-branch-commits
https://github.com/petar-avramovic updated https://github.com/llvm/llvm-project/pull/124298 >From 31f4387623100e815d478245ca78b6dcc52f869e Mon Sep 17 00:00:00 2001 From: Petar Avramovic Date: Fri, 28 Feb 2025 15:56:04 +0100 Subject: [PATCH] AMDGPU/GlobalISel: Temporal divergence lowering (non i

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port XRayInstrumentation to NPM (PR #129865)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan ready_for_review https://github.com/llvm/llvm-project/pull/129865 ___ 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] [AMDGPU] Dynamic VGPR support for llvm.amdgcn.cs.chain (PR #130094)

2025-03-11 Thread Diana Picus via llvm-branch-commits
@@ -116,14 +117,56 @@ static void splitBlock(MachineBasicBlock &MBB, MachineInstr &MI, MDT->applyUpdates(DTUpdates); } -void SILateBranchLowering::expandChainCall(MachineInstr &MI) { +static void addRegOrCopyOp(MachineInstrBuilder &MIB, MachineOperand &Op) { + if (Op.isReg

[llvm-branch-commits] [llvm] [AMDGPU] Dynamic VGPR support for llvm.amdgcn.cs.chain (PR #130094)

2025-03-11 Thread Diana Picus via llvm-branch-commits
@@ -736,6 +742,26 @@ multiclass si_cs_chain_tc_patterns< defm : si_cs_chain_tc_patterns; defm : si_cs_chain_tc_patterns; +// Match dynamic VGPR case. This is always indirect since we choose the callee +// dynamically based on the result of the VGPR reallocation, so make sure t

[llvm-branch-commits] [mlir] [mlir][memref] Add runtime verification for `memref.copy` (PR #130437)

2025-03-11 Thread Matthias Springer via llvm-branch-commits
@@ -182,6 +182,53 @@ struct CastOpInterface } }; +struct CopyOpInterface +: public RuntimeVerifiableOpInterface::ExternalModel { + void generateRuntimeVerification(Operation *op, OpBuilder &builder, + Location loc) const { +auto cop

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port VirtRegRewriter to NPM (PR #130564)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130564 >From b1194b992d8aa79a000766e441af31f17aa05c07 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Mon, 10 Mar 2025 06:14:27 + Subject: [PATCH 1/3] [CodeGen][NPM] Port VirtRegRewriter to NPM Not sure why this

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port GCNCreateVOPD to NPM (PR #130059)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan ready_for_review https://github.com/llvm/llvm-project/pull/130059 ___ 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] [AMDGPU][NFC] Format GCNCreateVOPD.cpp (PR #130548)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130548 >From 0ab8c65820460ee4654337d5374a6e5e944159b6 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Mon, 10 Mar 2025 04:31:20 + Subject: [PATCH] [AMDGPU][NFC] Format GCNCreateVOPD.cpp --- llvm/lib/Target/AMDG

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port XRayInstrumentation to NPM (PR #129865)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-x86 Author: Akshat Oke (optimisan) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/129865.diff 9 Files Affected: - (added) llvm/include/llvm/CodeGen/XRayInstrumentation.h (+25) - (modified) llvm/include/llvm/InitializePasse

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port GCNCreateVOPD to NPM (PR #130059)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130059 >From 6f2706299060e3d17750a6fdcee0e46d961933d3 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Wed, 5 Mar 2025 10:52:00 + Subject: [PATCH 1/2] [AMDGPU][NPM] Port GCNCreateVOPD to NPM --- llvm/lib/Target/

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port PatchableFunction to NPM (PR #129866)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/129866 >From d2af6dc817ed482666b6c1816bcf7afc9f29eafe Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Wed, 5 Mar 2025 10:34:25 + Subject: [PATCH 1/2] [CodeGen][NPM] Port PatchableFunction to NPM --- llvm/includ

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port XRayInstrumentation to NPM (PR #129865)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/129865 >From 103b199cbf6ce84a49067b1a6065efee7254fbcc Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Wed, 5 Mar 2025 10:11:27 + Subject: [PATCH] [CodeGen][NPM] Port XRayInstrumentation to NPM --- .../llvm/Code

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port XRayInstrumentation to NPM (PR #129865)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/129865 >From c00160bd9726b68d0b1a9d026f9cd24898784126 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Wed, 5 Mar 2025 10:11:27 + Subject: [PATCH] [CodeGen][NPM] Port XRayInstrumentation to NPM --- .../llvm/Code

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port XRayInstrumentation to NPM (PR #129865)

2025-03-11 Thread via llvm-branch-commits
@@ -143,11 +170,43 @@ void XRayInstrumentation::prependRetWithPatchableExit( } } -bool XRayInstrumentation::runOnMachineFunction(MachineFunction &MF) { +PreservedAnalyses +XRayInstrumentationPass::run(MachineFunction &MF, + MachineFunctionAnalys

[llvm-branch-commits] [llvm] [AMDGPU][NFC] Format GCNCreateVOPD.cpp (PR #130548)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/130548 ___ 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] [Driver][RISCV] Integrate RISCV target in baremetal toolchain object and deprecate RISCVToolchain object.(3/3) (PR #121831)

2025-03-11 Thread Garvit Gupta via llvm-branch-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/121831 >From 71eee0d4ef36e13b0f62a4b9ca92614ed7f7a750 Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Mon, 6 Jan 2025 10:05:08 -0800 Subject: [PATCH] [RISCV] Integrate RISCV target in baremetal toolchain object

[llvm-branch-commits] [clang] [Driver] Change linker job in Baremetal toolchain object accomodate GCCInstallation.(2/3) (PR #121830)

2025-03-11 Thread Garvit Gupta via llvm-branch-commits
https://github.com/quic-garvgupt updated https://github.com/llvm/llvm-project/pull/121830 >From b6dac4bc46c17ff561929b202de4b2914e80f0dd Mon Sep 17 00:00:00 2001 From: Garvit Gupta Date: Mon, 6 Jan 2025 09:21:11 -0800 Subject: [PATCH] [RISCV] Change linker job in Baremetal toolchain object to

[llvm-branch-commits] [llvm] [AMDGPU] Dynamic VGPR support for llvm.amdgcn.cs.chain (PR #130094)

2025-03-11 Thread Diana Picus via llvm-branch-commits
@@ -1200,34 +1225,78 @@ bool AMDGPUCallLowering::lowerTailCall( if (!IsSibCall) CallSeqStart = MIRBuilder.buildInstr(AMDGPU::ADJCALLSTACKUP); - unsigned Opc = - getCallOpcode(MF, Info.Callee.isReg(), true, ST.isWave32(), CalleeCC); + bool IsChainCall = AMDGPU::isC

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SILateBranchLowering to NPM (PR #130063)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130063 >From 70a3b5827ef2a8579ea6218cf9f797ffd3d79404 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 05:26:49 + Subject: [PATCH] [AMDGPU][NPM] Port SILateBranchLowering to NPM --- llvm/lib/Targ

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port GCNCreateVOPD to NPM (PR #130059)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130059 >From 6f2706299060e3d17750a6fdcee0e46d961933d3 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Wed, 5 Mar 2025 10:52:00 + Subject: [PATCH 1/3] [AMDGPU][NPM] Port GCNCreateVOPD to NPM --- llvm/lib/Target/

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port GCNCreateVOPD to NPM (PR #130059)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Akshat Oke (optimisan) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/130059.diff 5 Files Affected: - (modified) llvm/lib/Target/AMDGPU/AMDGPU.h (+7-1) - (modified) llvm/lib/Target/AMDGPU/AMDGPUPassRegistry.

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port GCNCreateVOPD to NPM (PR #130059)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
@@ -104,6 +104,7 @@ MACHINE_FUNCTION_PASS("amdgpu-rewrite-partial-reg-uses", GCNRewritePartialRegUse MACHINE_FUNCTION_PASS("amdgpu-pre-ra-optimizations", GCNPreRAOptimizationsPass()) MACHINE_FUNCTION_PASS("amdgpu-nsa-reassign", GCNNSAReassignPass()) MACHINE_FUNCTION_PASS("gcn

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SIMemoryLegalizer to NPM (PR #130060)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130060 >From 8a70796b25b7d308f5fbdd38999a6f841637d76d Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Wed, 5 Mar 2025 11:06:40 + Subject: [PATCH 1/2] [AMDGPU][NPM] Port SIMemoryLegalizer to NPM --- llvm/lib/Tar

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port StackFrameLayoutAnalysisPass to NPM (PR #130070)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
optimisan wrote: > No tests? Couldn't find a standalone test, `CodeGen/X86/stack-frame-layout-remarks.ll` will need the complete pipeline till this pass. https://github.com/llvm/llvm-project/pull/130070 ___ llvm-branch-commits mailing list llvm-branc

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port MachineSanitizerBinaryMetadata to NPM (PR #130069)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130069 >From b5c636f7bc6d46ee6e7798a5c91d2eecb54b8122 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 10:20:36 + Subject: [PATCH 1/2] [CodeGen][NPM] Port MachineSanitizerBinaryMetadata to NPM ---

[llvm-branch-commits] [clang] release/20.x: [Clang] Fix an integer overflow issue in computing CTAD's parameter depth (PR #128845)

2025-03-11 Thread Younan Zhang via llvm-branch-commits
https://github.com/zyn0217 milestoned https://github.com/llvm/llvm-project/pull/128845 ___ 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] [CodeGen][NPM] Port BranchRelaxation to NPM (PR #130067)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130067 >From 7861e458d4e695275be8738ee75e65a7981dc752 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 06:56:04 + Subject: [PATCH 1/2] [CodeGen][NPM] Port BranchRelaxation to NPM This completes th

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port VirtRegRewriter to NPM (PR #130564)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130564 >From b1194b992d8aa79a000766e441af31f17aa05c07 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Mon, 10 Mar 2025 06:14:27 + Subject: [PATCH 1/3] [CodeGen][NPM] Port VirtRegRewriter to NPM Not sure why this

[llvm-branch-commits] [clang] 00e5b6d - Revert "Revert "[clang] Lower modf builtin using `llvm.modf` intrinsic" (#127…"

2025-03-11 Thread via llvm-branch-commits
Author: Benjamin Maxwell Date: 2025-03-11T12:10:13Z New Revision: 00e5b6d7e46ef55325676ed4fd95a2f6929cb0c7 URL: https://github.com/llvm/llvm-project/commit/00e5b6d7e46ef55325676ed4fd95a2f6929cb0c7 DIFF: https://github.com/llvm/llvm-project/commit/00e5b6d7e46ef55325676ed4fd95a2f6929cb0c7.diff L

[llvm-branch-commits] [llvm] [AMDGPU] Allocate scratch space for dVGPRs for CWSR (PR #130055)

2025-03-11 Thread Diana Picus via llvm-branch-commits
https://github.com/rovka updated https://github.com/llvm/llvm-project/pull/130055 >From 3e20edfc6f3b1bfa60f5d778ce98c1fb984b1aee Mon Sep 17 00:00:00 2001 From: Diana Picus Date: Tue, 24 Sep 2024 09:57:25 +0200 Subject: [PATCH 1/8] [AMDGPU] Allocate scratch space for dVGPRs for CWSR The CWSR tr

[llvm-branch-commits] [llvm] release/20.x: [X86][AVX10.2] Fix unexpected larger scope (#130767) (PR #130774)

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

[llvm-branch-commits] [llvm] release/20.x: [X86][AVX10.2] Fix unexpected larger scope (#130767) (PR #130774)

2025-03-11 Thread via llvm-branch-commits
https://github.com/llvmbot created https://github.com/llvm/llvm-project/pull/130774 Backport fcce3084cb43a12f2e6e19b8e5b655f3df8739d6 Requested by: @phoebewang >From 39addf851df56f44f1d3ef79fbce7a03bd17ec82 Mon Sep 17 00:00:00 2001 From: Phoebe Wang Date: Tue, 11 Mar 2025 21:20:27 +0800 Subje

[llvm-branch-commits] [llvm] release/20.x: [X86][AVX10.2] Fix unexpected larger scope (#130767) (PR #130774)

2025-03-11 Thread via llvm-branch-commits
https://github.com/llvmbot milestoned https://github.com/llvm/llvm-project/pull/130774 ___ 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] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Ádám Kallai via llvm-branch-commits
@@ -113,6 +153,37 @@ TEST_F(PerfSpeEventsTestHelper, SpeBranches) { EXPECT_TRUE(checkEvents(1234, 10, {"branches-spe:"})); } +TEST_F(PerfSpeEventsTestHelper, SpeBranchesWithBrstack) { + // Check perf input with SPE branch events as brstack format. + // Example collection c

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Ádám Kallai via llvm-branch-commits
@@ -88,6 +89,45 @@ struct PerfSpeEventsTestHelper : public testing::Test { return SampleSize == DA.BasicSamples.size(); } + + /// Compare LBREntries + bool checkLBREntry(const LBREntry &Lhs, const LBREntry &Rhs) { +return Lhs.From == Rhs.From && Lhs.To == Rhs.To &&

[llvm-branch-commits] [flang] [flang][OpenMP] Map simple `do concurrent` loops to OpenMP host constructs (PR #127633)

2025-03-11 Thread Sergio Afonso via llvm-branch-commits
@@ -0,0 +1,45 @@ +! Tests that if `do concurrent` is not perfectly nested in its parent loop, that +! we skip converting the not-perfectly nested `do concurrent` loop. + +! RUN: %flang_fc1 -emit-hlfir -fopenmp -fdo-concurrent-to-openmp=host %s -o - \ +! RUN: | FileCheck %s + +p

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port MachineSanitizerBinaryMetadata to NPM (PR #130069)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan edited https://github.com/llvm/llvm-project/pull/130069 ___ 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] [CodeGen][NPM] Port BranchRelaxation to NPM (PR #130067)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/130067 ___ 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] [AMDGPU][NPM] Port SILateBranchLowering to NPM (PR #130063)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-amdgpu Author: Akshat Oke (optimisan) Changes --- Full diff: https://github.com/llvm/llvm-project/pull/130063.diff 6 Files Affected: - (modified) llvm/lib/Target/AMDGPU/AMDGPU.h (+9-1) - (modified) llvm/lib/Target/AMDGPU/AMDGPUPassRegistry.

[llvm-branch-commits] [llvm] [AMDGPU] Dynamic VGPR support for llvm.amdgcn.cs.chain (PR #130094)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
@@ -116,14 +117,56 @@ static void splitBlock(MachineBasicBlock &MBB, MachineInstr &MI, MDT->applyUpdates(DTUpdates); } -void SILateBranchLowering::expandChainCall(MachineInstr &MI) { +static void addRegOrCopyOp(MachineInstrBuilder &MIB, MachineOperand &Op) { + if (Op.isReg

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Paschalis Mpeis via llvm-branch-commits
@@ -180,13 +178,16 @@ void DataAggregator::start() { if (opts::ArmSPE) { if (!opts::BasicAggregation) { - errs() << "PERF2BOLT-ERROR: Arm SPE mode is combined only with " -"BasicAggregation.\n"; - exit(1); + // pidfrom_ip to_ip

[llvm-branch-commits] [llvm] release/20.x: [HEXAGON] Fix hvx-isel for extract_subvector op (#129672) (PR #130215)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-backend-hexagon Author: None (llvmbot) Changes Backport 29d3fc3f11d272a72ac255af9277c740f26c3dfc Requested by: @androm3da --- Patch is 38.60 KiB, truncated to 20.00 KiB below, full version: https://github.com/llvm/llvm-project/pull/130215.diff 4 Fi

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port VirtRegRewriter to NPM (PR #130564)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-llvm-regalloc Author: Akshat Oke (optimisan) Changes Not sure why this is squished into VirtRegMap.h --- Full diff: https://github.com/llvm/llvm-project/pull/130564.diff 12 Files Affected: - (modified) llvm/include/llvm/CodeGen/VirtRegMap.h (+15) -

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port AMDGPUSetWavePriority to NPM (PR #130064)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan created https://github.com/llvm/llvm-project/pull/130064 None >From f7988c3f991966d71339aebe4223d64e30038eb9 Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 06:07:23 + Subject: [PATCH] [AMDGPU][NPM] Port AMDGPUSetWavePriority to NPM --- llvm/l

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SIInsertWaitcnts to NPM (PR #130061)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan ready_for_review https://github.com/llvm/llvm-project/pull/130061 ___ 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] [DirectX] Updating Root Signature documentation with Descriptor table description (PR #129797)

2025-03-11 Thread Finn Plummer via llvm-branch-commits
https://github.com/inbelic edited https://github.com/llvm/llvm-project/pull/129797 ___ 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] [CodeGen][NPM] Port VirtRegRewriter to NPM (PR #130564)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
@@ -726,6 +771,14 @@ void VirtRegRewriter::rewrite() { RewriteRegs.clear(); } +void VirtRegRewriterPass::printPipeline( +raw_ostream &OS, function_ref) const { + OS << "virt-reg-rewriter<"; + if (!ClearVirtRegs) +OS << "no-"; + OS << "clear-vregs>"; --

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SIPreEmitPeephole to NPM (PR #130065)

2025-03-11 Thread Christudasan Devadasan via llvm-branch-commits
https://github.com/cdevadas approved this pull request. https://github.com/llvm/llvm-project/pull/130065 ___ 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] [CodeGen][NPM] Port StackFrameLayoutAnalysisPass to NPM (PR #130070)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130070 >From 9aaee4f8ac21bc46d25d33e666deb491a36c Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Thu, 6 Mar 2025 10:45:25 + Subject: [PATCH] [CodeGen][NPM] Port StackFrameLayoutAnalysisPass to NPM --- .../

[llvm-branch-commits] [clang] [CUDA][HIP] fix virtual dtor host/device attr (#128926) (PR #130126)

2025-03-11 Thread via llvm-branch-commits
llvmbot wrote: @llvm/pr-subscribers-clang Author: Yaxun (Sam) Liu (yxsamliu) Changes When inferring host device attr of virtual dtor of explicit template class instantiation, clang should be conservative. This guarantees dtors that may call host functions not to have implicit device attr

[llvm-branch-commits] [llvm] [AMDGPU][NPM] Port SIPreEmitPeephole to NPM (PR #130065)

2025-03-11 Thread Akshat Oke via llvm-branch-commits
https://github.com/optimisan updated https://github.com/llvm/llvm-project/pull/130065 >From 78bcc3a3576cc1f0dba5c9feb5ed781a62877ffe Mon Sep 17 00:00:00 2001 From: Akshat Oke Date: Mon, 10 Mar 2025 04:31:20 + Subject: [PATCH 1/9] [AMDGPU][NFC] Format GCNCreateVOPD.cpp --- llvm/lib/Target/

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Paschalis Mpeis via llvm-branch-commits
https://github.com/paschalis-mpeis edited https://github.com/llvm/llvm-project/pull/129231 ___ 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] [CodeGen][NPM] Port PatchableFunction to NPM (PR #129866)

2025-03-11 Thread Christudasan Devadasan via llvm-branch-commits
https://github.com/cdevadas approved this pull request. https://github.com/llvm/llvm-project/pull/129866 ___ 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] obj2yaml: Add "detailed" output in CovMap dump (PR #129473)

2025-03-11 Thread NAKAMURA Takumi via llvm-branch-commits
https://github.com/chapuni updated https://github.com/llvm/llvm-project/pull/129473 >From e2dd98690a0f43b35ee22d59efeb04d2c7fead68 Mon Sep 17 00:00:00 2001 From: NAKAMURA Takumi Date: Mon, 3 Mar 2025 12:26:08 +0900 Subject: [PATCH] detailed --- llvm/include/llvm/ObjectYAML/CovMap.h | 9

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port MachineSanitizerBinaryMetadata to NPM (PR #130069)

2025-03-11 Thread Christudasan Devadasan via llvm-branch-commits
@@ -20,34 +20,53 @@ #include "llvm/IR/MDBuilder.h" #include "llvm/InitializePasses.h" #include "llvm/Pass.h" +#include "llvm/Transforms/Instrumentation/SanitizerBinaryMetadata.h" #include using namespace llvm; namespace { -class MachineSanitizerBinaryMetadata : public M

[llvm-branch-commits] [llvm] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Paschalis Mpeis via llvm-branch-commits
@@ -180,13 +178,16 @@ void DataAggregator::start() { if (opts::ArmSPE) { if (!opts::BasicAggregation) { - errs() << "PERF2BOLT-ERROR: Arm SPE mode is combined only with " -"BasicAggregation.\n"; - exit(1); + // pidfrom_ip to_ip

[llvm-branch-commits] [libclc] release/20.x: [libclc] Stop installing CLC headers (#126908) (PR #130017)

2025-03-11 Thread Fraser Cormack via llvm-branch-commits
frasercrmck wrote: > Given the release is already out, I don't think it makes sense to pull this > from the install in the release branch True. You could argue that anyone using the (broken) headers in LLVM 20 is well aware of how broken they are, so pulling them from the release doesn't help

[llvm-branch-commits] [llvm] [SeparateConstOffsetFromGEP] Preserve inbounds flag based on ValueTracking (PR #130617)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
arsenm wrote: > > Started a llvm-compile-time-tracker run to check for compile time impact. > > all within +/-0.02% (but I'm not sure if SeparateConstOffsetFromGEP even runs > as part of these benchmarks). It doesn't run amdgpu anything so no https://github.com/llvm/llvm-project/pull/130617

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port MachineSanitizerBinaryMetadata to NPM (PR #130069)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/130069 ___ 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] [CodeGen][NPM] Port VirtRegRewriter to NPM (PR #130564)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
@@ -2,6 +2,10 @@ # RUN: -start-before=greedy,0 -stop-after=virtregrewriter,0 -pass-remarks='.*' -pass-remarks-output=%t.yaml -o /dev/null %s # RUN: FileCheck %s < %t.yaml +# RUN: llc -mtriple=amdgcn-amd-amdhsa -mcpu=gfx900 \ +# RUN: -passes='greedy,virt-reg-rewriter' -pa

[llvm-branch-commits] [llvm] [SeparateConstOffsetFromGEP] Preserve inbounds flag based on ValueTracking (PR #130617)

2025-03-11 Thread Fabian Ritter via llvm-branch-commits
@@ -1079,6 +1081,8 @@ bool SeparateConstOffsetFromGEP::splitGEP(GetElementPtrInst *GEP) { // and the old index if they are not used. RecursivelyDeleteTriviallyDeadInstructions(UserChainTail); RecursivelyDeleteTriviallyDeadInstructions(OldIdx); +

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port VirtRegRewriter to NPM (PR #130564)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/130564 ___ 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] Add initial support for SPE brstack format (PR #129231)

2025-03-11 Thread Paschalis Mpeis via llvm-branch-commits
@@ -88,6 +89,45 @@ struct PerfSpeEventsTestHelper : public testing::Test { return SampleSize == DA.BasicSamples.size(); } + + /// Compare LBREntries + bool checkLBREntry(const LBREntry &Lhs, const LBREntry &Rhs) { +return Lhs.From == Rhs.From && Lhs.To == Rhs.To &&

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port FEntryInserter to NPM (PR #129857)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
@@ -0,0 +1,19 @@ +# RUN: llc -mtriple=x86_64-- -passes=fentry-insert %s -o - | FileCheck %s + +--- | + target triple = "x86_64--" + define i32 @with_fentry() #1 { + entry: +ret i32 0 + } + + attributes #1 = { "fentry-call"="true" } arsenm wrote: ```sugge

[llvm-branch-commits] [llvm] [CodeGen][NPM] Port FEntryInserter to NPM (PR #129857)

2025-03-11 Thread Matt Arsenault via llvm-branch-commits
https://github.com/arsenm approved this pull request. https://github.com/llvm/llvm-project/pull/129857 ___ 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] [SeparateConstOffsetFromGEP] Preserve inbounds flag based on ValueTracking (PR #130617)

2025-03-11 Thread Fabian Ritter via llvm-branch-commits
https://github.com/ritter-x2a updated https://github.com/llvm/llvm-project/pull/130617 >From 23384f4b38b721125650577cae440caa20203bc8 Mon Sep 17 00:00:00 2001 From: Fabian Ritter Date: Mon, 10 Mar 2025 06:55:10 -0400 Subject: [PATCH 1/2] [SeparateConstOffsetFromGEP] Preserve inbounds flag based

  1   2   3   >