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)
commit2742eeb78e3e93d2a29ccbc24233b8ef8b58972c
treefc9c9c025d5109f4e3bb03a029a78ac4d9a7f78e
parent07e6da933049b7386e49df9417889fff8dbc058c
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

llvm-svn: 363874
llvm/lib/Target/AArch64/AArch64AsmPrinter.cpp
llvm/test/CodeGen/AArch64/hwasan-check-memaccess.ll