On Thu, Feb 20, 2014 at 10:21:12AM +0100, Jakub Jelinek wrote: > > > Or, if ARM supports unaligned loads/stores using special instructions, > > > perhaps you should also benchmark the alternative of not realigning, but > > > instead making sure those unaligned instructions are used for the shadow > > > memory loads/stores in the asan prologue/epilogue.
Also note that apparently ARM does have unaligned_storesi pattern, just doesn't provide movmisalignsi expander so that it could be (easily) used from the middle-end. So you should certainly also try it that way and test. Jakub