[PATCH] D111912: New Pass for Merging Arbitrary Pair of Functions to Reduce Code Size

Rodrigo Caetano de Oliveira Rocha via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Apr 7 15:22:32 PDT 2022


rcorcs updated this revision to Diff 421342.
rcorcs added a comment.

I've fixed a bug when propagating a phi-node to both non-merged and merged users. The is stored into memory in the first valid insertion point of its parent block.
I also added a small test example to exercise this issue.


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D111912

Files:
  include/llvm/InitializePasses.h
  include/llvm/Transforms/IPO.h
  include/llvm/Transforms/IPO/FunctionMerging.h
  lib/Passes/PassBuilder.cpp
  lib/Passes/PassRegistry.def
  lib/Transforms/IPO/CMakeLists.txt
  lib/Transforms/IPO/FunctionMerging.cpp
  lib/Transforms/IPO/IPO.cpp
  test/Transforms/FunctionMerging/block-reordering.ll
  test/Transforms/FunctionMerging/operand-selection.ll
  test/Transforms/FunctionMerging/phi-propagation-to-users.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D111912.421342.patch
Type: text/x-patch
Size: 87260 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220407/002b3dce/attachment.bin>


More information about the llvm-commits mailing list