aboutsummaryrefslogtreecommitdiff
path: root/clang/lib/Frontend/CompilerInvocation.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/Frontend/CompilerInvocation.cpp
parentde19f749e0e6108de7eff4d77e8e6afa8c9f64cb (diff)
downloadllvm-9cf08c6de1da1174986a8b198134121450832941.zip
llvm-9cf08c6de1da1174986a8b198134121450832941.tar.gz
llvm-9cf08c6de1da1174986a8b198134121450832941.tar.bz2
[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/Frontend/CompilerInvocation.cpp')
0 files changed, 0 insertions, 0 deletions