[PATCH] D52568: [InstCombine] Delay Phi operand folding in the pass manager

Alexandros Lamprineas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Sep 26 11:49:33 PDT 2018


labrinea created this revision.
labrinea added a reviewer: llvm-commits.
Herald added a subscriber: mehdi_amini.

Folding Phi operands too early in the pass pipeline can prevent other optimization passes, like GVN-Hoist, from being beneficial. This patch makes InstCombine capable of turning on/off the folding of Phi operands. Then uses that capability to delay Phi operand folding from the pass manager.


https://reviews.llvm.org/D52568

Files:
  include/llvm/Transforms/IPO/PassManagerBuilder.h
  include/llvm/Transforms/InstCombine/InstCombine.h
  lib/Passes/PassBuilder.cpp
  lib/Transforms/IPO/PassManagerBuilder.cpp
  lib/Transforms/InstCombine/InstCombineInternal.h
  lib/Transforms/InstCombine/InstCombinePHI.cpp
  lib/Transforms/InstCombine/InstructionCombining.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D52568.167161.patch
Type: text/x-patch
Size: 9240 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180926/efe698b8/attachment.bin>


More information about the llvm-commits mailing list