[llvm] [AMDGPU] Account for inline asm size in inst_pref_size calculation (PR #192306)

Matt Arsenault via llvm-commits llvm-commits at lists.llvm.org
Mon May 4 13:53:27 PDT 2026


================
@@ -1177,6 +1177,14 @@ std::string AMDGPUTargetID::toString() const {
   return Str;
 }
 
+unsigned getInstCacheLineSize(const MCSubtargetInfo *STI) {
+  if (STI->getFeatureBits().test(FeatureInstCacheLineSize128))
+    return 128;
+  if (STI->getFeatureBits().test(FeatureInstCacheLineSize64))
+    return 64;
+  return 64;
----------------
arsenm wrote:

if FeatureInstCacheLineSize64 is going to exist I'd put the check back 

https://github.com/llvm/llvm-project/pull/192306


More information about the llvm-commits mailing list