[PATCH] D115914: [InstCombine] Fold two PHI operands of `or` conditionally.

Mingming Liu via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Dec 16 16:34:20 PST 2021


luna created this revision.
Herald added a subscriber: hiraditya.
luna added reviewers: Carrot, aeubanks, adriantong1024, efriedma, lebedev.ri.
luna added a subscriber: davidxl.
luna published this revision for review.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

If folding two PHI operands of a binary op into predecessors could simplify IR, make the transformation in InstCombine pass.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D115914

Files:
  llvm/lib/Analysis/InstructionSimplify.cpp
  llvm/lib/Transforms/InstCombine/InstCombineInternal.h
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/fold-phi-of-binary-op.ll
  llvm/test/Transforms/InstCombine/zext-or-icmp.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D115914.395032.patch
Type: text/x-patch
Size: 10458 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20211217/56dd9ce8/attachment.bin>


More information about the llvm-commits mailing list