[PATCH] D84601: [InstCombine] Fold freeze into phi if beneficial

Juneyoung Lee via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sun Jul 26 10:30:46 PDT 2020


aqjune created this revision.
aqjune added reviewers: nikic, spatel, lebedev.ri.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

This patch adds folding freeze into phi if it has only one operand to target.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D84601

Files:
  llvm/lib/Transforms/InstCombine/InstructionCombining.cpp
  llvm/test/Transforms/InstCombine/freeze-phi.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D84601.280737.patch
Type: text/x-patch
Size: 3827 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200726/e10fa78f/attachment.bin>


More information about the llvm-commits mailing list