aboutsummaryrefslogtreecommitdiff
path: root/llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp
diff options
context:
space:
mode:
authorAZero13 <gfunni234@gmail.com>2025-11-10 17:32:31 -0500
committerGitHub <noreply@github.com>2025-11-10 22:32:31 +0000
commit7b12a08f5e0d5e615dee2b62f9a68a03e68b6c93 (patch)
tree3e35aba2b5f6858faa35e882d17668a0fccf068e /llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp
parentd5125b3089ddb4e704752656c011d13b4eab0a2c (diff)
downloadllvm-7b12a08f5e0d5e615dee2b62f9a68a03e68b6c93.zip
llvm-7b12a08f5e0d5e615dee2b62f9a68a03e68b6c93.tar.gz
llvm-7b12a08f5e0d5e615dee2b62f9a68a03e68b6c93.tar.bz2
[AArch64] Allow peephole to optimize AND + signed compare with 0 (#153608)
This should be the peephole's job. Because and sets V flag to 0, this is why signed comparisons with 0 are okay to replace with tst. Note this is only for AArch64, because ANDS on ARM leaves the V flag the same. Fixes: https://github.com/llvm/llvm-project/issues/154387
Diffstat (limited to 'llvm/unittests/Transforms/Utils/BasicBlockUtilsTest.cpp')
0 files changed, 0 insertions, 0 deletions