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

Bardia Mahjour via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Dec 18 13:22:26 PST 2019


bmahjour added a comment.

> What would cause the order of nodes in a pi-node to change? As it's not topologically sorted, wouldn't the order stay the order in which they were added to `NodeList`?

The order is at the mercy of SCCIterator. For example if you look at the first pi-block node in basic-a.ll, you'll notice that prior to this change the `%inc = add i64 %i.02, 1` was placed ahead of `%i.02 = phi `.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D70986/new/

https://reviews.llvm.org/D70986





More information about the llvm-commits mailing list