]> granicus.if.org Git - clang/commit
[X86] When emitting masked loads/stores don't check for all ones mask.
authorCraig Topper <craig.topper@intel.com>
Sun, 3 Jun 2018 18:08:36 +0000 (18:08 +0000)
committerCraig Topper <craig.topper@intel.com>
Sun, 3 Jun 2018 18:08:36 +0000 (18:08 +0000)
commit3c6cf4a209b4e71273e2dba97c9169ebdf70532c
treea2aa801274e178bd2b83230f718837038654c4c7
parentb2f248c76d708fd7a4a8024c228b14c68bcf1975
[X86] When emitting masked loads/stores don't check for all ones mask.

This seems like a premature optimization. It's unlikely a user would pass something the frontend can tell is all ones to the masked load/store intrinsics.

We do this optimization for emitting select for masking because we have builtin calls in header files that pass an all ones mask in. Though at this point we may not longer have any builtins that emit some IR and a select. We may only have the select builtins so maybe we can remove that optimization too.

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@333847 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp