]> granicus.if.org Git - llvm/commitdiff
ARM: tLDR_postidx should be marked mayLoad
authorMatthias Braun <matze@braunis.de>
Fri, 20 Jan 2017 18:30:28 +0000 (18:30 +0000)
committerMatthias Braun <matze@braunis.de>
Fri, 20 Jan 2017 18:30:28 +0000 (18:30 +0000)
This fixes -verify-machineinstrs complaints.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@292629 91177308-0d34-0410-b5e6-96231b3b80d8

lib/Target/ARM/ARMInstrThumb.td

index a681f64b05e610bc484acaffbdcf51a3749bb885..b0bfae4d30435f8553af6813451e2f205b43ff0f 100644 (file)
@@ -1477,7 +1477,7 @@ def : T1Pat<(extloadi16 t_addrmode_rr:$addr),  (tLDRHr t_addrmode_rr:$addr)>;
 // post-inc LDR -> LDM r0!, {r1}. The way operands are layed out in LDMs is
 // different to how ISel expects them for a post-inc load, so use a pseudo
 // and expand it just after ISel.
-let usesCustomInserter = 1,
+let usesCustomInserter = 1, mayLoad =1,
     Constraints = "$Rn = $Rn_wb,@earlyclobber $Rn_wb" in
  def tLDR_postidx: tPseudoInst<(outs rGPR:$Rt, rGPR:$Rn_wb),
                                (ins rGPR:$Rn, pred:$p),