aboutsummaryrefslogtreecommitdiff
path: root/llvm/lib/Demangle/RustDemangle.cpp
diff options
context:
space:
mode:
authorDaniil Seredkin <vdsered@gmail.com>2021-06-02 11:55:38 +0700
committerDaniil Seredkin <vdsered@gmail.com>2021-06-18 14:12:00 +0700
commit31053338c97b36ffb582f9c04a74cec69cce3e70 (patch)
treee844c9d850cb1bda1bfc59876b6b53cdc0e94b30 /llvm/lib/Demangle/RustDemangle.cpp
parent6aac2773d80b42bcf9da2414bbd410aa9f10095e (diff)
downloadllvm-31053338c97b36ffb582f9c04a74cec69cce3e70.zip
llvm-31053338c97b36ffb582f9c04a74cec69cce3e70.tar.gz
llvm-31053338c97b36ffb582f9c04a74cec69cce3e70.tar.bz2
[InstCombine] Fold (sext bool X) * (sext bool X) to zext (and X, X)
InstCombine didn't perform (sext bool X) * (sext bool X) --> zext (and X, X) which can result in just (zext X). The patch adds regression tests to check this transformation and adds a check for equality of mul's operands for that case. Differential Revision: https://reviews.llvm.org/D104193
Diffstat (limited to 'llvm/lib/Demangle/RustDemangle.cpp')
0 files changed, 0 insertions, 0 deletions