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

Jun Bum Lim via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Oct 11 15:04:46 PDT 2017


junbuml updated this revision to Diff 118707.
junbuml added a comment.
Herald added a subscriber: javed.absar.

Use only getUserCost in LICM by adding an overload of getUserCode taking Users as its parameter.


https://reviews.llvm.org/D37076

Files:
  include/llvm/Analysis/TargetTransformInfo.h
  include/llvm/Analysis/TargetTransformInfoImpl.h
  include/llvm/CodeGen/BasicTTIImpl.h
  include/llvm/Transforms/Utils/LoopUtils.h
  lib/Analysis/TargetTransformInfo.cpp
  lib/Target/ARM/ARMTargetTransformInfo.cpp
  lib/Target/Hexagon/HexagonTargetTransformInfo.cpp
  lib/Target/Hexagon/HexagonTargetTransformInfo.h
  lib/Target/X86/X86TargetTransformInfo.cpp
  lib/Target/X86/X86TargetTransformInfo.h
  lib/Transforms/Scalar/LICM.cpp
  test/Transforms/LICM/sink-foldable.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D37076.118707.patch
Type: text/x-patch
Size: 28146 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20171011/ffb9650c/attachment-0001.bin>


More information about the llvm-commits mailing list