[PATCH] D70986: [DDG] Data Dependence Graph - Ordinals

Bardia Mahjour via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Dec 3 14:08:16 PST 2019


bmahjour created this revision.
bmahjour added reviewers: Meinersbur, fhahn, myhsu, xtian, dmgreen, kbarton, jdoerfert.
bmahjour added a project: LLVM.
Herald added a subscriber: mgrang.

This patch associates ordinal numbers to the DDG Nodes allowing the builder to order nodes within a pi-block in program order. The algorithm works by simply assuming the order in which the BBList is fed into the builder. The builder already relies on the blocks being in program order so that it can compute the dependencies correctly. Similarly the order of instructions in their parent basic blocks determine their program order.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D70986

Files:
  llvm/include/llvm/Analysis/DependenceGraphBuilder.h
  llvm/lib/Analysis/DependenceGraphBuilder.cpp
  llvm/test/Analysis/DDG/basic-a.ll
  llvm/test/Analysis/DDG/basic-b.ll
  llvm/test/Analysis/DDG/basic-loopnest.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D70986.231982.patch
Type: text/x-patch
Size: 39464 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20191203/c0239702/attachment.bin>


More information about the llvm-commits mailing list