[PATCH] D125160: [InstCombine] Reassociate add sequences to reduce dependency chains

Chenbing.Zheng via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat May 7 02:13:35 PDT 2022


Chenbing.Zheng created this revision.
Chenbing.Zheng added reviewers: RKSimon, spatel, benshi001.
Chenbing.Zheng added a project: LLVM.
Herald added a subscriber: hiraditya.
Herald added a project: All.
Chenbing.Zheng requested review of this revision.
Herald added subscribers: llvm-commits, jacquesguan.

Reassociate add sequences to reduce dependency chains:
((A + B) + C) + D --> (A + B) + (C + D)


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D125160

Files:
  llvm/lib/Transforms/InstCombine/InstCombineAddSub.cpp
  llvm/test/Transforms/InstCombine/X86/x86-avx512-inseltpoison.ll
  llvm/test/Transforms/InstCombine/X86/x86-avx512.ll
  llvm/test/Transforms/InstCombine/X86/x86-vec_demanded_elts-inseltpoison.ll
  llvm/test/Transforms/InstCombine/X86/x86-vec_demanded_elts.ll
  llvm/test/Transforms/InstCombine/add.ll
  llvm/test/Transforms/InstCombine/call-guard.ll
  llvm/test/Transforms/LoopVectorize/reduction-inloop.ll
  llvm/test/Transforms/LoopVectorize/reduction-predselect.ll
  llvm/test/Transforms/PhaseOrdering/X86/scalarization-inseltpoison.ll
  llvm/test/Transforms/PhaseOrdering/X86/scalarization.ll
  llvm/test/Transforms/PhaseOrdering/X86/vector-reductions.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D125160.427829.patch
Type: text/x-patch
Size: 28988 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220507/07a7fde0/attachment.bin>


More information about the llvm-commits mailing list