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

Jun Bum Lim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Fri Oct 20 13:27:07 PDT 2017


junbuml updated this revision to Diff 119698.
junbuml added a comment.

As r314923 was reverted, we cannot rely on getUserCost in the foldability check for GEPs. For now, I checked GEP's users in LICM directly. Please let me know if you prefer other way around.


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.119698.patch
Type: text/x-patch
Size: 15763 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171020/28bc9902/attachment.bin>


More information about the llvm-commits mailing list