[PATCH] D111237: [TypePromotion] Promote PHI-nodes

Andre Vieira via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 18 03:45:19 PST 2021


avieira updated this revision to Diff 388144.
avieira added a comment.

Coming back to this as I abandoned the approach in D112300 <https://reviews.llvm.org/D112300>, since that was deemed too early to be consulting target information.

Reworked the patch to be able to support more general cases. Only promote now if all incoming values of the PHI-node lead to free extensions.

Benchmarked SPEC 2017 intrate on aarch64 and saw no regressions and a small (0.7%) performance uplift on perlbench. Size differences were negligible.


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D111237/new/

https://reviews.llvm.org/D111237

Files:
  llvm/lib/CodeGen/TypePromotion.cpp
  llvm/test/CodeGen/Thumb2/mve-vmovlloop.ll
  llvm/test/Transforms/TypePromotion/AArch64/dont-promote-phi-ext.ll
  llvm/test/Transforms/TypePromotion/AArch64/promote-phi-ext.ll
  llvm/test/Transforms/TypePromotion/ARM/dont-promote-phi-ext.ll
  llvm/test/Transforms/TypePromotion/ARM/promote-phi-ext.ll
  llvm/test/Transforms/TypePromotion/ARM/promote_mve_phi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111237.388144.patch
Type: text/x-patch
Size: 29666 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211118/b5429c00/attachment.bin>


More information about the llvm-commits mailing list