]> granicus.if.org Git - llvm/commit
hwasan: Shrink outlined checks by 1 instruction.
authorPeter Collingbourne <peter@pcc.me.uk>
Wed, 19 Jun 2019 20:40:03 +0000 (20:40 +0000)
committerPeter Collingbourne <peter@pcc.me.uk>
Wed, 19 Jun 2019 20:40:03 +0000 (20:40 +0000)
commit5b01aa833231e2a91ab91bb43bba0d0531b670c5
tree1463fd0f70e16a1ba522de4d7bb26edb775cb6d3
parente1eedb66023d4f90b7a46d6703ddf8ef4574d47a
hwasan: Shrink outlined checks by 1 instruction.

Turns out that we can save an instruction by folding the right shift into
the compare.

Differential Revision: https://reviews.llvm.org/D63568

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@363874 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64AsmPrinter.cpp
test/CodeGen/AArch64/hwasan-check-memaccess.ll