summaryrefslogtreecommitdiffstats
path: root/clang/lib/Sema/SemaAccess.cpp
diff options
context:
space:
mode:
authorRoman Lebedev <lebedev.ri@gmail.com>2019-08-24 06:49:51 +0000
committerRoman Lebedev <lebedev.ri@gmail.com>2019-08-24 06:49:51 +0000
commit9cf08c6de1da1174986a8b198134121450832941 (patch)
treee83928e55cb619a08ead27cdb521735ad16289a3 /clang/lib/Sema/SemaAccess.cpp
parentde19f749e0e6108de7eff4d77e8e6afa8c9f64cb (diff)
downloadbcm5719-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
OpenPOWER on IntegriCloud