Use 8i32 constant pool entry for converting AVX2_SETALLONES. Possibly fixes PR11750.

llvm-svn: 148101
This commit is contained in:
Craig Topper 2012-01-13 06:12:41 +00:00
parent ea6c99c1d9
commit a4c5a47b97
1 changed files with 2 additions and 0 deletions

View File

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