[ARM] Mark LEApcrel as not having side effects
authorJohn Brawn <john.brawn@arm.com>
Mon, 15 May 2017 11:50:21 +0000 (11:50 +0000)
committerJohn Brawn <john.brawn@arm.com>
Mon, 15 May 2017 11:50:21 +0000 (11:50 +0000)
commit43132c46a6ca95feb959377a50e74acd8b0125c9
treefb4232c7a61177eac135a28492fadb6890b639de
parentaed4b5682d3da7ee08f615290a68418d601970ce
[ARM] Mark LEApcrel as not having side effects

Doing this lets us hoist it out of loops, and I've also marked it as
rematerializable the same as the thumb1 and thumb2 counterparts.

It looks like it being marked as such was just a mistake, as the commit that
made that change only mentions LEApcrelJT and in thumb1 and thumb2 only the
LEApcrelJT instructions were marked as having side-effects, so it looks like
the intent was to only mark LEApcrelJT as having side-effects but LEApcrel was
accidentally marked as such also.

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

llvm-svn: 303053
llvm/lib/Target/ARM/ARMInstrInfo.td
llvm/test/CodeGen/ARM/adr-hoist.ll [new file with mode: 0644]