mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2024-12-13 04:30:23 +00:00
[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:
parent
9272305648
commit
7b901e3907
@ -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());
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user