https://github.com/vikramRH created 
https://github.com/llvm/llvm-project/pull/173486

None

>From 0fd7472541fd047e5d462c50ad40549fbfe4f0ac Mon Sep 17 00:00:00 2001
From: vikhegde <[email protected]>
Date: Wed, 24 Dec 2025 10:59:53 +0530
Subject: [PATCH] [AMDGPU][NPM] Obey "enable-amdgpu-aa" option

---
 llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp 
b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
index d2a2f81255344..50ee013a34684 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUTargetMachine.cpp
@@ -815,7 +815,8 @@ static bool mustPreserveGV(const GlobalValue &GV) {
 }
 
 void AMDGPUTargetMachine::registerDefaultAliasAnalyses(AAManager &AAM) {
-  AAM.registerFunctionAnalysis<AMDGPUAA>();
+  if (EnableAMDGPUAliasAnalysis)
+    AAM.registerFunctionAnalysis<AMDGPUAA>();
 }
 
 static Expected<ScanOptions>

_______________________________________________
llvm-branch-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-branch-commits

Reply via email to