[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)
commitcd2334e86e018757b5a51eb16e5a814a6d95bded
tree961825bc1133f4578e2743b9ca7b4bad170866d7
parentea79c5b4f7e5b1eece00fadb51cac4269cd997b5
[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.

llvm-svn: 235491
llvm/lib/Target/AArch64/AArch64TargetMachine.cpp
llvm/test/CodeGen/AArch64/aarch64-gep-opt.ll