[PATCH] D47359: AMDGPU: Split AMDGPUTTI into GCNTTI and R600TTI

Matt Arsenault via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri May 25 00:17:08 PDT 2018


arsenm added inline comments.


================
Comment at: lib/Target/AMDGPU/AMDGPUTargetMachine.cpp:572-575
+  if (getTargetTriple().getArch() == Triple::r600)
+    return TargetTransformInfo(R600TTIImpl(this, F));
+  else
+    return TargetTransformInfo(GCNTTIImpl(this, F));
----------------
Why not implement separately for GCNTargetMachine and R600TargetMachine?


Repository:
  rL LLVM

https://reviews.llvm.org/D47359





More information about the llvm-commits mailing list