[PATCH] D48170: ARM: use "add" instead of "orr" for code size

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jun 19 12:16:30 PDT 2018


efriedma accepted this revision.
efriedma added a comment.
This revision is now accepted and ready to land.

LGTM



================
Comment at: llvm/lib/Target/ARM/ARMInstrThumb2.td:2606
+
+def : T2Pat<(or AddLikeOrOp:$Rn, non_imm32:$Rm),
+            (t2ADDrr $Rn, $Rm)>;
----------------
I guess you could specifically try to check that it isn't t2_so_imm, t2_so_imm_not, or imm0_4095, but probably not worth bothering.


Repository:
  rL LLVM

https://reviews.llvm.org/D48170





More information about the llvm-commits mailing list