diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2019-08-24 06:49:51 +0000 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2019-08-24 06:49:51 +0000 |
commit | 9cf08c6de1da1174986a8b198134121450832941 (patch) | |
tree | e83928e55cb619a08ead27cdb521735ad16289a3 /clang/lib/Sema/SemaAccess.cpp | |
parent | de19f749e0e6108de7eff4d77e8e6afa8c9f64cb (diff) | |
download | bcm5719-llvm-9cf08c6de1da1174986a8b198134121450832941.tar.gz bcm5719-llvm-9cf08c6de1da1174986a8b198134121450832941.zip |
[Constant] Add 'isElementWiseEqual()' method
Promoting it from InstCombine's tryToReuseConstantFromSelectInComparison().
Return true if this constant and a constant 'Y' are element-wise equal.
This is identical to just comparing the pointers, with the exception that
for vectors, if only one of the constants has an `undef` element in some
lane, the constants still match.
llvm-svn: 369842
Diffstat (limited to 'clang/lib/Sema/SemaAccess.cpp')
0 files changed, 0 insertions, 0 deletions