[ARM] Enable GEP offset splitting for 32-bit ARM.
authorEli Friedman <efriedma@codeaurora.org>
Thu, 30 Aug 2018 22:18:27 +0000 (22:18 +0000)
committerEli Friedman <efriedma@codeaurora.org>
Thu, 30 Aug 2018 22:18:27 +0000 (22:18 +0000)
commitd5d0a4d27fbf4b360635fbfa721857e4d698ca28
treeb43942214187ba15225eab6e35768d18b8b013a2
parentf5415179bc61780273794cea4ae81e6a1e3c3061
[ARM] Enable GEP offset splitting for 32-bit ARM.

It has essentially the same benefit it has on 64-bit ARM: it
substantially reduces the number of constants used by large GEP
operations. Seems to be generally helpful across a few different
codebases I've tried.

Differential Revision: https://reviews.llvm.org/D51462

llvm-svn: 341136
llvm/lib/Target/ARM/ARMISelLowering.h
llvm/test/Transforms/CodeGenPrepare/ARM/large-offset-gep.ll [new file with mode: 0644]