[PATCH] D27114: Preserve nonnull metadata on Loads through SROA & mem2reg.

Eli Friedman via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 17:10:43 PST 2016


efriedma added a comment.

PostDominatorTree doesn't provide the kind of post-dominance you need for this transformation: LLVM basic blocks have implicit edges which exit the function early, and those edges aren't reflected in the tree.  For example, execution doesn't actually continue after a call to exit().  (See also the llvm::isGuaranteedToTransferExecutionToSuccessor() utility.)


https://reviews.llvm.org/D27114





More information about the llvm-commits mailing list