[llvm] 6bcf1f9 - AMDGPU: Indicate pessimistic fixpoint for entry functions

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Sat Dec 11 08:52:30 PST 2021


Author: Matt Arsenault
Date: 2021-12-11T11:42:34-05:00
New Revision: 6bcf1f9181560c53c2a9392c53da6535ae7e6bc0

URL: https://github.com/llvm/llvm-project/commit/6bcf1f9181560c53c2a9392c53da6535ae7e6bc0
DIFF: https://github.com/llvm/llvm-project/commit/6bcf1f9181560c53c2a9392c53da6535ae7e6bc0.diff

LOG: AMDGPU: Indicate pessimistic fixpoint for entry functions

There aren't going to be any callers for these, so avoid running
through the machinery to look at the callers.

Added: 
    

Modified: 
    llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp

Removed: 
    


################################################################################
diff  --git a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
index ce702c3297ba8..b83e083bfe98b 100644
--- a/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
+++ b/llvm/lib/Target/AMDGPU/AMDGPUAttributor.cpp
@@ -521,6 +521,9 @@ struct AAAMDFlatWorkGroupSize
     std::tie(MinGroupSize, MaxGroupSize) = InfoCache.getFlatWorkGroupSizes(*F);
     intersectKnown(
         ConstantRange(APInt(32, MinGroupSize), APInt(32, MaxGroupSize + 1)));
+
+    if (AMDGPU::isEntryFunctionCC(F->getCallingConv()))
+      indicatePessimisticFixpoint();
   }
 
   ChangeStatus updateImpl(Attributor &A) override {


        


More information about the llvm-commits mailing list