Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[X86] Fix a bug in TEST with immediate creation
This code tries to form a TEST from CMP+AND with an optional truncate in between. If we looked through the truncate, we may have extra bits in the AND mask that shouldn't participate in the checks. Normally SimplifyDemendedBits takes care of this, but the AND may have another user. So manually mask out any extra bits. Fixes PR51175. Differential Revision: https://reviews.llvm.org/D106634
- Loading branch information