← Back to Pull requests

[AMDGPU] Re-enable AAInstanceInfo in AMDGPUAttributor #247043

Open
shiltian opened this pull request with 48 lines diff across 6 files
View on GitHub
shiltian shiltian commented on Nov 30, 2026 03:05 UTC
Author

This was enabled and then disabled because of its compile time impact. This recent changes, the compile time issue should have been resolved.

Diff: 48 lines (+28 / -20) across 6 files Reviewer: jmmartinez Review duration: 1595m
All Vouch review confidence checks passed
Residual risk 0.06 = Change Risk (0.34) × (1 − Review Confidence (0.81)). Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.34 · 48 lines diff across 6 files
0.34
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.80 · 4 substantive comment(s)
0.80
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 50%
81%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size diff_size
0.233
Real PR Conversation Timeline
6 items
shiltian shiltian commented on Nov 30, 2026 03:05 UTC
Author

#247043 👈
#247042
#246890
main

<h2></h2>

This stack of pull requests is managed by <a href="https://github.com/shiltian/sgh"><b>sgh</b></a>.
<!-- SGH-MANAGED-COMMENT: DO NOT EDIT OR DELETE THIS COMMENT -->

llvmorg-github-actions[bot] llvmorg-github-actions[bot] commented on Nov 30, 2026 03:06 UTC
Bot

<!--LLVM PR SUMMARY COMMENT-->

@llvm/pr-subscribers-backend-amdgpu

Author: Shilei Tian (shiltian)

<details>
<summary>Changes</summary>

This was enabled and then disabled because of its compile time impact. This recent changes, the compile time issue should have been resolved.

---
Full diff: https://github.com/llvm/llvm-project/pull/247043.diff

