diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-05-12 19:02:15 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-05-12 19:02:15 +0000 |
commit | e106c3481784ecfda9cb014cb2cfea5b3d13bbc9 (patch) | |
tree | f258b9fd8a6a63d651fe1a1fc52cfcafd0acd20d /clang/lib/CodeGen | |
parent | 3f125fe2eaab19eac991fbef562c85896b725e14 (diff) | |
download | bcm5719-llvm-e106c3481784ecfda9cb014cb2cfea5b3d13bbc9.tar.gz bcm5719-llvm-e106c3481784ecfda9cb014cb2cfea5b3d13bbc9.zip |
LLVM doesn't always optimize away the four loads from this:
(__m128){ p[0], p[1], p[2], p[3] }
which produces really bad code. This could be done in instcombine, but it's
probably better to do it in the front-end instead.
<rdar://problem/9424836>
llvm-svn: 131237
Diffstat (limited to 'clang/lib/CodeGen')
-rw-r--r-- | clang/lib/CodeGen/CGBuiltin.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/clang/lib/CodeGen/CGBuiltin.cpp b/clang/lib/CodeGen/CGBuiltin.cpp index 46546177ae5..494dfaeff77 100644 --- a/clang/lib/CodeGen/CGBuiltin.cpp +++ b/clang/lib/CodeGen/CGBuiltin.cpp @@ -2143,6 +2143,8 @@ Value *CodeGenFunction::EmitX86BuiltinExpr(unsigned BuiltinID, // If palignr is shifting the pair of vectors more than 32 bytes, emit zero. return llvm::Constant::getNullValue(ConvertType(E->getType())); } + case X86::BI__builtin_ia32_loadups: + case X86::BI__builtin_ia32_loadupd: case X86::BI__builtin_ia32_loaddqu: { const llvm::Type *VecTy = ConvertType(E->getType()); const llvm::Type *IntTy = llvm::IntegerType::get(getLLVMContext(), 128); |