[PATCH] D33257: [JumpThreading] Dont RAUW condition if guards in block

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 22:58:58 PDT 2017


mkazantsev added inline comments.


================
Comment at: lib/Transforms/Scalar/JumpThreading.cpp:270
+    // two levels of uses, just check for presence of guards within the basic block.
+    auto *BB = Cond->getParent();
+    for (auto &I: *BB)
----------------
Should we check all dominating blocks as well?


https://reviews.llvm.org/D33257





More information about the llvm-commits mailing list