aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Format/Format.cpp
diff options
context:
space:
mode:
authorSimon Pilgrim <llvm-dev@redking.me.uk>2016-11-08 15:07:01 +0000
committerSimon Pilgrim <llvm-dev@redking.me.uk>2016-11-08 15:07:01 +0000
commit778596bf5961bcc74f713b48610999d28db47791 (patch)
treeea1a38d55b10e054069b339d194f8103ea4fdb0d /clang/lib/Format/Format.cpp
parentc0e47fbfb26bcdc256b21e50ba8e705a6107e222 (diff)
downloadllvm-778596bf5961bcc74f713b48610999d28db47791.zip
llvm-778596bf5961bcc74f713b48610999d28db47791.tar.gz
llvm-778596bf5961bcc74f713b48610999d28db47791.tar.bz2
[TargetLowering] Fix undef vector element issue with true/false result handling
Fixed an issue with vector usage of TargetLowering::isConstTrueVal / TargetLowering::isConstFalseVal boolean result matching. The comment said we shouldn't handle constant splat vectors with undef elements. But the the actual code was returning false if the build vector contained no undef elements.... This patch now ignores the number of undefs (getConstantSplatNode will return null if the build vector is all undefs). The change has also unearthed a couple of missed opportunities in AVX512 comparison code that will need to be addressed. Differential Revision: https://reviews.llvm.org/D26031 llvm-svn: 286238
Diffstat (limited to 'clang/lib/Format/Format.cpp')
0 files changed, 0 insertions, 0 deletions