[PATCH] D31613: [LoopPeeling] Get rid of Phis that become invariant after N steps

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Apr 4 04:37:45 PDT 2017


mkazantsev planned changes to this revision.
mkazantsev added inline comments.


================
Comment at: lib/Transforms/Utils/LoopUnrollPeel.cpp:134
+        // so we can ignore it. Otherwise our Phi lies in chain with depth + 1.
+        auto It = InvariantDepth.find(IncPhi);
+        if (It != InvariantDepth.end()) {
----------------
Actually this one is not needed, because if the value is present in map, we will return it early in CalculateInvariantDepth.


https://reviews.llvm.org/D31613





More information about the llvm-commits mailing list