[PATCH] D51978: [ARM] Allow truncs as sources in ARM CGP

Sam Parker via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 12 05:02:10 PDT 2018


samparker created this revision.
samparker added a reviewer: SjoerdMeijer.
Herald added a reviewer: javed.absar.
Herald added subscribers: chrib, kristof.beyls.

We previously only allowed truncs as sinks, but now allow them as sources too. We do this by checking that the result type is the narrow type that we're trying to optimise for.


https://reviews.llvm.org/D51978

Files:
  lib/Target/ARM/ARMCodeGenPrepare.cpp
  test/CodeGen/ARM/arm-cgp-casts.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D51978.165064.patch
Type: text/x-patch
Size: 4688 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180912/dc50c2f1/attachment.bin>


More information about the llvm-commits mailing list