[NVPTX] Remove dead code in NVPTXTargetTransformInfo (NFC)

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@221668 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Jingyue Wu 2014-11-11 05:24:04 +00:00
parent 9272305648
commit 7b901e3907

View File

@ -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());
}