summaryrefslogtreecommitdiff
path: root/llvm/lib/Bitcode/Reader/BitcodeReader.cpp
diff options
context:
space:
mode:
authorCullen Rhodes <cullen.rhodes@arm.com>2022-11-15 12:00:00 +0000
committerCullen Rhodes <cullen.rhodes@arm.com>2022-11-15 12:43:21 +0000
commit8699efba6dc8d905d144727eb10ff6782376bb87 (patch)
treee14b61fa3561fb18645cadc9927cdf63e5771d0d /llvm/lib/Bitcode/Reader/BitcodeReader.cpp
parent00b1f7a6ab2aecd2309e2faebde18a11309c6181 (diff)
[AArch64][SVE] Fix bad PTEST(PTRUE_ALL, PTEST_LIKE) optimization
AArch64InstrInfo::optimizePTestInstr attempts to remove a PTEST of a predicate generating operation that identically sets flags (implictly). When the mask is an all active of matching element size the PTEST is currently removed. For while instructions this is correct since they perform an implicit PTEST with an all active mask. However, for other instructions such as compares the mask could be different. This patch fixes this bug by only removing the PTEST if the same all active mask is used by the predicating-generating instruction. Reviewed By: bsmith Differential Revision: https://reviews.llvm.org/D137718
Diffstat (limited to 'llvm/lib/Bitcode/Reader/BitcodeReader.cpp')
0 files changed, 0 insertions, 0 deletions