7 Files Affected:

  • (modified) llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp (+1-1)

  • (modified) llvm/test/CodeGen/AMDGPU/amdgpu-attributor-accesslist-offsetbins-out-of-sync.ll (+13-5)

  • (added) llvm/test/CodeGen/AMDGPU/amdgpu-attributor-instance-info-call-chain.ll (+42)

  • (modified) llvm/test/CodeGen/AMDGPU/direct-indirect-call.ll (+5-3)

  • (modified) llvm/test/CodeGen/AMDGPU/duplicate-attribute-indirect.ll (+2-3)

  • (modified) llvm/test/CodeGen/AMDGPU/simple-indirect-call-2.ll (+3-6)

  • (modified) llvm/test/CodeGen/AMDGPU/simple-indirect-call.ll (+4-2)
  • ``````

    diff --git a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
    index e9821e017f4226..08165674b52d83 100644
    --- a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
    +++ b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
    @@ -1703,7 +1703,7 @@ static bool runImpl(SetVector<Function *> &Functions, bool IsModulePass,
                          AAPointerInfo, AAPotentialConstantValues,
                          AAUnderlyingObjects, AANoAliasAddrSpace, AAAddressSpace,
                          AAIndirectCallInfo, AAAMDGPUClusterDims, AAAMDGPUNoLDSDMA,
    -                     AAAlign>();
    +                     AAAlign, AAInstanceInfo>();
     
       AttributorConfig AC(CGUpdater);
       AC.IsClosedWorldModule = Options.IsClosedWorld;
    diff --git a/llvm/test/CodeGen/AMDGPU/amdgpu-attributor-accesslist-offsetbins-out-of-sync.ll b/llvm/test/CodeGen/AMDGPU/amdgpu-attributor-accesslist-offsetbins-out-of-sync.ll
    index 59a7813e4198d4..e941132ee24138 100644
    --- a/llvm/test/CodeGen/AMDGPU/amdgpu-attributor-accesslist-offsetbins-out-of-sync.ll
    +++ b/llvm/test/CodeGen/AMDGPU/amdgpu-attributor-accesslist-offsetbins-out-of-sync.ll
    @@ -14,7 +14,8 @@ define internal fastcc void @foo(ptr %kg) {
     ; CHECK-NEXT:    [[NUM_CLOSURE_I26_I:%.*]] = getelementptr i8, ptr [[KG]], i64 276
     ; CHECK-NEXT:    br label %[[WHILE_COND:.*]]
     ; CHECK:       [[WHILE_COND]]:
    -; CHECK-NEXT:    [[TMP1:%.*]] = load i32, ptr [[KG]], align 4
    +; CHECK-NEXT:    [[TMP0:%.*]] = addrspacecast ptr [[KG]] to ptr addrspace(5)
    +; CHECK-NEXT:    [[TMP1:%.*]] = load i32, ptr addrspace(5) [[TMP0]], align 4, !noalias.addrspace [[META0:![0-9]+]]
     ; CHECK-NEXT:    [[IDXPROM_I:%.*]] = zext i32 [[TMP1]] to i64
     ; CHECK-NEXT:    switch i32 0, label %[[SW_BB92:.*]] [
     ; CHECK-NEXT:      i32 1, label %[[SW_BB92]]
    @@ -22,18 +23,22 @@ define internal fastcc void @foo(ptr %kg) {
     ; CHECK-NEXT:    ]
     ; CHECK:       [[SUBD_TRIANGLE_PATCH_EXIT_I_I35]]:
     ; CHECK-NEXT:    [[ARRAYIDX_I27_I:%.*]] = getelementptr float, ptr [[KG]], i64 [[IDXPROM_I]]
    -; CHECK-NEXT:    store float 0.000000e+00, ptr [[ARRAYIDX_I27_I]], align 4
    +; CHECK-NEXT:    [[TMP5:%.*]] = addrspacecast ptr [[ARRAYIDX_I27_I]] to ptr addrspace(5)
    +; CHECK-NEXT:    store float 0.000000e+00, ptr addrspace(5) [[TMP5]], align 4, !noalias.addrspace [[META0]]
     ; CHECK-NEXT:    br label %[[WHILE_COND]]
     ; CHECK:       [[SW_BB92]]:
     ; CHECK-NEXT:    [[INSERT:%.*]] = insertelement <3 x i32> zeroinitializer, i32 [[TMP1]], i64 0
     ; CHECK-NEXT:    [[SPLAT_SPLATINSERT_I:%.*]] = bitcast <3 x i32> [[INSERT]] to <3 x float>
     ; CHECK-NEXT:    [[SHFL:%.*]] = shufflevector <3 x float> [[SPLAT_SPLATINSERT_I]], <3 x float> zeroinitializer, <4 x i32> zeroinitializer
    -; CHECK-NEXT:    [[LOAD:%.*]] = load i32, ptr [[NUM_CLOSURE_I26_I]], align 4
    +; CHECK-NEXT:    [[TMP2:%.*]] = addrspacecast ptr [[NUM_CLOSURE_I26_I]] to ptr addrspace(5)
    +; CHECK-NEXT:    [[LOAD:%.*]] = load i32, ptr addrspace(5) [[TMP2]], align 4, !noalias.addrspace [[META0]]
     ; CHECK-NEXT:    [[IDXPROM_I27_I:%.*]] = sext i32 [[LOAD]] to i64
     ; CHECK-NEXT:    [[ARRAYIDX_I28_I:%.*]] = getelementptr [64 x [[STRUCT_SHADERCLOSURE:%.*]]], ptr [[CLOSURE_I25_I]], i64 0, i64 [[IDXPROM_I27_I]]
    -; CHECK-NEXT:    store <4 x float> [[SHFL]], ptr [[ARRAYIDX_I28_I]], align 16
    +; CHECK-NEXT:    [[TMP3:%.*]] = addrspacecast ptr [[ARRAYIDX_I28_I]] to ptr addrspace(5)
    +; CHECK-NEXT:    store <4 x float> [[SHFL]], ptr addrspace(5) [[TMP3]], align 16, !noalias.addrspace [[META0]]
     ; CHECK-NEXT:    [[INC_I30_I:%.*]] = or i32 [[LOAD]], 1
    -; CHECK-NEXT:    store i32 [[INC_I30_I]], ptr [[NUM_CLOSURE_I26_I]], align 4
    +; CHECK-NEXT:    [[TMP4:%.*]] = addrspacecast ptr [[NUM_CLOSURE_I26_I]] to ptr addrspace(5)
    +; CHECK-NEXT:    store i32 [[INC_I30_I]], ptr addrspace(5) [[TMP4]], align 4, !noalias.addrspace [[META0]]
     ; CHECK-NEXT:    br label %[[WHILE_COND]]
     ;
     entry:
    @@ -88,3 +93,6 @@ entry:
     }
     
     attributes #0 = { norecurse }
    +;.
    +; CHECK: [[META0]] = !{i32 1, i32 5, i32 6, i32 16}
    +;.
    diff --git a/llvm/test/CodeGen/AMDGPU/amdgpu-attributor-instance-info-call-chain.ll b/llvm/test/CodeGen/AMDGPU/amdgpu-attributor-instance-info-call-chain.ll
    new file mode 100644
    index 00000000000000..d6d75e945773ec
    --- /dev/null
    +++ b/llvm/test/CodeGen/AMDGPU/amdgpu-attributor-instance-info-call-chain.ll
    @@ -0,0 +1,42 @@
    +; REQUIRES: asserts
    +; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor -attributor-max-iterations=16 -debug-only=attributor -disable-output < %s 2>&1 | FileCheck %s
    +
    +; Reduced from a hipDF kernel that took hours to compile with AAInstanceInfo.
    +; @select_index returns one of its arguments, and each call in @chain gets the
    +; result of the previous call. @chain is norecurse, so AAInstanceInfo finds that
    +; its values are dynamically unique, and the flat load in @select_index makes
    +; the AMDGPUAttributor ask for the potential values of the call results. The
    +; number of fixpoint iterations must not grow with the length of the chain. The
    +; output IR does not change, so this test checks the number of iterations.
    +
    +; CHECK: [Attributor] Fixpoint iteration done after: 14/16 iterations
    +
    +define internal i32 @select_index(ptr %data, i32 %lhs, i32 %rhs) {
    +  %rhs.ext = zext i32 %rhs to i64
    +  %gep = getelementptr i8, ptr %data, i64 %rhs.ext
    +  %val = load i8, ptr %gep
    +  %cmp = icmp eq i8 %val, 0
    +  %sel = select i1 %cmp, i32 %lhs, i32 %rhs
    +  ret i32 %sel
    +}
    +
    +define amdgpu_kernel void @chain(ptr %data, i32 %x1, i32 %x2, i32 %x3, i32 %x4, i32 %x5, i32 %x6, i32 %x7, i32 %x8, i32 %x9, i32 %x10, i32 %x11, i32 %x12, i32 %x13, i32 %x14, i32 %x15, i32 %x16) norecurse {
    +  %r1 = call i32 @select_index(ptr %data, i32 0, i32 %x1)
    +  %r2 = call i32 @select_index(ptr %data, i32 %r1, i32 %x2)
    +  %r3 = call i32 @select_index(ptr %data, i32 %r2, i32 %x3)
    +  %r4 = call i32 @select_index(ptr %data, i32 %r3, i32 %x4)
    +  %r5 = call i32 @select_index(ptr %data, i32 %r4, i32 %x5)
    +  %r6 = call i32 @select_index(ptr %data, i32 %r5, i32 %x6)
    +  %r7 = call i32 @select_index(ptr %data, i32 %r6, i32 %x7)
    +  %r8 = call i32 @select_index(ptr %data, i32 %r7, i32 %x8)
    +  %r9 = call i32 @select_index(ptr %data, i32 %r8, i32 %x9)
    +  %r10 = call i32 @select_index(ptr %data, i32 %r9, i32 %x10)
    +  %r11 = call i32 @select_index(ptr %data, i32 %r10, i32 %x11)
    +  %r12 = call i32 @select_index(ptr %data, i32 %r11, i32 %x12)
    +  %r13 = call i32 @select_index(ptr %data, i32 %r12, i32 %x13)
    +  %r14 = call i32 @select_index(ptr %data, i32 %r13, i32 %x14)
    +  %r15 = call i32 @select_index(ptr %data, i32 %r14, i32 %x15)
    +  %r16 = call i32 @select_index(ptr %data, i32 %r15, i32 %x16)
    +  %last = call i32 @select_index(ptr %data, i32 %x1, i32 %r16)
    +  ret void
    +}
    diff --git a/llvm/test/CodeGen/AMDGPU/direct-indirect-call.ll b/llvm/test/CodeGen/AMDGPU/direct-indirect-call.ll
    index d1a697be880e2a..1ad66d8f96c960 100644
    --- a/llvm/test/CodeGen/AMDGPU/direct-indirect-call.ll
    +++ b/llvm/test/CodeGen/AMDGPU/direct-indirect-call.ll
    @@ -10,11 +10,12 @@ define internal void @indirect() {
     }
     
     define internal void @direct() {
    -; CHECK-LABEL: define {{[^@]+}}@direct() {
    +; CHECK-LABEL: define {{[^@]+}}@direct
    +; CHECK-SAME: () #[[ATTR0]] {
     ; CHECK-NEXT:    [[FPTR:%.*]] = alloca ptr, align 8, addrspace(5)
     ; CHECK-NEXT:    store ptr @indirect, ptr addrspace(5) [[FPTR]], align 8
     ; CHECK-NEXT:    [[FP:%.*]] = load ptr, ptr addrspace(5) [[FPTR]], align 8
    -; CHECK-NEXT:    call void [[FP]]()
    +; CHECK-NEXT:    call void @indirect()
     ; CHECK-NEXT:    ret void
     ;
       %fptr = alloca ptr, addrspace(5)
    @@ -25,7 +26,8 @@ define internal void @direct() {
     }
     
     define amdgpu_kernel void @test_direct_indirect_call() {
    -; CHECK-LABEL: define {{[^@]+}}@test_direct_indirect_call() {
    +; CHECK-LABEL: define {{[^@]+}}@test_direct_indirect_call
    +; CHECK-SAME: () #[[ATTR0]] {
     ; CHECK-NEXT:    call void @direct()
     ; CHECK-NEXT:    ret void
     ;
    diff --git a/llvm/test/CodeGen/AMDGPU/duplicate-attribute-indirect.ll b/llvm/test/CodeGen/AMDGPU/duplicate-attribute-indirect.ll
    index afcbc08f6c34c5..52a4d747f2ab20 100644
    --- a/llvm/test/CodeGen/AMDGPU/duplicate-attribute-indirect.ll
    +++ b/llvm/test/CodeGen/AMDGPU/duplicate-attribute-indirect.ll
    @@ -11,11 +11,11 @@ define internal void @indirect() {
     
     define amdgpu_kernel void @test_simple_indirect_call() #0 {
     ; ATTRIBUTOR_GCN-LABEL: define {{[^@]+}}@test_simple_indirect_call
    -; ATTRIBUTOR_GCN-SAME: () #[[ATTR1:[0-9]+]] {
    +; ATTRIBUTOR_GCN-SAME: () #[[ATTR0]] {
     ; ATTRIBUTOR_GCN-NEXT:    [[FPTR:%.*]] = alloca ptr, align 8, addrspace(5)
     ; ATTRIBUTOR_GCN-NEXT:    store ptr @indirect, ptr addrspace(5) [[FPTR]], align 8
     ; ATTRIBUTOR_GCN-NEXT:    [[FP:%.*]] = load ptr, ptr addrspace(5) [[FPTR]], align 8
    -; ATTRIBUTOR_GCN-NEXT:    call void [[FP]]()
    +; ATTRIBUTOR_GCN-NEXT:    call void @indirect()
     ; ATTRIBUTOR_GCN-NEXT:    ret void
     ;
       %fptr = alloca ptr, addrspace(5)
    @@ -29,5 +29,4 @@ attributes #0 = { "amdgpu-no-dispatch-id" }
     
     ;.
     ; ATTRIBUTOR_GCN: attributes #[[ATTR0]] = { "amdgpu-no-cluster-id-x" "amdgpu-no-cluster-id-y" "amdgpu-no-cluster-id-z" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-flat-scratch-init" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-dma" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-no-wwm" }
    -; ATTRIBUTOR_GCN: attributes #[[ATTR1]] = { "amdgpu-no-dispatch-id" }
     ;.
    diff --git a/llvm/test/CodeGen/AMDGPU/simple-indirect-call-2.ll b/llvm/test/CodeGen/AMDGPU/simple-indirect-call-2.ll
    index c34b66e8b6b087..a28737213f4faf 100644
    --- a/llvm/test/CodeGen/AMDGPU/simple-indirect-call-2.ll
    +++ b/llvm/test/CodeGen/AMDGPU/simple-indirect-call-2.ll
    @@ -58,8 +58,7 @@ define amdgpu_kernel void @foo(ptr noundef %fp) {
     ; OW-NEXT:  entry:
     ; OW-NEXT:    [[FP_ADDR:%.*]] = alloca ptr, align 8, addrspace(5)
     ; OW-NEXT:    store ptr [[FP]], ptr addrspace(5) [[FP_ADDR]], align 8
    -; OW-NEXT:    [[LOAD:%.*]] = load ptr, ptr addrspace(5) [[FP_ADDR]], align 8
    -; OW-NEXT:    call void [[LOAD]]()
    +; OW-NEXT:    call void [[FP]]()
     ; OW-NEXT:    ret void
     ;
     ; CW-LABEL: define {{[^@]+}}@foo
    @@ -67,8 +66,7 @@ define amdgpu_kernel void @foo(ptr noundef %fp) {
     ; CW-NEXT:  entry:
     ; CW-NEXT:    [[FP_ADDR:%.*]] = alloca ptr, align 8, addrspace(5)
     ; CW-NEXT:    store ptr [[FP]], ptr addrspace(5) [[FP_ADDR]], align 8
    -; CW-NEXT:    [[LOAD:%.*]] = load ptr, ptr addrspace(5) [[FP_ADDR]], align 8
    -; CW-NEXT:    [[TMP0:%.*]] = icmp eq ptr [[LOAD]], @bar1
    +; CW-NEXT:    [[TMP0:%.*]] = icmp eq ptr [[FP]], @bar1
     ; CW-NEXT:    br i1 [[TMP0]], label [[TMP1:%.*]], label [[TMP2:%.*]]
     ; CW:       1:
     ; CW-NEXT:    call void @bar1()
    @@ -88,8 +86,7 @@ define amdgpu_kernel void @foo(ptr noundef %fp) {
     ; NO-NEXT:  entry:
     ; NO-NEXT:    [[FP_ADDR:%.*]] = alloca ptr, align 8, addrspace(5)
     ; NO-NEXT:    store ptr [[FP]], ptr addrspace(5) [[FP_ADDR]], align 8
    -; NO-NEXT:    [[LOAD:%.*]] = load ptr, ptr addrspace(5) [[FP_ADDR]], align 8
    -; NO-NEXT:    call void [[LOAD]](), !callees [[META0:![0-9]+]]
    +; NO-NEXT:    call void [[FP]](), !callees [[META0:![0-9]+]]
     ; NO-NEXT:    ret void
     ;
     entry:
    diff --git a/llvm/test/CodeGen/AMDGPU/simple-indirect-call.ll b/llvm/test/CodeGen/AMDGPU/simple-indirect-call.ll
    index 24bee94fd90c39..5de089e189ba24 100644
    --- a/llvm/test/CodeGen/AMDGPU/simple-indirect-call.ll
    +++ b/llvm/test/CodeGen/AMDGPU/simple-indirect-call.ll
    @@ -16,11 +16,12 @@ define internal void @indirect() {
     }
     
     define amdgpu_kernel void @test_simple_indirect_call() {
    -; ATTRIBUTOR_GCN-LABEL: define {{[^@]+}}@test_simple_indirect_call() {
    +; ATTRIBUTOR_GCN-LABEL: define {{[^@]+}}@test_simple_indirect_call
    +; ATTRIBUTOR_GCN-SAME: () #[[ATTR1:[0-9]+]] {
     ; ATTRIBUTOR_GCN-NEXT:    [[FPTR:%.*]] = alloca ptr, align 8, addrspace(5)
     ; ATTRIBUTOR_GCN-NEXT:    store ptr @indirect, ptr addrspace(5) [[FPTR]], align 8, !noalias.addrspace [[META0:![0-9]+]]
     ; ATTRIBUTOR_GCN-NEXT:    [[FP:%.*]] = load ptr, ptr addrspace(5) [[FPTR]], align 8, !noalias.addrspace [[META0]]
    -; ATTRIBUTOR_GCN-NEXT:    call void [[FP]]()
    +; ATTRIBUTOR_GCN-NEXT:    call void @indirect()
     ; ATTRIBUTOR_GCN-NEXT:    ret void
     ;
     ; GFX9-LABEL: test_simple_indirect_call:
    @@ -58,6 +59,7 @@ define amdgpu_kernel void @test_simple_indirect_call() {
     
     ;.
     ; ATTRIBUTOR_GCN: attributes #[[ATTR0]] = { "amdgpu-no-cluster-id-x" "amdgpu-no-cluster-id-y" "amdgpu-no-cluster-id-z" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-flat-scratch-init" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-implicitarg-ptr" "amdgpu-no-lds-dma" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-no-wwm" }
    +; ATTRIBUTOR_GCN: attributes #[[ATTR1]] = { "amdgpu-no-cluster-id-x" "amdgpu-no-cluster-id-y" "amdgpu-no-cluster-id-z" "amdgpu-no-completion-action" "amdgpu-no-default-queue" "amdgpu-no-dispatch-id" "amdgpu-no-dispatch-ptr" "amdgpu-no-heap-ptr" "amdgpu-no-hostcall-ptr" "amdgpu-no-lds-dma" "amdgpu-no-lds-kernel-id" "amdgpu-no-multigrid-sync-arg" "amdgpu-no-queue-ptr" "amdgpu-no-workgroup-id-x" "amdgpu-no-workgroup-id-y" "amdgpu-no-workgroup-id-z" "amdgpu-no-workitem-id-x" "amdgpu-no-workitem-id-y" "amdgpu-no-workitem-id-z" "amdgpu-no-wwm" }
     ;.
     ; ATTRIBUTOR_GCN: [[META0]] = !{i32 1, i32 5, i32 6, i32 16}
     ;.
    
    
    ``````

    </details>

    arsenm arsenm commented on code on Nov 30, 2026 03:06 UTC
    Code Review
    llvm/test/CodeGen/AMDGPU/amdgpu-attributor-instance-info-call-chain.ll:1
    @@ -0,0 +1,42 @@
    +; REQUIRES: asserts
    +; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor -attributor-max-iterations=16 -debug-only=attributor -disable-output < %s 2>&1 | FileCheck %s

    Old triple

    shiltian shiltian commented on code on Nov 30, 2026 03:11 UTC
    Code Review
    llvm/test/CodeGen/AMDGPU/amdgpu-attributor-instance-info-call-chain.ll:1
    @@ -0,0 +1,42 @@
    +; REQUIRES: asserts
    +; RUN: opt -mtriple=amdgcn-amd-amdhsa -passes=amdgpu-attributor -attributor-max-iterations=16 -debug-only=attributor -disable-output < %s 2>&1 | FileCheck %s

    WE don't really need a new test case actually.

    jmmartinez jmmartinez approved these changes on Nov 30, 2026 08:53 UTC
    Approved Reviewer

    Approved these changes.

    Reviewers
    Assignees
    shiltian shiltian
    Labels
    risk: low confidence: 81.4% reviewed
    Vouch Risk Breakdown
    AI-powered review risk analysis
    Change Risk
    Change Risk · Model 1 (XGBoost)
    Predicted defect probability (0.00–1.00) based on diff churn, modified sensitive files, and author risk history.
    Score: 33.6% (LOW) · Higher = larger blast radius
    33.6%
    Review Confidence
    Review Confidence · Models 2 & 3
    Scrutiny score (0.00–1.00) combining DistilBERT semantic review depth with reviewer familiarity and session dwell time.
    Score: 81.4% · Lower = rushed or shallow review
    81.4%
    Residual Risk
    Residual Risk · Core Equation
    Residual = Change × (1 − Confidence)
    Unmitigated risk surviving review. ≥ 0.65 triggers an automated re-queue to protect production.
    Score: 6.2% · Safe to merge
    6.2%