[llvm-branch-commits] [llvm] AMDGPU: Migrate some tests away from undef (PR #131277)

2025-03-14 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131277 ___ 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: Migrate some tests away from undef (PR #131277)

2025-03-14 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. https://github.com/llvm/llvm-project/pull/131277 ___ 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: Use generated checks in coalescer_distribute.ll (PR #131276)

2025-03-14 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131276 ___ 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: Use generated checks in coalescer_distribute.ll (PR #131276)

2025-03-14 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. https://github.com/llvm/llvm-project/pull/131276 ___ 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: Replace i16 undefs with poison in tests (PR #131084)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131084 ___ 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: Replace more undef test pointer uses with poison (PR #131102)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131102 ___ 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: Replace more undef test pointer uses with poison (PR #131102)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131102 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] AMDGPU: Replace ptr addrspace(4) undef uses with poison in tests (PR #131095)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131095 ___ 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: Use generated checks in test missing checks (PR #131110)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131110 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] AMDGPU: Replace some test i32 undef uses with poison (PR #131092)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131092 ___ 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: Use generated checks in test missing checks (PR #131110)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131110 ___ 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: Replace some test undef uses with poison (PR #131103)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131103 ___ 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: Replace some test undef uses with poison (PR #131103)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131103 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] AMDGPU: Replace test uses of ptr addrspace(5) undef with poison (PR #131101)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131101 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] AMDGPU: Replace test uses of ptr addrspace(5) undef with poison (PR #131101)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131101 ___ 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: Replace ptr addrspace(4) undef uses with poison in tests (PR #131095)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131095 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] AMDGPU: Fix broken negative test from ancient times (PR #131106)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
@@ -1,12 +1,22 @@ -; RUN: llc -mtriple=amdgcn -verify-machineinstrs %s -o - | FileCheck %s +; NOTE: Assertions have been autogenerated by utils/update_llc_test_checks.py UTC_ARGS: --version 5 +; RUN: llc -mtriple=amdgcn -mcpu=tahiti %s -o - | FileCheck %s -; CHECK-LABEL: foo -;

[llvm-branch-commits] [llvm] AMDGPU: Replace some test i32 undef uses with poison (PR #131092)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131092 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] AMDGPU: Replace i16 undefs with poison in tests (PR #131084)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131084 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] AMDGPU: Replace some float undef test uses with poison (PR #131090)

2025-03-13 Thread Pravin Jagtap via llvm-branch-commits
@@ -37,7 +37,7 @@ bb2: define amdgpu_kernel void @preserve_condition_undef_flag(float %arg, i32 %arg1, float %arg2) { bb0: %tmp = icmp sgt i32 %arg1, 4 - %undef = call i1 @llvm.amdgcn.class.f32(float undef, i32 undef) + %undef = call i1 @llvm.amdgcn.class.f32(float poison,

[llvm-branch-commits] [llvm] AMDGPU: Make ballot intrinsic propagate poison (PR #131061)

2025-03-12 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131061 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] AMDGPU: Make fmed3 intrinsic propagate poison (PR #131060)

2025-03-12 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131060 ___ 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: Make ballot intrinsic propagate poison (PR #131061)

2025-03-12 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/131061 ___ 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: Make fmed3 intrinsic propagate poison (PR #131060)

2025-03-12 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM https://github.com/llvm/llvm-project/pull/131060 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commit

[llvm-branch-commits] [llvm] AMDGPU: Fold bitcasts into readfirstlane, readlane, and permlane64 (PR #128494)

2025-02-24 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap edited https://github.com/llvm/llvm-project/pull/128494 ___ 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: Fold bitcasts into readfirstlane, readlane, and permlane64 (PR #128494)

2025-02-24 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM, I think, its worth adding few neg test points for div values https://github.com/llvm/llvm-project/pull/128494 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org http

[llvm-branch-commits] [llvm] [CodeGen][NewPM] Port RegUsageInfoCollector pass to NPM (PR #113874)

2024-10-28 Thread Pravin Jagtap via llvm-branch-commits
https://github.com/pravinjagtap approved this pull request. LGTM, wait for others https://github.com/llvm/llvm-project/pull/113874 ___ llvm-branch-commits mailing list llvm-branch-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/l

[llvm-branch-commits] [llvm] [AMDGPU] Enable atomic optimizer for divergent i64 and double values (PR #96934)

2024-07-01 Thread Pravin Jagtap via llvm-branch-commits
@@ -178,6 +178,21 @@ bool AMDGPUAtomicOptimizerImpl::run(Function &F) { return Changed; } +static bool isOptimizableAtomic(Type *Ty) { + switch (Ty->getTypeID()) { + case Type::FloatTyID: + case Type::DoubleTyID: +return true; + case Type::IntegerTyID: { +unsigne