[AArch64] Enable the codegenprepare optimization that promotes operation to form
authorQuentin Colombet <qcolombet@apple.com>
Tue, 31 Mar 2015 20:52:32 +0000 (20:52 +0000)
committerQuentin Colombet <qcolombet@apple.com>
Tue, 31 Mar 2015 20:52:32 +0000 (20:52 +0000)
commit6aebd393f04adc7da6152689e3e990f036051163
treef059f249b188734cb0cc7b96e7fb9f7adc876aa5
parent2c81f7d0a2f9b5ab48044bb15ba4bbef45297453
[AArch64] Enable the codegenprepare optimization that promotes operation to form
extended loads.
Implement the related target lowering hook so that the optimization has a better
estimation of the cost of an extension.

rdar://problem/19267165

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233753 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64ISelLowering.cpp
lib/Target/AArch64/AArch64ISelLowering.h
test/CodeGen/AArch64/arm64-codegen-prepare-extload.ll [new file with mode: 0644]