diff options
author | Daniil Seredkin <vdsered@gmail.com> | 2021-06-02 11:55:38 +0700 |
---|---|---|
committer | Daniil Seredkin <vdsered@gmail.com> | 2021-06-18 14:12:00 +0700 |
commit | 31053338c97b36ffb582f9c04a74cec69cce3e70 (patch) | |
tree | e844c9d850cb1bda1bfc59876b6b53cdc0e94b30 /llvm/lib/Demangle/RustDemangle.cpp | |
parent | 6aac2773d80b42bcf9da2414bbd410aa9f10095e (diff) | |
download | llvm-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