[PATCH] D29331: [LICM] Hoist loads that are dominated by invariant.start intrinsic, and are invariant in the loop.

Anna Thomas via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 1 12:19:03 PST 2017


anna updated this revision to Diff 86696.
anna added a comment.

There is no guarantee that the preheader exists when invoking `canSinkOrHoistInst` function.
Use the properly dominates property on the loopHeader instead.


https://reviews.llvm.org/D29331

Files:
  lib/Transforms/Scalar/LICM.cpp
  test/Transforms/LICM/hoisting.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D29331.86696.patch
Type: text/x-patch
Size: 8266 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170201/d144fb53/attachment.bin>


More information about the llvm-commits mailing list