diff options
| author | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2023-09-24 19:07:56 +0800 |
|---|---|---|
| committer | Yingwei Zheng <dtcxzyw2333@gmail.com> | 2023-09-24 19:10:47 +0800 |
| commit | 4c241a9335c3046e418e1b4afc162bc576c072fd (patch) | |
| tree | b9a6e187c96883088ebff1bb0d506795029c2986 /libcxx/test/std/strings/basic.string/string.modifiers/string_assign/string.pass.cpp | |
| parent | 71d225863f77567acab4de09932b9af5e43d8d6f (diff) | |
[InstCombine] Fold `(-1 + A) & B` into `A ? 0 : B` where A is effectively a bool
Solves issue https://github.com/llvm/llvm-project/issues/63321.
This patch explicitly folds `(-1 + A) & B` into `A ? 0 : B`. Additional trunc will be created when `A` is neither i1 nor <N x i1>.
https://alive2.llvm.org/ce/z/pWv9jJ
Reviewed By: goldstein.w.n
Differential Revision: https://reviews.llvm.org/D153148
Diffstat (limited to 'libcxx/test/std/strings/basic.string/string.modifiers/string_assign/string.pass.cpp')
0 files changed, 0 insertions, 0 deletions
