[PATCH] D54839: [CodeGen] Enhance machine PHIs optimization

Anton Afanasyev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Nov 22 14:13:32 PST 2018


anton-afanasyev created this revision.
anton-afanasyev added reviewers: RKSimon, spatel, craig.topper, dtemirbulatov.
Herald added a subscriber: llvm-commits.

  Make machine PHIs optimization to work for single value register taken from
  several different copies. This is the first step to fix PR38917. This change
  allows to get rid of redundant PHIs (see `opt_phis2.mir` test) to make
  the subsequent optimizations (like CSE) possible and simpler.


Repository:
  rL LLVM

https://reviews.llvm.org/D54839

Files:
  lib/CodeGen/OptimizePHIs.cpp
  test/CodeGen/X86/madd.ll
  test/CodeGen/X86/opt_phis2.mir
  test/CodeGen/X86/sad.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D54839.175072.patch
Type: text/x-patch
Size: 6592 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20181122/a04adb63/attachment.bin>


More information about the llvm-commits mailing list