]> granicus.if.org Git - clang/commit
[X86] Fix some vector cmp builtins - TRUE/FALSE predicates
authorGabor Buella <gabor.buella@intel.com>
Thu, 5 Jul 2018 14:26:56 +0000 (14:26 +0000)
committerGabor Buella <gabor.buella@intel.com>
Thu, 5 Jul 2018 14:26:56 +0000 (14:26 +0000)
commitaa316d40ec297e14b96d189f408f0a15ed92ddac
tree5bca49f19bba3a812a367ae06f7a33ed089c6505
parent570d2b6a4e6fec720347f6a8aa0db903bcb53e6f
[X86] Fix some vector cmp builtins - TRUE/FALSE predicates

This patch removes on optimization used with the TRUE/FALSE
predicates, as was suggested in https://reviews.llvm.org/D45616
for r335339.
The optimization was buggy, since r335339 used it also
for *_mask builtins, without actually applying the mask -- the
mask argument was just ignored.

Reviewers: craig.topper, uriel.k, RKSimon, andrew.w.kaylor, spatel, scanon, efriedma

Reviewed By: spatel

Differential Revision: https://reviews.llvm.org/D48715

git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@336355 91177308-0d34-0410-b5e6-96231b3b80d8
lib/CodeGen/CGBuiltin.cpp
test/CodeGen/avx-builtins.c
test/CodeGen/avx512f-builtins.c
test/CodeGen/avx512vl-builtins.c