AArch64: Re-enable AArch64AddressTypePromotion
authorDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 2 Jul 2014 18:17:40 +0000 (18:17 +0000)
committerDuncan P. N. Exon Smith <dexonsmith@apple.com>
Wed, 2 Jul 2014 18:17:40 +0000 (18:17 +0000)
commit9b4509a7599005fc562b8fc8996643dbf67cb1a7
treeb34fa0ba8520d3a6e2ef359d6fafb3bcc59a0e80
parenta95253080bc7dc0351fc8b7e16ff592b5caf22af
AArch64: Re-enable AArch64AddressTypePromotion

This reverts commits r212189 and r212190.

While this pass was accidentally disabled (until r212073), r205437
slipped in a use of `auto` that should have been `auto&`.

This fixes PR20188.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@212201 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64AddressTypePromotion.cpp
lib/Target/AArch64/AArch64TargetMachine.cpp
test/CodeGen/AArch64/aarch64-address-type-promotion-assertion.ll [new file with mode: 0644]
test/CodeGen/AArch64/aarch64-address-type-promotion.ll