diff options
author | Roman Lebedev <lebedev.ri@gmail.com> | 2021-04-20 22:54:10 +0300 |
---|---|---|
committer | Roman Lebedev <lebedev.ri@gmail.com> | 2021-04-21 00:31:46 +0300 |
commit | ea1a0d7c9ae3e5232a4163fc67efad4aabd51f2b (patch) | |
tree | 24a7c521f7d15a0a5a7108d42075e8d00b5399eb /llvm/lib/CodeGen/StackProtector.cpp | |
parent | 8cff391995a91e851224b3aa428621c0ea89de18 (diff) | |
download | llvm-ea1a0d7c9ae3e5232a4163fc67efad4aabd51f2b.zip llvm-ea1a0d7c9ae3e5232a4163fc67efad4aabd51f2b.tar.gz llvm-ea1a0d7c9ae3e5232a4163fc67efad4aabd51f2b.tar.bz2 |
[InstSimplify] Bypass no-op `and`-mask, using known bits (PR49543)
We already special-cased a few interesting patterns,
but that is strictly less powerful than using KnownBits.
So instead get the known bits for the operand of `and`,
and iff all the unset bits of the `and`-mask are known to be zeros
in the operand, we can omit said `and`.
Diffstat (limited to 'llvm/lib/CodeGen/StackProtector.cpp')
0 files changed, 0 insertions, 0 deletions