diff options
author | Bill Wendling <isanbard@gmail.com> | 2011-04-12 22:59:27 +0000 |
---|---|---|
committer | Bill Wendling <isanbard@gmail.com> | 2011-04-12 22:59:27 +0000 |
commit | dbfde42468221dffae736513ca68853e798ae018 (patch) | |
tree | 7e542021ec3055cbbab11fcb39f0fffb36920f04 /llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | |
parent | f20c4f715f206f5ecb814e264922380a77da105c (diff) | |
download | bcm5719-llvm-dbfde42468221dffae736513ca68853e798ae018.tar.gz bcm5719-llvm-dbfde42468221dffae736513ca68853e798ae018.zip |
Revert r129401 for now. Clang is using the old way of doing things.
llvm-svn: 129403
Diffstat (limited to 'llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp')
-rw-r--r-- | llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp index 726105f75d6..875e9cae582 100644 --- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp +++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp @@ -537,7 +537,11 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) { break; case Intrinsic::ppc_altivec_lvx: case Intrinsic::ppc_altivec_lvxl: - // Turn PPC lvx -> load if the pointer is known aligned. + case Intrinsic::x86_sse_loadu_ps: + case Intrinsic::x86_sse2_loadu_pd: + case Intrinsic::x86_sse2_loadu_dq: + // Turn PPC lvx -> load if the pointer is known aligned. + // Turn X86 loadups -> load if the pointer is known aligned. if (getOrEnforceKnownAlignment(II->getArgOperand(0), 16, TD) >= 16) { Value *Ptr = Builder->CreateBitCast(II->getArgOperand(0), PointerType::getUnqual(II->getType())); |