diff options
author | Nadav Rotem <nrotem@apple.com> | 2012-11-05 23:57:45 +0000 |
---|---|---|
committer | Nadav Rotem <nrotem@apple.com> | 2012-11-05 23:57:45 +0000 |
commit | 887c1fe7010d6f487ce246df6e2fc18eeb4eaa05 (patch) | |
tree | f17979e0d8baa6836446fa1c490b07c379134d9e /lib/Target/X86 | |
parent | 7ae3bcca4502f79fdadbfbbb0e68c5e14cc699fa (diff) | |
download | llvm-887c1fe7010d6f487ce246df6e2fc18eeb4eaa05.tar.gz llvm-887c1fe7010d6f487ce246df6e2fc18eeb4eaa05.tar.bz2 llvm-887c1fe7010d6f487ce246df6e2fc18eeb4eaa05.tar.xz |
Refactor the getTypeLegalizationCost interface. No functionality change.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@167422 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/Target/X86')
-rw-r--r-- | lib/Target/X86/X86ISelLowering.cpp | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/lib/Target/X86/X86ISelLowering.cpp b/lib/Target/X86/X86ISelLowering.cpp index 0918f954a4..6b5466d70b 100644 --- a/lib/Target/X86/X86ISelLowering.cpp +++ b/lib/Target/X86/X86ISelLowering.cpp @@ -17530,8 +17530,7 @@ unsigned X86VectorTargetTransformInfo::getArithmeticInstrCost(unsigned Opcode, Type *Ty) const { // Legalize the type. - std::pair<unsigned, MVT> LT = - getTypeLegalizationCost(Ty->getContext(), TLI->getValueType(Ty)); + std::pair<unsigned, MVT> LT = getTypeLegalizationCost(Ty); int ISD = InstructionOpcodeToISD(Opcode); assert(ISD && "Invalid opcode"); @@ -17569,8 +17568,7 @@ X86VectorTargetTransformInfo::getVectorInstrCost(unsigned Opcode, Type *Val, if (Index != -1U) { // Legalize the type. - std::pair<unsigned, MVT> LT = - getTypeLegalizationCost(Val->getContext(), TLI->getValueType(Val)); + std::pair<unsigned, MVT> LT = getTypeLegalizationCost(Val); // This type is legalized to a scalar type. if (!LT.second.isVector()) @@ -17592,8 +17590,7 @@ unsigned X86VectorTargetTransformInfo::getCmpSelInstrCost(unsigned Opcode, Type *ValTy, Type *CondTy) const { // Legalize the type. - std::pair<unsigned, MVT> LT = - getTypeLegalizationCost(ValTy->getContext(), TLI->getValueType(ValTy)); + std::pair<unsigned, MVT> LT = getTypeLegalizationCost(ValTy); MVT MTy = LT.second; |