diff options
| author | Craig Topper <craig.topper@gmail.com> | 2012-01-13 06:12:41 +0000 | 
|---|---|---|
| committer | Craig Topper <craig.topper@gmail.com> | 2012-01-13 06:12:41 +0000 | 
| commit | a4c5a47b976692731e4b3eb92ea69d754966072d (patch) | |
| tree | 0171c771eec0faafe7c96a108d2a3816c98bda48 | |
| parent | ea6c99c1d90603f6173bca7c9e69d75df9d43a0f (diff) | |
| download | bcm5719-llvm-a4c5a47b976692731e4b3eb92ea69d754966072d.tar.gz bcm5719-llvm-a4c5a47b976692731e4b3eb92ea69d754966072d.zip  | |
Use 8i32 constant pool entry for converting AVX2_SETALLONES. Possibly fixes PR11750.
llvm-svn: 148101
| -rw-r--r-- | llvm/lib/Target/X86/X86InstrInfo.cpp | 2 | 
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Target/X86/X86InstrInfo.cpp b/llvm/lib/Target/X86/X86InstrInfo.cpp index 7d1b9a1fe50..f5ca7c2b4aa 100644 --- a/llvm/lib/Target/X86/X86InstrInfo.cpp +++ b/llvm/lib/Target/X86/X86InstrInfo.cpp @@ -2985,6 +2985,8 @@ MachineInstr* X86InstrInfo::foldMemoryOperandImpl(MachineFunction &MF,        Ty = Type::getDoubleTy(MF.getFunction()->getContext());      else if (Opc == X86::AVX_SET0PSY || Opc == X86::AVX_SET0PDY)        Ty = VectorType::get(Type::getFloatTy(MF.getFunction()->getContext()), 8); +    else if (Opc == X86::AVX2_SETALLONES) +      Ty = VectorType::get(Type::getInt32Ty(MF.getFunction()->getContext()), 8);      else        Ty = VectorType::get(Type::getInt32Ty(MF.getFunction()->getContext()), 4);  | 

