[llvm] [AMDGPU] Filter candidates of LiveRegOptimizer for profitable cases (PR #124624)

via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 28 12:48:25 PST 2025


================
@@ -45,6 +46,7 @@ class AMDGPULateCodeGenPrepare
   Function &F;
   const DataLayout &DL;
   const GCNSubtarget &ST;
+  const TargetTransformInfo &TTI;
----------------
choikwa wrote:

TTI acts as interface class I believe. Below is what gets returned.
```
TargetTransformInfo
GCNTargetMachine::getTargetTransformInfo(const Function &F) const {
  return TargetTransformInfo(GCNTTIImpl(this, F));
}
```

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


More information about the llvm-commits mailing list