[PATCH] D122539: [SelectionDAG][DAGCombiner] Reuse exist node by reassociate

chenglin.bi via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Mar 26 21:37:30 PDT 2022


bcl5980 created this revision.
bcl5980 added reviewers: RKSimon, spatel, craig.topper, paulwalker-arm, lebedev.ri, arsenm, efriedma, pengfei.
Herald added subscribers: StephenFan, ecnelises, kerbowa, hiraditya, jvesely.
Herald added a project: All.
bcl5980 requested review of this revision.
Herald added subscribers: llvm-commits, wdng.
Herald added a project: LLVM.

When already have (op N0, N2), reassociate (op (op N0, N1), N2) to (op (op N0, N2), N1) to reuse the exist (op N0, N2)


https://reviews.llvm.org/D122539

Files:
  llvm/lib/CodeGen/SelectionDAG/DAGCombiner.cpp
  llvm/test/CodeGen/AArch64/sve-gather-scatter-addr-opts.ll
  llvm/test/CodeGen/AMDGPU/xor3-i1-const.ll
  llvm/test/CodeGen/X86/ctpop-combine.ll
  llvm/test/CodeGen/X86/masked-iv-safe.ll
  llvm/test/CodeGen/X86/masked-iv-unsafe.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D122539.418434.patch
Type: text/x-patch
Size: 8970 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20220327/707e7549/attachment.bin>


More information about the llvm-commits mailing list