summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Transforms/InstCombine
diff options
context:
space:
mode:
authorSanjay Patel <spatel@rotateright.com>2016-02-29 23:59:00 +0000
committerSanjay Patel <spatel@rotateright.com>2016-02-29 23:59:00 +0000
commit6f2c01f7124691c58a2df72ef989b5e93510fa5b (patch)
tree5f6aaf0a1d9cae6fbe2b6a0f04458b9e16d66cb3 /llvm/lib/Transforms/InstCombine
parent093594938bf5c46a5fb4b7b3ea157eb269d8f885 (diff)
downloadbcm5719-llvm-6f2c01f7124691c58a2df72ef989b5e93510fa5b.tar.gz
bcm5719-llvm-6f2c01f7124691c58a2df72ef989b5e93510fa5b.zip
[x86, InstCombine] transform more x86 masked loads to LLVM intrinsics
Continuation of: http://reviews.llvm.org/rL262269 llvm-svn: 262273
Diffstat (limited to 'llvm/lib/Transforms/InstCombine')
-rw-r--r--llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
index 43b1bf0dc10..b8396eee844 100644
--- a/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
+++ b/llvm/lib/Transforms/InstCombine/InstCombineCalls.cpp
@@ -1663,7 +1663,13 @@ Instruction *InstCombiner::visitCallInst(CallInst &CI) {
break;
case Intrinsic::x86_avx_maskload_ps:
- // TODO: Add the other masked load variants.
+ case Intrinsic::x86_avx_maskload_pd:
+ case Intrinsic::x86_avx_maskload_ps_256:
+ case Intrinsic::x86_avx_maskload_pd_256:
+ case Intrinsic::x86_avx2_maskload_d:
+ case Intrinsic::x86_avx2_maskload_q:
+ case Intrinsic::x86_avx2_maskload_d_256:
+ case Intrinsic::x86_avx2_maskload_q_256:
if (Instruction *I = simplifyX86MaskedLoad(*II, *this))
return I;
break;
OpenPOWER on IntegriCloud