[AArch64] Don't expand memcmp in strict align mode.
authorEli Friedman <efriedma@quicinc.com>
Mon, 6 Apr 2020 22:17:02 +0000 (15:17 -0700)
committerEli Friedman <efriedma@quicinc.com>
Tue, 7 Apr 2020 17:53:36 +0000 (10:53 -0700)
commite9ac757f79cdaf25b3820fd13314dbc01b357ae9
treef420c24e371da88492497dcd3729d478b92792b3
parentf596ab40666358e3eab09fc221c9f11e00c93f95
[AArch64] Don't expand memcmp in strict align mode.

7aecf232 fixed the bug where we would miscompile, but we still generate
a crazy amount of code. Turn off the expansion until someone implements
an appropriate heuristic.

Differential Revision: https://reviews.llvm.org/D77599
llvm/lib/Target/AArch64/AArch64TargetTransformInfo.cpp
llvm/test/CodeGen/AArch64/bcmp-inline-small.ll