[PATCH] D37076: [LICM] Allow sinking when foldable in loop

Jun Bum Lim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Aug 23 12:08:49 PDT 2017


junbuml created this revision.
Herald added a subscriber: mcrosier.

Continue trying to sink an instruction if its users in the loop is foldable.
This will allow the instruction to be folded in the loop by decoupling it from
the user outside of the loop.


https://reviews.llvm.org/D37076

Files:
  include/llvm/Transforms/Utils/LoopUtils.h
  lib/Transforms/Scalar/LICM.cpp
  test/Transforms/LICM/sink-foldable.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37076.112417.patch
Type: text/x-patch
Size: 14118 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20170823/d15bd15a/attachment.bin>


More information about the llvm-commits mailing list