[PATCH] D50501: [LICM] Hoist guards with invariant conditions

Max Kazantsev via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Aug 9 03:13:34 PDT 2018


mkazantsev created this revision.
mkazantsev added reviewers: junbuml, reames, sanjoy, skatkov.

This patch teaches LICM to hoist guards from the loop if they are guaranteed to execute and
if there are no side effects that could prevent that.


https://reviews.llvm.org/D50501

Files:
  lib/Transforms/Scalar/LICM.cpp
  test/Transforms/GuardWidening/loop-schedule.ll
  test/Transforms/LICM/guards.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D50501.159886.patch
Type: text/x-patch
Size: 6051 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180809/7ddcc906/attachment.bin>


More information about the llvm-commits mailing list