[PATCH] D56255: [ARM] Size reduce teq to eors

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 3 03:23:04 PST 2019


samparker created this revision.
samparker added reviewers: t.p.northover, rovka, dmgreen.
Herald added subscribers: kristof.beyls, javed.absar.

Add t2TEQrr to the map of instructions with can be reduced down into a T1 instruction. This is a special case because TEQ just sets the CPSR and doesn't write to a GPR, which is not the case for EOR. So, we need to ensure that the EOR can write to the first operand.


https://reviews.llvm.org/D56255

Files:
  lib/Target/ARM/Thumb2SizeReduction.cpp
  test/CodeGen/Thumb2/teq-size-reduce.ll
  test/CodeGen/Thumb2/thumb2-teq2.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D56255.180016.patch
Type: text/x-patch
Size: 6733 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20190103/736ba1cb/attachment.bin>


More information about the llvm-commits mailing list