[PATCH] D72382: [ArgPromotion] Extend search for SafeToUnconditionallyLoad indices to all post-dominators of the entry block.

Mikhail Gudim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 7 18:30:32 PST 2020


mgudim created this revision.
mgudim added reviewers: chandlerc, rnk.
Herald added subscribers: llvm-commits, hiraditya.
Herald added a project: LLVM.

Currently, isSafeToPromoteArgument only scans the function's entry block to find indices for loads which are safe to move from callee to the caller. In this patch, we extend this search to all post-dominators of the entry block.


https://reviews.llvm.org/D72382

Files:
  llvm/lib/Transforms/IPO/ArgumentPromotion.cpp
  llvm/test/Transforms/ArgumentPromotion/control-flow3.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D72382.236737.patch
Type: text/x-patch
Size: 8188 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20200108/a68fe4c8/attachment.bin>


More information about the llvm-commits mailing list