[PATCH] D87789: [ARM] Constant fold VMOVrh

Dave Green via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 16 13:14:59 PDT 2020


dmgreen created this revision.
dmgreen added reviewers: efriedma, SjoerdMeijer, simon_tatham, ostannard.
Herald added subscribers: danielkiss, hiraditya, kristof.beyls.
Herald added a project: LLVM.
dmgreen requested review of this revision.

This adds simple constant folding for VMOVrh. It can help with especially with soft calling conventions, but some of the results are not optimal as we end up loading using a vldr. This can be improved in a follow up patch.


https://reviews.llvm.org/D87789

Files:
  llvm/lib/Target/ARM/ARMISelLowering.cpp
  llvm/test/CodeGen/ARM/cmse-clear-float-hard.ll
  llvm/test/CodeGen/ARM/fp16-bitcast.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D87789.292322.patch
Type: text/x-patch
Size: 10555 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200916/3cbca37d/attachment.bin>


More information about the llvm-commits mailing list