[llvm] r221668 - [NVPTX] Remove dead code in NVPTXTargetTransformInfo (NFC)

Jingyue Wu jingyue at google.com
Mon Nov 10 21:24:04 PST 2014


Author: jingyue
Date: Mon Nov 10 23:24:04 2014
New Revision: 221668

URL: http://llvm.org/viewvc/llvm-project?rev=221668&view=rev
Log:
[NVPTX] Remove dead code in NVPTXTargetTransformInfo (NFC)

Modified:
    llvm/trunk/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp

Modified: llvm/trunk/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp?rev=221668&r1=221667&r2=221668&view=diff
==============================================================================
--- llvm/trunk/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp (original)
+++ llvm/trunk/lib/Target/NVPTX/NVPTXTargetTransformInfo.cpp Mon Nov 10 23:24:04 2014
@@ -36,22 +36,12 @@ void initializeNVPTXTTIPass(PassRegistry
 namespace {
 
 class NVPTXTTI final : public ImmutablePass, public TargetTransformInfo {
-  const NVPTXTargetMachine *TM;
-  const NVPTXSubtarget *ST;
-  const NVPTXTargetLowering *TLI;
-
-  /// Estimate the overhead of scalarizing an instruction. Insert and Extract
-  /// are set if the result needs to be inserted and/or extracted from vectors.
-  unsigned getScalarizationOverhead(Type *Ty, bool Insert, bool Extract) const;
-
 public:
-  NVPTXTTI() : ImmutablePass(ID), TM(nullptr), ST(nullptr), TLI(nullptr) {
+  NVPTXTTI() : ImmutablePass(ID) {
     llvm_unreachable("This pass cannot be directly constructed");
   }
 
-  NVPTXTTI(const NVPTXTargetMachine *TM)
-      : ImmutablePass(ID), TM(TM), ST(TM->getSubtargetImpl()),
-        TLI(TM->getSubtargetImpl()->getTargetLowering()) {
+  NVPTXTTI(const NVPTXTargetMachine *TM) : ImmutablePass(ID) {
     initializeNVPTXTTIPass(*PassRegistry::getPassRegistry());
   }
 





More information about the llvm-commits mailing list