@@ -14944,6 +14945,51 @@ SDValue SITargetLowering::performAddCombine(SDNode *N,
return SDValue();
}
+SDValue SITargetLowering::performPtrAddCombine(SDNode *N,
+ DAGCombinerInfo &DCI) const {
+ SelectionDAG &DAG = DCI.DAG;
+ SDL
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143672
>From ac6d5eb285b1f56b5c32133279224feb2b8bd8a9 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 11 Jun 2025 05:14:34 -0400
Subject: [PATCH] [AMDGPU][SDAG] Tests for target-specific ISD::PTRADD combines
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142778
>From af2d3ea3a17b2d7eec54fcf030ff89a1a0422e5a Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 09:48:02 -0400
Subject: [PATCH] [AMDGPU][SDAG] Handle ISD::PTRADD in
SelectionDAGAddressAnaly
https://github.com/philnik777 created
https://github.com/llvm/llvm-project/pull/144101
The tests in `libcxx/test/libcxx` aren't run against the frozen headers
anymore, so we can remove any XFAILs in them.
This is part of https://discourse.llvm.org/t/rfc-freezing-c-03-headers-in-libc.
>From e
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143880
>From 3f69917b67760c64fdafcb42b5783b8aaafb1406 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Thu, 12 Jun 2025 06:13:26 -0400
Subject: [PATCH] [AMDGPU][SDAG] Test ISD::PTRADD handling in VOP3 patterns
Pr
https://github.com/momchil-velikov updated
https://github.com/llvm/llvm-project/pull/142422
>From b950757c234900db941ed950ea3469b520d2e28a Mon Sep 17 00:00:00 2001
From: Momchil Velikov
Date: Mon, 2 Jun 2025 15:13:13 +
Subject: [PATCH 1/8] [MLIR] Fix incorrect slice contiguity inference in
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143673
>From 10494be4478143e69a6116653228170195c00dc2 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 11 Jun 2025 05:48:45 -0400
Subject: [PATCH] [AMDGPU][SDAG] Add target-specific ISD::PTRADD combines
This
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142739
>From 6ea714e83e4714d9fe025e5e9fee48b41f223cb8 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 03:32:32 -0400
Subject: [PATCH 1/6] [AMDGPU][SDAG] Add ISD::PTRADD DAG combines
This patch fo
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142777
>From e8eccce3f9221dd52f15341873b03f220ef84739 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 09:30:34 -0400
Subject: [PATCH] [AMDGPU][SDAG] Add test for ISD::PTRADD handling in
Selection
@@ -259,32 +306,40 @@ Error IR2VecVocabAnalysis::readVocabulary() {
return createFileError(VocabFile, BufOrError.getError());
auto Content = BufOrError.get()->getBuffer();
- json::Path::Root Path("");
+
Expected ParsedVocabValue = json::parse(Content);
if (!Parsed
@@ -259,32 +306,40 @@ Error IR2VecVocabAnalysis::readVocabulary() {
return createFileError(VocabFile, BufOrError.getError());
auto Content = BufOrError.get()->getBuffer();
- json::Path::Root Path("");
+
Expected ParsedVocabValue = json::parse(Content);
if (!Parsed
https://github.com/mtrofin edited
https://github.com/llvm/llvm-project/pull/143986
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
aengelke wrote:
Reused an existing test case, this also shows the difference in the resulting
block order. If preferred, I can also write a separate test case.
https://github.com/llvm/llvm-project/pull/142584
___
llvm-branch-commits mailing list
llvm-
https://github.com/momchil-velikov edited
https://github.com/llvm/llvm-project/pull/142422
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
Author: Luke Lau
Date: 2025-06-13T18:25:07+01:00
New Revision: b81d5e06c7cba8c9f1f5380daed4b9ee139214ba
URL:
https://github.com/llvm/llvm-project/commit/b81d5e06c7cba8c9f1f5380daed4b9ee139214ba
DIFF:
https://github.com/llvm/llvm-project/commit/b81d5e06c7cba8c9f1f5380daed4b9ee139214ba.diff
LOG:
Author: William Huynh
Date: 2025-06-13T10:26:40-07:00
New Revision: fd432151a607a997c417f32cb70650fc7728629a
URL:
https://github.com/llvm/llvm-project/commit/fd432151a607a997c417f32cb70650fc7728629a
DIFF:
https://github.com/llvm/llvm-project/commit/fd432151a607a997c417f32cb70650fc7728629a.diff
Author: Alexey Samsonov
Date: 2025-06-13T10:25:26-07:00
New Revision: c609112a5383c10272e3afceedd4d03f26437cf0
URL:
https://github.com/llvm/llvm-project/commit/c609112a5383c10272e3afceedd4d03f26437cf0
DIFF:
https://github.com/llvm/llvm-project/commit/c609112a5383c10272e3afceedd4d03f26437cf0.dif
Author: Andy Kaylor
Date: 2025-06-13T10:28:03-07:00
New Revision: 9a3082276d21873a37925d0c6ad89bd28d065cea
URL:
https://github.com/llvm/llvm-project/commit/9a3082276d21873a37925d0c6ad89bd28d065cea
DIFF:
https://github.com/llvm/llvm-project/commit/9a3082276d21873a37925d0c6ad89bd28d065cea.diff
L
Author: Amr Hesham
Date: 2025-06-13T19:29:21+02:00
New Revision: 62eea86424c4eacd38ad8a03f4bdae78687e3ade
URL:
https://github.com/llvm/llvm-project/commit/62eea86424c4eacd38ad8a03f4bdae78687e3ade
DIFF:
https://github.com/llvm/llvm-project/commit/62eea86424c4eacd38ad8a03f4bdae78687e3ade.diff
LO
Author: Steven Perron
Date: 2025-06-13T13:26:26-04:00
New Revision: 493c1612d6f8f7a40d0bf0ba28fb753be83fac1c
URL:
https://github.com/llvm/llvm-project/commit/493c1612d6f8f7a40d0bf0ba28fb753be83fac1c
DIFF:
https://github.com/llvm/llvm-project/commit/493c1612d6f8f7a40d0bf0ba28fb753be83fac1c.diff
@@ -104,7 +106,10 @@ MODULE_PASS("lower-ifunc", LowerIFuncPass())
MODULE_PASS("simplify-type-tests", SimplifyTypeTestsPass())
MODULE_PASS("lowertypetests", LowerTypeTestsPass())
MODULE_PASS("fatlto-cleanup", FatLtoCleanup())
-MODULE_PASS("pgo-force-function-attrs", PGOForceFunc
@@ -259,32 +306,40 @@ Error IR2VecVocabAnalysis::readVocabulary() {
return createFileError(VocabFile, BufOrError.getError());
auto Content = BufOrError.get()->getBuffer();
- json::Path::Root Path("");
+
Expected ParsedVocabValue = json::parse(Content);
if (!Parsed
@@ -234,6 +237,8 @@ class IR2VecVocabResult {
class IR2VecVocabAnalysis : public AnalysisInfoMixin {
ir2vec::Vocab Vocabulary;
Error readVocabulary();
+ Error parseVocabSection(const char *Key, const json::Value ParsedVocabValue,
mtrofin wrote:
s/const ch
@@ -104,7 +106,10 @@ MODULE_PASS("lower-ifunc", LowerIFuncPass())
MODULE_PASS("simplify-type-tests", SimplifyTypeTestsPass())
MODULE_PASS("lowertypetests", LowerTypeTestsPass())
MODULE_PASS("fatlto-cleanup", FatLtoCleanup())
-MODULE_PASS("pgo-force-function-attrs", PGOForceFunc
https://github.com/tblah approved this pull request.
LGTM. Thanks for the fix
https://github.com/llvm/llvm-project/pull/144015
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-
https://github.com/momchil-velikov edited
https://github.com/llvm/llvm-project/pull/142422
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
momchil-velikov wrote:
Commit message updated.
https://github.com/llvm/llvm-project/pull/142422
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/aengelke updated
https://github.com/llvm/llvm-project/pull/142584
>From 4cbc231699c11444cff73ff28b88dc0f3835c752 Mon Sep 17 00:00:00 2001
From: Alexis Engelke
Date: Wed, 4 Jun 2025 09:21:02 +
Subject: [PATCH 1/2] Move one check to beginning of function
Created using spr
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From a2bec77ad03e20cd76b6870149863049a96c4f9e Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From d71dd503f4794abf8a396ddb8a5deeafe0d75c83 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143479
>From a2bec77ad03e20cd76b6870149863049a96c4f9e Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Tue, 10 Jun 2025 05:40:38 +
Subject: [PATCH] [MLIniner][IR2Vec] Integrating IR2Vec with MLInliner
---
.../Ana
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From d71dd503f4794abf8a396ddb8a5deeafe0d75c83 Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
Author: zhijian lin
Date: 2025-06-13T09:24:56-04:00
New Revision: 69ba6fa610e19baa1d0d18f04a27cb5f45db1711
URL:
https://github.com/llvm/llvm-project/commit/69ba6fa610e19baa1d0d18f04a27cb5f45db1711
DIFF:
https://github.com/llvm/llvm-project/commit/69ba6fa610e19baa1d0d18f04a27cb5f45db1711.diff
L
https://github.com/momchil-velikov updated
https://github.com/llvm/llvm-project/pull/143146
>From 493955781f28b8b6caaeff1b45f7b7a06b43086c Mon Sep 17 00:00:00 2001
From: Momchil Velikov
Date: Wed, 14 May 2025 09:03:49 +
Subject: [PATCH 1/3] [MLIR] Legalize certain `vector.transfer_read` ops
@@ -203,21 +206,21 @@ func.func @transfer_read_dynamic_dim_to_flatten(
return %res : vector<1x2x6xi32>
}
-// CHECK: #[[$MAP:.*]] = affine_map<()[s0, s1] -> (s0 * 24 + s1 * 6)>
+// CHECK: #[[$MAP:.+]] = affine_map<()[s0, s1] -> (s0 * 24 + s1 * 6)>
// CHECK-LABEL: func.func
https://github.com/philnik777 created
https://github.com/llvm/llvm-project/pull/144117
This fixes/removes a bunch of random tests. They all failed in relatively
simple to fix ways.
Specificially (all inside `libcxx/test/libcxx-03`):
- `utilities/template.bitset/includes.pass.cpp`: the header g
@@ -630,7 +639,10 @@ class FlattenContiguousRowMajorTransferReadPattern
if (transferReadOp.getMask())
return failure();
-int64_t firstDimToCollapse = sourceType.getRank() - vectorType.getRank();
newling wrote:
Looks good, thanks!
https://github
@@ -630,7 +639,10 @@ class FlattenContiguousRowMajorTransferReadPattern
if (transferReadOp.getMask())
return failure();
-int64_t firstDimToCollapse = sourceType.getRank() - vectorType.getRank();
newling wrote:
> For memrefs with dynamic dimensio
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 cpp --
libcxx/test/libcxx-03/iterators/bounded_iter/comparis
https://github.com/svkeerthy updated
https://github.com/llvm/llvm-project/pull/143999
>From 0d921416a0f81e5634705dc9dfc5363d721a55bf Mon Sep 17 00:00:00 2001
From: svkeerthy
Date: Thu, 12 Jun 2025 23:54:10 +
Subject: [PATCH] Simplifying creation of Embedder
---
llvm/docs/MLGO.rst
@@ -528,23 +528,20 @@ RuntimeLibcallSignatureTable
&getRuntimeLibcallSignatures() {
// constructor for use with a static variable
struct StaticLibcallNameMap {
StringMap Map;
- StaticLibcallNameMap() {
-static const std::pair NameLibcalls[] = {
-#define HANDLE_LIBCALL(c
https://github.com/aengelke created
https://github.com/llvm/llvm-project/pull/144108
Deleting a basic block removes all references from jump tables, which
is O(n). When freeing a MachineFunction, all basic blocks are deleted
before the jump tables, causing O(n^2) runtime. Fix this by deallocatin
https://github.com/philnik777 created
https://github.com/llvm/llvm-project/pull/144110
Quite a few of the frozen header tests only fail because the include path is
incorrect due to copying the headers. This patch fixes the tests where that's
the only problem.
This is part of https://discourse
@@ -14944,6 +14945,51 @@ SDValue SITargetLowering::performAddCombine(SDNode *N,
return SDValue();
}
+SDValue SITargetLowering::performPtrAddCombine(SDNode *N,
+ DAGCombinerInfo &DCI) const {
+ SelectionDAG &DAG = DCI.DAG;
+ SDL
https://github.com/tblah created
https://github.com/llvm/llvm-project/pull/144087
Based on top of #144013
I was really hoping this would also work for `hostEvalInfo` but unfortunately
that needed to be shared to a greater degree.
The same technique should work for that but it would need that
llvmbot wrote:
@llvm/pr-subscribers-flang-fir-hlfir
Author: Tom Eccles (tblah)
Changes
Based on top of #144013
I was really hoping this would also work for `hostEvalInfo` but unfortunately
that needed to be shared to a greater degree.
The same technique should work for that but it would
Author: Keith Smiley
Date: 2025-06-13T10:04:08-07:00
New Revision: 6bf398b89982b4a47edf48ce2c8c627e8a94ccf9
URL:
https://github.com/llvm/llvm-project/commit/6bf398b89982b4a47edf48ce2c8c627e8a94ccf9
DIFF:
https://github.com/llvm/llvm-project/commit/6bf398b89982b4a47edf48ce2c8c627e8a94ccf9.diff
https://github.com/newling approved this pull request.
LGTM; thanks!
https://github.com/llvm/llvm-project/pull/142422
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-c
Author: Charitha Saumya
Date: 2025-06-13T10:18:24-07:00
New Revision: 2238fd9a756ae1a0b6aa2302e96cc217b08d6c3b
URL:
https://github.com/llvm/llvm-project/commit/2238fd9a756ae1a0b6aa2302e96cc217b08d6c3b
DIFF:
https://github.com/llvm/llvm-project/commit/2238fd9a756ae1a0b6aa2302e96cc217b08d6c3b.dif
@@ -83,16 +84,48 @@ func.func @transfer_read_dims_mismatch_contiguous(
return %res : vector<1x1x2x2xi8>
}
-// CHECK-LABEL: func.func @transfer_read_dims_mismatch_contiguous(
+// CHECK-LABEL: func.func @transfer_read_dims_mismatch_contiguous_unit_dims(
// CHECK-SAME:
@@ -2628,6 +2630,87 @@ SDValue DAGCombiner::foldSubToAvg(SDNode *N, const SDLoc
&DL) {
return SDValue();
}
+/// Try to fold a pointer arithmetic node.
+/// This needs to be done separately from normal addition, because pointer
+/// addition is not commutative.
+SDValue DAGC
https://github.com/teresajohnson commented:
This needs a caveat somewhere (either in printed usage message or in a comment)
that this won't work for local linkage symbols (I suppose the user could give
the "file:" prefix but that won't work if -funique-internal-linkage-names was
specified etc)
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143881
>From 46090a8031fde937a76268ce7adbbdc6f42911ad Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Thu, 12 Jun 2025 07:44:37 -0400
Subject: [PATCH] [AMDGPU][SDAG] Handle ISD::PTRADD in VOP3 patterns
This patc
github-actions[bot] wrote:
:warning: Python code formatter, darker found issues in your code. :warning:
You can test this locally with the following command:
``bash
darker --check --diff -r HEAD~1...HEAD
libcxx/test/libcxx/clang_modules_include.gen.py
libcxx/test/libcxx/clang_ti
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/143992
>From f11d7d544cc61dce582de538608bfd512147f90a Mon Sep 17 00:00:00 2001
From: Peter Collingbourne
Date: Thu, 12 Jun 2025 16:06:14 -0700
Subject: [PATCH 1/2] Upload correct patch
Created using spr 1.3.6-beta.1
---
l
pcc wrote:
> At least a comment in the code would be good. A variety of people end up
> using these tools for tests, and I could see someone getting confused as to
> why the guid doesn't match what's e.g. in the ThinLTO index. For that
> understanding you'd have to read more than just what thi
https://github.com/fmayer updated
https://github.com/llvm/llvm-project/pull/143462
>From e7f58f76d921bdf3e7f4a585a25a2612d66fee33 Mon Sep 17 00:00:00 2001
From: Florian Mayer
Date: Fri, 13 Jun 2025 15:14:20 -0700
Subject: [PATCH] assert
Created using spr 1.3.4
---
.../Instrumentation/MemorySa
https://github.com/fmayer updated
https://github.com/llvm/llvm-project/pull/143462
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/fmayer updated
https://github.com/llvm/llvm-project/pull/143462
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
fmayer wrote:
ready for review
https://github.com/llvm/llvm-project/pull/143462
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/thurstond approved this pull request.
https://github.com/llvm/llvm-project/pull/143462
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/thurstond approved this pull request.
https://github.com/llvm/llvm-project/pull/143463
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -4191,6 +4191,15 @@ struct MemorySanitizerVisitor : public
InstVisitor {
// We apply the same permutation (argument index 1) to the shadows.
void handleAVXVpermil2var(IntrinsicInst &I) {
assert(I.arg_size() == 3);
+assert(isa(I.getArgOperand(0)->getType()));
+
Author: Amy Huang
Date: 2025-06-13T15:29:51-07:00
New Revision: 9a2e40b9eea4297631c2462a345d1cbc8d01f373
URL:
https://github.com/llvm/llvm-project/commit/9a2e40b9eea4297631c2462a345d1cbc8d01f373
DIFF:
https://github.com/llvm/llvm-project/commit/9a2e40b9eea4297631c2462a345d1cbc8d01f373.diff
LOG
https://github.com/aeubanks approved this pull request.
makes sense. can you put some compile time numbers in the description before
and after this patch?
https://github.com/llvm/llvm-project/pull/144108
___
llvm-branch-commits mailing list
llvm-branc
https://github.com/fmayer closed
https://github.com/llvm/llvm-project/pull/143463
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
@@ -528,23 +528,20 @@ RuntimeLibcallSignatureTable
&getRuntimeLibcallSignatures() {
// constructor for use with a static variable
struct StaticLibcallNameMap {
StringMap Map;
- StaticLibcallNameMap() {
-static const std::pair NameLibcalls[] = {
-#define HANDLE_LIBCALL(c
teresajohnson wrote:
> > This needs a caveat somewhere (either in printed usage message or in a
> > comment) that this won't work for local linkage symbols (I suppose the user
> > could give the "file:" prefix but that won't work if
> > -funique-internal-linkage-names was specified etc).
>
>
https://github.com/teresajohnson approved this pull request.
lgtm otherwise
https://github.com/llvm/llvm-project/pull/143992
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-br
pcc wrote:
> This needs a caveat somewhere (either in printed usage message or in a
> comment) that this won't work for local linkage symbols (I suppose the user
> could give the "file:" prefix but that won't work if
> -funique-internal-linkage-names was specified etc).
I'm not sure that is w
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/143992
>From f11d7d544cc61dce582de538608bfd512147f90a Mon Sep 17 00:00:00 2001
From: Peter Collingbourne
Date: Thu, 12 Jun 2025 16:06:14 -0700
Subject: [PATCH] Upload correct patch
Created using spr 1.3.6-beta.1
---
llvm/
https://github.com/pcc updated https://github.com/llvm/llvm-project/pull/143992
>From f11d7d544cc61dce582de538608bfd512147f90a Mon Sep 17 00:00:00 2001
From: Peter Collingbourne
Date: Thu, 12 Jun 2025 16:06:14 -0700
Subject: [PATCH] Upload correct patch
Created using spr 1.3.6-beta.1
---
llvm/
https://github.com/boomanaiden154 created
https://github.com/llvm/llvm-project/pull/144034
This patch resolves a fixme in the compute_projects script to actually
test all the projects we can when touching something in the .ci
directory. This ensures we test things like compiler-rt before landing
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143881
>From f93590bac710750f993c86005c217b843cc5a863 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Thu, 12 Jun 2025 07:44:37 -0400
Subject: [PATCH] [AMDGPU][SDAG] Handle ISD::PTRADD in VOP3 patterns
This patc
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142778
>From c959592b27205064e3b6f53c7330032bce84f857 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 09:48:02 -0400
Subject: [PATCH] [AMDGPU][SDAG] Handle ISD::PTRADD in
SelectionDAGAddressAnaly
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143673
>From a3d204e9a8aae5de008a83904215d44d8d0c3380 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 11 Jun 2025 05:48:45 -0400
Subject: [PATCH] [AMDGPU][SDAG] Add target-specific ISD::PTRADD combines
This
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143672
>From c9cbbce907dc77f1580019bb78ae3c175f99af37 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 11 Jun 2025 05:14:34 -0400
Subject: [PATCH] [AMDGPU][SDAG] Tests for target-specific ISD::PTRADD combines
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142738
>From cdea7dfe63d04d4b2879d7f73408753ff70e20dc Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Tue, 3 Jun 2025 09:49:19 -0400
Subject: [PATCH 1/2] [AMDGPU][SDAG] Add tests for ISD::PTRADD DAG combines
Pre
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142738
>From cdea7dfe63d04d4b2879d7f73408753ff70e20dc Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Tue, 3 Jun 2025 09:49:19 -0400
Subject: [PATCH 1/2] [AMDGPU][SDAG] Add tests for ISD::PTRADD DAG combines
Pre
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142739
>From 743ecdf0cf69d300859d6817fa4a9c48218aa9e5 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 03:32:32 -0400
Subject: [PATCH 1/5] [AMDGPU][SDAG] Add ISD::PTRADD DAG combines
This patch fo
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142739
>From 743ecdf0cf69d300859d6817fa4a9c48218aa9e5 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 03:32:32 -0400
Subject: [PATCH 1/5] [AMDGPU][SDAG] Add ISD::PTRADD DAG combines
This patch fo
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143880
>From 99d65b3e0a8627b581673b55505962665a3ffcb6 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Thu, 12 Jun 2025 06:13:26 -0400
Subject: [PATCH] [AMDGPU][SDAG] Test ISD::PTRADD handling in VOP3 patterns
Pr
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143881
>From f93590bac710750f993c86005c217b843cc5a863 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Thu, 12 Jun 2025 07:44:37 -0400
Subject: [PATCH] [AMDGPU][SDAG] Handle ISD::PTRADD in VOP3 patterns
This patc
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142777
>From df620d738a35bb2d52c4254a784b66431725206f Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 09:30:34 -0400
Subject: [PATCH] [AMDGPU][SDAG] Add test for ISD::PTRADD handling in
Selection
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142778
>From c959592b27205064e3b6f53c7330032bce84f857 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 09:48:02 -0400
Subject: [PATCH] [AMDGPU][SDAG] Handle ISD::PTRADD in
SelectionDAGAddressAnaly
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142777
>From df620d738a35bb2d52c4254a784b66431725206f Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 09:30:34 -0400
Subject: [PATCH] [AMDGPU][SDAG] Add test for ISD::PTRADD handling in
Selection
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143672
>From c9cbbce907dc77f1580019bb78ae3c175f99af37 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 11 Jun 2025 05:14:34 -0400
Subject: [PATCH] [AMDGPU][SDAG] Tests for target-specific ISD::PTRADD combines
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143673
>From a3d204e9a8aae5de008a83904215d44d8d0c3380 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 11 Jun 2025 05:48:45 -0400
Subject: [PATCH] [AMDGPU][SDAG] Add target-specific ISD::PTRADD combines
This
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143880
>From 99d65b3e0a8627b581673b55505962665a3ffcb6 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Thu, 12 Jun 2025 06:13:26 -0400
Subject: [PATCH] [AMDGPU][SDAG] Test ISD::PTRADD handling in VOP3 patterns
Pr
@@ -2954,20 +2954,13 @@ RISCVTTIImpl::enableMemCmpExpansion(bool OptSize, bool
IsZeroCmp) const {
}
if (IsZeroCmp && ST->hasVInstructions()) {
-unsigned RealMinVLen = ST->getRealMinVLen();
-// Support Fractional LMULs if the lengths are larger than XLen.
-// T
@@ -2628,6 +2630,87 @@ SDValue DAGCombiner::foldSubToAvg(SDNode *N, const SDLoc
&DL) {
return SDValue();
}
+/// Try to fold a pointer arithmetic node.
+/// This needs to be done separately from normal addition, because pointer
+/// addition is not commutative.
+SDValue DAGC
@@ -14944,6 +14945,51 @@ SDValue SITargetLowering::performAddCombine(SDNode *N,
return SDValue();
}
+SDValue SITargetLowering::performPtrAddCombine(SDNode *N,
+ DAGCombinerInfo &DCI) const {
+ SelectionDAG &DAG = DCI.DAG;
+ SDL
@@ -14944,6 +14945,51 @@ SDValue SITargetLowering::performAddCombine(SDNode *N,
return SDValue();
}
+SDValue SITargetLowering::performPtrAddCombine(SDNode *N,
+ DAGCombinerInfo &DCI) const {
+ SelectionDAG &DAG = DCI.DAG;
+ SDL
https://github.com/arsenm approved this pull request.
https://github.com/llvm/llvm-project/pull/142777
___
llvm-branch-commits mailing list
llvm-branch-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143673
>From 50de6e085242ce975af812088f4ef48896444fb6 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 11 Jun 2025 05:48:45 -0400
Subject: [PATCH] [AMDGPU][SDAG] Add target-specific ISD::PTRADD combines
This
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142739
>From 3002da1befde734af1904d3424abd72b65f1377b Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 03:32:32 -0400
Subject: [PATCH 1/5] [AMDGPU][SDAG] Add ISD::PTRADD DAG combines
This patch fo
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142739
>From 3002da1befde734af1904d3424abd72b65f1377b Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 03:32:32 -0400
Subject: [PATCH 1/5] [AMDGPU][SDAG] Add ISD::PTRADD DAG combines
This patch fo
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/142777
>From c0eab936e1cab87636ae7c676d7232948cc35aef Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 4 Jun 2025 09:30:34 -0400
Subject: [PATCH] [AMDGPU][SDAG] Add test for ISD::PTRADD handling in
Selection
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143672
>From 37747657c81cc49feb345810b792f01e35d28511 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 11 Jun 2025 05:14:34 -0400
Subject: [PATCH] [AMDGPU][SDAG] Tests for target-specific ISD::PTRADD combines
https://github.com/ritter-x2a updated
https://github.com/llvm/llvm-project/pull/143673
>From 50de6e085242ce975af812088f4ef48896444fb6 Mon Sep 17 00:00:00 2001
From: Fabian Ritter
Date: Wed, 11 Jun 2025 05:48:45 -0400
Subject: [PATCH] [AMDGPU][SDAG] Add target-specific ISD::PTRADD combines
This
1 - 100 of 139 matches
Mail list logo