]> granicus.if.org Git - llvm/commit
[NewGVN] Stop assuming PHI args ordering when looking at phi-of-ops.
authorDavide Italiano <davide@freebsd.org>
Mon, 30 Oct 2017 20:20:16 +0000 (20:20 +0000)
committerDavide Italiano <davide@freebsd.org>
Mon, 30 Oct 2017 20:20:16 +0000 (20:20 +0000)
commit0d1abb33e6671c8d4fbfdab0b47fa8f1cd07c4e3
tree092c2d85619a29081150c461254d4bdebab40249
parentb2d41e210a209a9e1ac1f0747ad121e393e0b669
[NewGVN] Stop assuming PHI args ordering when looking at phi-of-ops.

It's not guaranteed. There's a bug open to sort them in predecessor
order, but it won't happen anytime soon. In the meanwhile, passes
will have to do an O(#preds) scan. Such is life.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@316953 91177308-0d34-0410-b5e6-96231b3b80d8
lib/Transforms/Scalar/NewGVN.cpp
test/Transforms/NewGVN/pr35125.ll [new file with mode: 0644]