diff options
| author | Craig Topper <craig.topper@gmail.com> | 2012-01-09 02:28:15 +0000 | 
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2012-01-09 02:28:15 +0000 | 
| commit | 210e4f81b35070e27a7cb629140ab1c39930e46e (patch) | |
| tree | f193434a8cbdb72843118301a454a49e874884ab /llvm/lib/Target/X86/X86FastISel.cpp | |
| parent | f28213ca014b8ec4f4a2e7ae853a1ce7bc0e5d02 (diff) | |
| download | bcm5719-llvm-210e4f81b35070e27a7cb629140ab1c39930e46e.tar.gz bcm5719-llvm-210e4f81b35070e27a7cb629140ab1c39930e46e.zip | |
Change some places that were checking for AVX OR SSE1/2 to use hasXMM/hasXMMInt instead. Also fix one place that checked SSE3, but accidentally excluded AVX to use hasSSE3orAVX. This is a step towards removing the AVX hack from the X86Subtarget.h
llvm-svn: 147764
Diffstat (limited to 'llvm/lib/Target/X86/X86FastISel.cpp')
| -rw-r--r-- | llvm/lib/Target/X86/X86FastISel.cpp | 8 | 
1 files changed, 4 insertions, 4 deletions
| diff --git a/llvm/lib/Target/X86/X86FastISel.cpp b/llvm/lib/Target/X86/X86FastISel.cpp index 15894390cfa..cca2fd8b5ef 100644 --- a/llvm/lib/Target/X86/X86FastISel.cpp +++ b/llvm/lib/Target/X86/X86FastISel.cpp @@ -60,8 +60,8 @@ public:    explicit X86FastISel(FunctionLoweringInfo &funcInfo) : FastISel(funcInfo) {      Subtarget = &TM.getSubtarget<X86Subtarget>();      StackPtr = Subtarget->is64Bit() ? X86::RSP : X86::ESP; -    X86ScalarSSEf64 = Subtarget->hasSSE2() || Subtarget->hasAVX(); -    X86ScalarSSEf32 = Subtarget->hasSSE1() || Subtarget->hasAVX(); +    X86ScalarSSEf64 = Subtarget->hasXMMInt(); +    X86ScalarSSEf32 = Subtarget->hasXMM();    }    virtual bool TargetSelectInstruction(const Instruction *I); @@ -837,8 +837,8 @@ bool X86FastISel::X86SelectLoad(const Instruction *I)  {  static unsigned X86ChooseCmpOpcode(EVT VT, const X86Subtarget *Subtarget) {    bool HasAVX = Subtarget->hasAVX(); -  bool X86ScalarSSEf32 = HasAVX || Subtarget->hasSSE1(); -  bool X86ScalarSSEf64 = HasAVX || Subtarget->hasSSE2(); +  bool X86ScalarSSEf32 = Subtarget->hasXMM(); +  bool X86ScalarSSEf64 = Subtarget->hasXMMInt();    switch (VT.getSimpleVT().SimpleTy) {    default:       return 0; | 

