[AArch64] Disable complex GEP optimization by default.
authorJames Molloy <james.molloy@arm.com>
Wed, 22 Apr 2015 09:11:38 +0000 (09:11 +0000)
committerJames Molloy <james.molloy@arm.com>
Wed, 22 Apr 2015 09:11:38 +0000 (09:11 +0000)
commit89cc8dd3b84a636b2798028a994f4b71c78e0163
tree5efff8a49135b45bfe66161688c446d8fcf762b0
parente16cac587a3ad788fd3d87601ba824202b1a3803
[AArch64] Disable complex GEP optimization by default.

Enough concerns were raised that this optimization is pessimising some code patterns.

The obvious fix, to add a Reassociate run afterwards, causes even more pessimisation in some cases due to fewer complex addressing modes being matched. As there isn't a trivial fix for this, backing this out by default until someone gets a chance to fix the addressing mode matcher.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@235491 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Target/AArch64/AArch64TargetMachine.cpp
test/CodeGen/AArch64/aarch64-gep-opt.ll