[PATCH] D46198: [LoopInterchange] Move PHI handling to adjustLoopBranches.
Eli Friedman via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Fri Jun 15 12:32:31 PDT 2018
efriedma added inline comments.
================
Comment at: lib/Transforms/Scalar/LoopInterchange.cpp:1467
+ if (InnerLoop->contains(InBB) ||
+ isa<PHINode>(PHI->getIncomingValueForBlock(InBB)))
+ continue;
----------------
This `isa<PHINode>` check seems weird; do you care whether it's specifically a reduction PHI node?
https://reviews.llvm.org/D46198
More information about the llvm-commits
mailing list